Skip to content

Commit

Permalink
fix(gateway): fix GetOpenOrders settle coin parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rluisr committed Feb 17, 2024
1 parent d441eb7 commit 99b4523
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/adapter/gateway/bybit_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ func (r *BybitRepository) FetchOpenOrder(req *domain.Order) error {
}

func (r *BybitRepository) GetOpenOrders() (*bybit.V5GetOrdersResponse, error) {
settle := bybit.CoinUSDT

orders, err := r.Client.V5().Order().GetOpenOrders(bybit.V5GetOpenOrdersParam{
Category: bybit.CategoryV5Linear,
Category: bybit.CategoryV5Linear,
SettleCoin: &settle,
})
if err != nil {
return nil, fmt.Errorf("failed GetOpenOrders: %w", err)
Expand Down

0 comments on commit 99b4523

Please sign in to comment.