Messages
Price
CGSimplePrice
Real-time coin price updates by CoinGecko coin IDs
WSS
Notes
- Streams real-time prices for one or more coins by their unique Coin API IDs.
- Specify preferred quote currencies via
vs_currenciesin the subscription data. See Supported Currencies for valid values. Defaults to USD. - Find a coin’s API ID on its CoinGecko page, via Coins List, or this Google Sheet.
- Fields may return
nullwhen data is unavailable. Ensure your application handles null values.
Update Frequency:
As fast as ~10 seconds for large-cap and actively traded coins.
As fast as ~10 seconds for large-cap and actively traded coins.
Data Payload
| Key | Field | Type | Description | Example |
|---|---|---|---|---|
c | channel_type | string | Channel type subscribed to. | C1 |
i | coin_id | string | Coin identifier. | bitcoin |
vs | vs_currency | string | Target quote currency. | usd |
p | price | number | Current price in the specified vs_currency. | 61696.68 |
pp | price_24h_change_percentage | number | Price change percentage over the last 24 hours. | 1.42 |
m | market_cap | number | Market capitalization in the specified vs_currency. | 1236047139289.68 |
v | 24h_vol | number | 24-hour trading volume in the specified vs_currency. | 30595921115.54 |
t | last_updated_at | integer | UNIX timestamp in seconds. | 1780839768 |
1. Establish Connection
2. Subscribe to CGSimplePrice
Input:3. Stream Price Data
Input:Output keys may appear in any order.
4. Unsubscribe
Unsubscribe from a specific token:Messages

