WSS
Level2 Order Book
Establish a WebSocket connection to get real-time updates for order books. Subscribe to a live feed of all outstanding buy and sell orders on the market for specific coins and tokens. Send messages when specific market conditions occur.
Connection behavior
- Heartbeat — the server sends a WebSocket ping about every 54 seconds and expects a pong within 60 seconds; standard clients respond automatically.
- Reconnect — a disconnect clears all subscriptions; after reconnecting you must subscribe again.
Connection
WSS
wss://app.bitgo-test.com/api/prime/trading/v1/ws
Channel level2
Authorization Send the BitGo access token as
Authorization: Bearer {token} on the connection upgrade request. The token must have the trade_view scope. If the token is missing or invalid the upgrade is refused with HTTP 403 and no socket is opened. Authorization or permission failures that happen after the socket is open — for example subscribing to an account you do not have access to — come back as WebSocket error messages (the socket stays open), not as HTTP 403.