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 method | Sparky REST |
|---|---|
order.place | POST /fapi/v1/order |
order.modify | PUT /fapi/v1/order |
order.cancel | DELETE /fapi/v1/order |
order.status | GET /fapi/v1/order |
account.position / v2/account.position | GET /fapi/v2/positionRisk |
account.balance | GET /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.