- Lookup by Network + Pool Address
- It will return Open, High, Low, Close price and Volume data the specified pool.
Notes
- Interval options: 1s / 1m / 5m / 1h / 2h / 4h / 8h
- You may stream the pool ohlcv data based on
base
orquote
token of a pool. - Please note that your subscription quota is based on the number of unique data streams you request. Each unique combination of an interval and token for a given pool is considered a distinct subscription and will count towards your max subscription limit.
Data Payload
Field | Type | Description | Example | |
---|---|---|---|---|
ch | channel_type | string | Indicates the type of channel subscribed to. | G3 |
n | network_id | string | Identifier of the blockchain network. Check full list of IDs here. | eth |
pa | pool_address | string | Contract address of the pool. | 0x88e6a0c2dd6fcb..3f5640 |
to | token | string | base or quote token | base |
i | interval | string | Interval or resolution of the candle: 1s / 1m / 5m / 1h / 2h / 4h / 8h | 1m |
o | open | float | Open price in USD | 3539 |
h | high | float | High price in USD | 3541 |
l | low | float | Low price in USD | 3530 |
c | close | float | Close price in USD | 3531 |
v | volume | float | Volume in USD | 323333 |
t | timestamp | integer | Opening timestamp of candle interval | 1753803600 |
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 - OnchainOHLCV
Input Example:3. Stream OnchainOHLCV data
Input Example: (1 minute interval and base token of a pool)Interval
options: 1s / 1m / 5m / 1h / 2h / 4h / 8h- You may stream the pool ohlcv data of ‘base’ or ‘quote’
token
.