binance-api-node icon indicating copy to clipboard operation
binance-api-node copied to clipboard

Incorrect data type of batchOrders in futuresBatchOrders

Open fireflies1988 opened this issue 2 years ago • 0 comments

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

fireflies1988 avatar Oct 08 '23 17:10 fireflies1988