tiagosiebler / binance

Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & browser support, integration tests, beautification & more.
MIT License
734 stars 265 forks source link

Fix handling for batch cancel endpoints #336

Closed tiagosiebler closed 1 year ago

tiagosiebler commented 1 year ago

const orderIdList = [ 3118081111, 3118081110 ]; await this.client.cancelMultipleOrders({ symbol, orderIdList: JSON.stringify(orderIdList) as any })

https://t.me/nodetraders/23604

movy commented 1 year ago

Still experiencing this, for those googling:

/cancelMultipleOrders usdm {"symbol":"DASHUSDT","orderIdList":[581240933]}  response:
{
  code: -1130,
  msg: "Data sent for parameter 'orderidlist' is not valid."
}
tiagosiebler commented 1 year ago

Will be fixed shortly in the next release (v2.8.5), as soon as #344 is merged and the CI run finishes.

tiagosiebler commented 1 year ago

Released, let me know if you find any other issues. Thanks!