Endpoints
WebSocket endpoint provides real-time market data streaming which works in Subscribe-Publish communication model. After establishing a WebSocket connection with us, you will need to send a Hello message documented below.
Endpoints
| Enviroment | Encryption | Value | Region |
|---|---|---|---|
| Production | Yes | wss://ws.coinapi.io/v1/ | GeoDNS (auto-routing) |
| Production | No | ws://ws.coinapi.io/v1/ | GeoDNS (auto-routing) |
| Production | Yes | wss://api-ncsa.coinapi.io/v1/ | North & South America |
| Production | No | ws://api-ncsa.coinapi.io/v1/ | North & South America |
| Production | Yes | wss://api-emea.coinapi.io/v1/ | Europe, Middle East & Africa |
| Production | No | ws://api-emea.coinapi.io/v1/ | Europe, Middle East & Africa |
| Production | Yes | wss://api-apac.coinapi.io/v1/ | Asia Pacific |
| Production | No | ws://api-apac.coinapi.io/v1/ | Asia Pacific |
[!NOTE]
The default endpoints (
ws.coinapi.io) use GeoDNS to automatically route your WebSocket connections to the nearest datacenter. If you prefer to use a specific region, you can use the region-specific endpoints listed above.
For testing, debugging and development purposes we are recommending:
wscatclient from thenpmpackage repository: https://github.com/websockets/wscatsandystandalone WebSocket client with our message templates available at: https://app.gosandy.io/?url=https://raw.githubusercontent.com/coinapi/coinapi-sdk/master/data-api/sandy-ws-v1.json&u=Ar
General
WebSocket endpoint provides real-time market data streaming which works in Subscribe-Publish communication model. After establishing a WebSocket connection with us, you will need to send a Hello message documented below.
High Availability Setup for WebSocket V1
Configure Market Data WebSocket V1 endpoints for regional resilience and customer-side failover.