Skip to content

Commit

Permalink
fix(okx): clientOrderId max len
Browse files Browse the repository at this point in the history
  • Loading branch information
iam4x committed Apr 20, 2023
1 parent b66a646 commit fed346f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exchanges/okx/okx.exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ export class OKXExchange extends BaseExchange {

const req = omitUndefined({
instId: market.id,
clOrdId: `${BROKER_ID}${uuid()}`,
clOrdId: `${BROKER_ID}${uuid()}`.slice(0, 32),
tag: BROKER_ID,
tdMode: 'cross',
side: inverseObj(ORDER_SIDE)[opts.side],
Expand Down

0 comments on commit fed346f

Please sign in to comment.