Live-streamed stat updates for a given token within a pair.
This endpoint is available on Codex Growth and Enterprise Plans
Endpoint: onPairMetadataUpdated
Method: POST
Arguments
Name | Type | Description |
---|---|---|
id | String | The ID of the pair ( |
quoteToken | QuoteToken | The token of interest within the pair. Can be |
Response
Name | Type | Description |
---|---|---|
exchangeId | String | |
fee | Int | |
highPrice1 | String | |
highPrice1w | String | |
highPrice4 | String | |
highPrice12 | String | |
highPrice24 | String | |
id | String! | |
liquidity | String! | |
liquidityToken | String | |
lowPrice1 | String | |
lowPrice1w | String | |
lowPrice4 | String | |
lowPrice12 | String | |
lowPrice24 | String | |
networkId | Int | |
nonLiquidityToken | String | |
pairAddress | String! | |
price | String! | |
priceChange1 | Float | |
priceChange1w | Float | |
priceChange4 | Float | |
priceChange5m | Float | |
priceChange12 | Float | |
priceChange24 | Float | |
quoteToken | QuoteToken | |
statsType | TokenPairStatisticsType! | |
tickSpacing | Int | |
token0 | PairMetadataToken! | |
token1 | PairMetadataToken! | |
volume1 | String | |
volume1w | String | |
volume4 | String | |
volume12 | String | |
volume24 | String |
Example
Query
subscription OnPairMetadataUpdated($id: String) {
onPairMetadataUpdated(id: $id) {
...
}
}
Response
Ask questions, share what you're working on and request new features 👬👭