Skip to main content

Stream Real-Time Crypto Data with CoinGecko WebSockets

CoinGecko WebSocket API provides a persistent connection for real-time data streaming — receive market updates the moment they happen, without polling.
CoinGecko WebSocket is available for paid plan customers (Basic plan & above).
  • Basic, Analyst, Lite, Pro, and Pro+ self-serve plans include:
    • Max connections: 5 concurrent socket connections on Basic plan, 10 on Analyst plan & above
    • Max subscriptions: 100 token or pool data subscriptions per channel, per socket
    • Channel access: all 4 channels
    • Credit charge: 0.1 credit per response returned, deducting from monthly API plan credits
  • Enterprise plan clients who want higher limits (max connections, max subscriptions, lower credit charge) — contact your Customer Success Manager.
CoinGecko WebSocket is a supplementary delivery mechanism for live data streaming. Currently in beta — excluded from the SLA applicable to the CoinGecko API Platform.

Share Feedback

Help us improve WebSocket — share your suggestions and feedback.

Channel & Data Support

Connection Handling

  1. Ping/Pong Mechanism:
    • Server sends a ping every 10 seconds.
    • If no pong is received within 20 seconds, the connection is automatically closed.
    • Ensure your WebSocket client responds to pings with pongs — most libraries handle this automatically, but verify your implementation.
  2. Planned Disconnections (Deployments & Reboots):
    • System reboots or deployments may temporarily disconnect active connections.
    • Your application should automatically reconnect on disconnection. Use exponential backoff to avoid overwhelming the server during widespread disconnections.

Access WebSocket

Subscribe to a Basic plan or above to start streaming real-time data.
Pay for your CoinGecko API subscription with crypto