* @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 = {})
| 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 |
no test coverage detected