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

Method futuresCancel

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

* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Algo-Order * @param symbol symbol if the market * @param orderId * @param pa

(symbol: string, orderId?: number | string, params: Dict = {})

Source from the content-addressed store, hash-verified

4901 * @returns
4902 */
4903 async futuresCancel(symbol: string, orderId?: number | string, params: Dict = {}): Promise<CancelOrder> { // Either orderId or origClientOrderId must be sent
4904 params.symbol = symbol;
4905 if ('conditional' in params) {
4906 delete params.conditional;
4907 if (orderId) params.algoid = orderId;
4908 return await this.privateFuturesRequest('v1/algoOrder', params, 'DELETE');
4909 }
4910 if (orderId) params.orderId = orderId;
4911 return await this.privateFuturesRequest('v1/order', params, 'DELETE');
4912 }
4913
4914 /**
4915 * @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Algo-Order

Calls 1

privateFuturesRequestMethod · 0.95

Tested by

no test coverage detected