Messages
WebSocket
OnchainSimpleTokenPrice
Subscribe to receive real-time price updates for tokens, as seen on GeckoTerminal.com
WSS
This WebSocket channel allows you to subscribe to real-time updates of price changes for tokens.Documentation Index
Fetch the complete documentation index at: https://docs.coingecko.com/llms.txt
Use this file to discover all available pages before exploring further.
- Lookup by Network + Token Address
- It will return price and market data of the top pool of the specified token.
Data Payload
| Field | Type | Description | Example | |
|---|---|---|---|---|
c | channel_type | string | Indicates the type of channel subscribed to. | G1 |
n | network_id | string | Identifier of the blockchain network. Check full list of IDs here. | eth |
ta | token_address | string | Contract address of the token on the blockchain. | 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 |
p | usd_price | float | Current token price in USD. | 3639.78228844745 |
pp | usd_price_24h_change_percentage | float | Percentage change in token price over the last 24 hours. | 3.566 |
m | usd_market_cap | float | Market capitalization in USD. | 123 |
v | usd_24h_vol | float | 24-hour trading volume in USD. | 31233333.33 |
t | last_updated_at | integer | Timestamp of the last data update in UNIX time. | 1709542750 |
null when specific data is unavailable. Ensure your application is capable of handling null values for fields that may not always have data.
1. Establish Connection to WebSocket
2. Subscribe to a specific channel - OnchainSimpleTokenPrice
Input Example:3. Stream OnchainSimpleTokenPrice data
Input Example:Tips:
Unsubscribe to stop streaming OnchainSimpleTokenPrice data
Input Example: Unsubscribe for 1 specific token data:Messages

