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 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
| WebSocket Channel | Channel Code | Details |
|---|---|---|
| CGSimplePrice | C1 | Real-time coin prices, as seen on CoinGecko.com |
| OnchainSimpleTokenPrice | G1 | Real-time token prices, as seen on GeckoTerminal.com |
| OnchainTrade | G2 | Real-time pool transactions, as seen on GeckoTerminal.com |
| OnchainOHLCV | G3 | Real-time OHLCV data for pools, as seen on GeckoTerminal.com |
| (More coming soon!) |
Connection Handling
-
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.
-
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 an Analyst plan or above to start streaming real-time data.

