Skip to content

Commit

Permalink
Okx: Fix RfqIds outside of ClientRfqIds
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Sep 15, 2023
1 parent 3019f93 commit d0a4621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions exchanges/okx/okx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1100,9 +1100,9 @@ func (ok *Okx) CancelRFQ(ctx context.Context, arg CancelRFQRequestParam) (*Cance

// CancelMultipleRFQs cancel multiple active RFQs in a single batch. Maximum 100 RFQ orders can be canceled at a time.
func (ok *Okx) CancelMultipleRFQs(ctx context.Context, arg CancelRFQRequestsParam) ([]CancelRFQResponse, error) {
if len(arg.RfqID) == 0 && len(arg.ClientRfqIDs) == 0 {
if len(arg.RfqIDs) == 0 && len(arg.ClientRfqIDs) == 0 {
return nil, errMissingRFQIDANDClientRfqID
} else if len(arg.RfqID)+len(arg.ClientRfqIDs) > 100 {
} else if len(arg.RfqIDs)+len(arg.ClientRfqIDs) > 100 {
return nil, errMaxRFQOrdersToCancel
}
var resp []CancelRFQResponse
Expand Down
2 changes: 1 addition & 1 deletion exchanges/okx/okx_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@ type CancelRFQRequestParam struct {

// CancelRFQRequestsParam represents cancel multiple RFQ orders request params
type CancelRFQRequestsParam struct {
RfqID []string `json:"rfqIds"`
RfqIDs []string `json:"rfqIds"`
ClientRfqIDs []string `json:"clRfqIds"`
}

Expand Down

0 comments on commit d0a4621

Please sign in to comment.