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

Method cancel

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

* Cancels an order * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-trade * @param {string} symbol - the symbol to cancel * @param {string} orderid - the orderid to cancel * @return {promise or undefined} - omitting the callback

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

Source from the content-addressed store, hash-verified

1060 * @return {promise or undefined} - omitting the callback returns a promise
1061 */
1062 async cancel(symbol: string, orderid: number | string, params: Dict = {}): Promise<CancelOrder> {
1063 return await this.privateSpotRequest('v3/order', this.extend({ symbol: symbol, orderId: orderid }, params), 'DELETE');
1064 }
1065
1066 /**
1067 * Cancels all orders

Callers 4

live-tests.cjsFile · 0.80
static-tests.mjsFile · 0.80

Calls 1

privateSpotRequestMethod · 0.95

Tested by

no test coverage detected