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

Method orderStatus

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

* Gets the status of an order * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-user_data * @param {string} symbol - the symbol to check * @param {string} orderid - the orderid to check if !orderid then use flags to search * @param {object} flag

(symbol: string, orderid?: number | string, flags = {})

Source from the content-addressed store, hash-verified

1082* @return {promise or undefined} - omitting the callback returns a promise
1083*/
1084 async orderStatus(symbol: string, orderid?: number | string, flags = {}) {
1085 let parameters = Object.assign({ symbol: symbol }, flags);
1086 if (orderid) {
1087 parameters = Object.assign({ orderId: orderid }, parameters);
1088 }
1089 return await this.privateSpotRequest('v3/order', parameters);
1090 }
1091
1092 /**
1093* Gets open orders

Callers 2

live-tests.cjsFile · 0.80

Calls 1

privateSpotRequestMethod · 0.95

Tested by

no test coverage detected