ViewBlock / binance-api-node

:chart: A complete and heavily tested wrapper with typings for the Binance API.
654 stars 495 forks source link

Incorrect data type of batchOrders in futuresBatchOrders #648

Open fireflies1988 opened 9 months ago

fireflies1988 commented 9 months ago

The "batchOrders" must be a JSON string, not a "NewFuturesOrder[]".

I encountered an error when attempting to place multiple orders using "futuresBatchOrders", which looked like this: image image

The issue was resolved when I used "JSON.stringify": image However I had to cast the "options" parameter to type "any" to bypass the type-checking, like this: image