The Anchorage Digital WebSocket API supports the WebSocket protocol for real-time market data.
Endpoint: wss://api.anchorage.com/ws/v2/trading
Protocol
This WebSocket API uses a bidirectional protocol that encodes all messages as JSON objects. Each message includes a messageType attribute for handling message types appropriately.
Subscribe
Send a subscribe message with the appropriate messageType to specify which channel you want to receive.
Customer-specific market data
Subscribes to market data scoped to a specific account or subaccount by passing either the optional accountId or subaccountId field.
By account:
By subaccount:
subaccountId applies to RIA customers only.
Global market data
Subscribes to market data without any account filter. All participants receive the same feed.
Unsubscribe
To unsubscribe from a channel, send an unsubscribe message with the same symbol. The reqId does not need to match the original subscription request.
Sequence numbers
Messages include a sequence number: an incrementing integer starting at 1. Each message is exactly one greater than the previous.
Supported channels