MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / futuresMultipleOrders

Method futuresMultipleOrders

src/node-binance-api.ts:4847–4855  ·  view source on GitHub ↗

* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders

(orders: Dict[] = [])

Source from the content-addressed store, hash-verified

4845 * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders
4846 */
4847 async futuresMultipleOrders(orders: Dict[] = []): Promise<FuturesOrder[]> {
4848 for (let i = 0; i < orders.length; i++) {
4849 if (!orders[i].newClientOrderId) {
4850 orders[i].newClientOrderId = this.CONTRACT_PREFIX + this.uuid22();
4851 }
4852 }
4853 const params = { batchOrders: JSON.stringify(orders) };
4854 return await this.privateFuturesRequest('v1/batchOrders', params, 'POST');
4855 }
4856
4857 /**
4858 * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders

Callers

nothing calls this directly

Calls 2

uuid22Method · 0.95
privateFuturesRequestMethod · 0.95

Tested by

no test coverage detected