跳到主要内容

Trade WebSocket API

Status: Not yet implemented (空缺).

Binance's order-entry WebSocket API (order.place, order.modify, order.cancel, order.status, account.position over wss://…/ws-fapi/v1) has no Sparky equivalent. Trade over REST:

Binance WS methodSparky REST
order.placePOST /fapi/v1/order
order.modifyPUT /fapi/v1/order
order.cancelDELETE /fapi/v1/order
order.statusGET /fapi/v1/order
account.position / v2/account.positionGET /fapi/v2/positionRisk
account.balanceGET /fapi/v2/balance

Order and position updates are pushed over the private orders / positions channels of the user-data stream once you authenticate with a listenKey.