Request parameters.
Promise<WebsocketApiResponse
Cancel an active order.
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Promise<WebsocketApiResponse
Close out a user data stream.
Weight(IP): 1
Security Type: USER_STREAM
Request parameters.
Promise<WebsocketApiResponse
Disconnects from the WebSocket server. If there is no active connection, a warning is logged. Otherwise, all connections in the connection pool are closed gracefully, and a message is logged indicating that the connection has been disconnected.
A Promise that resolves when all connections have been closed.
Futures Account Balance
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Promise<WebsocketApiResponse
Checks if the WebSocket connection is currently open.
true if the connection is open, false otherwise.
Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.
Weight(IP): 1
Security Type: USER_STREAM
Request parameters.
Promise<WebsocketApiResponse
Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
Weight: 1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S); 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M); 1 on IP rate limit(x-mbx-used-weight-1m)
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent, and the orderId will prevail if both are sent.quantity and price must be sent.quantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.quantity <= executedQtyGTX and the new price will cause it to be executed immediatelyRequest parameters.
Promise<WebsocketApiResponse
Send in a new order.
Weight(IP): 0
Security Type: TRADE
Notes:
type:
| Type | Additional mandatory parameters | | :---: | --- | | LIMIT | timeInForce, quantity, price | | MARKET | quantity | | STOP/TAKE_PROFIT | quantity, price, stopPrice | | STOP_MARKET/TAKE_PROFIT_MARKET | stopPrice | | TRAILING_STOP_MARKET | callbackRate |STOP, parameter timeInForce can be sent ( default GTC). * Order with type TAKE_PROFIT, parameter timeInForce can be sent ( default GTC). * Condition orders will be triggered when:priceProtect is sent as true:stopPrice,the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the "triggerProtect" of the symbolGET /dapi/v1/exchangeInfoSTOP, STOP_MARKET:stopPricestopPriceTAKE_PROFIT, TAKE_PROFIT_MARKET:stopPricestopPriceTRAILING_STOP_MARKET:activationPrice, and the latest price >= the lowest price * (1 + callbackRate)activationPrice, and the latest price <= the highest price * (1 - callbackRate)TRAILING_STOP_MARKET, if you got such error code.activationPrice should be smaller than latest price.activationPrice should be larger than latest price.newOrderRespType is sent as RESULT:MARKET order: the final FILLED result of the order will be return directly.LIMIT order with special timeInForce: the final status result of the order(FILLED or EXPIRED) will be returned directly.STOP_MARKET, TAKE_PROFIT_MARKET with closePosition=true:SELL) or current short position(if BUY).quantity parameterreduceOnly parameterBUY orders in LONG position side. and cannot be used with SELL orders in SHORT position sideRequest parameters.
Promise<WebsocketApiResponse
Get current position information.
Weight(IP): 5
Security Type: USER_DATA
Notes:
ACCOUNT_UPDATE to meet your timeliness and accuracy needs.Request parameters.
Promise<WebsocketApiResponse
Check an order's status.
These orders will not be found:
order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
order create time + 90 days < current time
Weight(IP): 1
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Promise<WebsocketApiResponse
Sends a signed message to the WebSocket server with authentication
The API method to call
Message parameters and options
Promise that resolves with the server response
Start a new user data stream. The stream will close after 60 minutes
unless a keepalive is sent. If the account has an active listenKey,
that listenKey will be returned and its validity will be extended for
60 minutes.
Weight(IP): 1
Security Type: USER_STREAM
Request parameters.
Promise<WebsocketApiResponse
Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detail.
Weight(IP): 5
Security Type: USER_DATA