The WebSocket API provides the most up-to-date market and account order data. You can receive event-driven responses without having to poll the server for a reply.
This API currently only supports reading data. Ability to place and cancel orders will come soon.
Endpoints
- Mainnet: wss://ws.bsx.exchange/ws
- Testnet: wss://ws.testnet.bsx.exchange/ws
wscat
This document use wscat to demo some command in terminal. You might install it first.