binance-api-node
binance-api-node copied to clipboard
Incorrect data type of batchOrders in futuresBatchOrders
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:
The issue was resolved when I used "JSON.stringify":
However I had to cast the "options" parameter to type "any" to bypass the type-checking, like this: