Live-streamed stat updates for a given token within a pair.
This endpoint is available on Defined 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 | The ID of the exchange (exchangeAddress :networkId ). |
fee | Int | The exchange fee for swaps. |
highPrice1 | String | The highest price in USD in the past hour. |
highPrice1w | String | The highest price in USD in the past week. |
highPrice4 | String | The highest price in USD in the past 4 hours. |
highPrice12 | String | The highest price in USD in the past 12 hours. |
highPrice24 | String | The highest price in USD in the past 24 hours. |
id | String! | The ID for the pair (pairAddress :networkId ). |
liquidity | String! | The amount of liquidity in the pair. |
liquidityToken | String | The token with higher liquidity in the pair. Can be token0 or token1 . |
lowPrice1 | String | The lowest price in USD in the past hour. |
lowPrice1w | String | The lowest price in USD in the past week. |
lowPrice4 | String | The lowest price in USD in the 4 hours. |
lowPrice12 | String | The lowest price in USD in the 12 hours. |
lowPrice24 | String | The lowest price in USD in the 24 hours. |
networkId | Int | The network ID that the pair is deployed on. |
nonLiquidityToken | String | The token with lower liquidity in the pair. Can be token0 or token1 . |
pairAddress | String! | The contract address for the pair. |
price | String! | The token price in USD. |
priceChange1 | Float | The percent price change in the past hour. |
priceChange1w | Float | The percent price change in the past week. |
priceChange4 | Float | The percent price change in the past 4 hours. |
priceChange12 | Float | The percent price change in the past 12 hours. |
priceChange24 | Float | The percent price change in the past 24 hours. |
quoteToken | QuoteToken | The token of interest within the pair. |
tickSpacing | Int | The amount of required tick separation. Only applicable for pairs on UniswapV3. |
token0 | PairMetadataToken! | Metadata for token0 . |
token1 | PairMetadataToken! | Metadata for token1 . |
volume1 | String | The trade volume in USD in the past hour. |
volume1w | String | The trade volume in USD in the past week. |
volume4 | String | The trade volume in USD in the past 4 hours. |
volume12 | String | The trade volume in USD in the past 12 hours. |
volume24 | String | The trade volume in USD in the past 24 hours. |
Example
Query
subscription OnPairMetadataUpdated($id: String) {
onPairMetadataUpdated(id: $id) {
...
}
}
Response
Ask questions, share what you're working on and request new features