Pair Metadata

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

NameTypeDescription
idString

The ID of the pair (address:networkId).

quoteTokenQuoteToken

The token of interest within the pair. Can be token0 or token1.

Response

NameTypeDescription
exchangeIdStringThe ID of the exchange (exchangeAddress:networkId).
feeIntThe exchange fee for swaps.
highPrice1StringThe highest price in USD in the past hour.
highPrice1wStringThe highest price in USD in the past week.
highPrice4StringThe highest price in USD in the past 4 hours.
highPrice12StringThe highest price in USD in the past 12 hours.
highPrice24StringThe highest price in USD in the past 24 hours.
idString!The ID for the pair (pairAddress:networkId).
liquidityString!The amount of liquidity in the pair.
liquidityTokenStringThe token with higher liquidity in the pair. Can be token0 or token1.
lowPrice1StringThe lowest price in USD in the past hour.
lowPrice1wStringThe lowest price in USD in the past week.
lowPrice4StringThe lowest price in USD in the 4 hours.
lowPrice12StringThe lowest price in USD in the 12 hours.
lowPrice24StringThe lowest price in USD in the 24 hours.
networkIdIntThe network ID that the pair is deployed on.
nonLiquidityTokenStringThe token with lower liquidity in the pair. Can be token0 or token1.
pairAddressString!The contract address for the pair.
priceString!The token price in USD.
priceChange1FloatThe percent price change in the past hour.
priceChange1wFloatThe percent price change in the past week.
priceChange4FloatThe percent price change in the past 4 hours.
priceChange12FloatThe percent price change in the past 12 hours.
priceChange24FloatThe percent price change in the past 24 hours.
quoteTokenQuoteTokenThe token of interest within the pair.
tickSpacingIntThe amount of required tick separation. Only applicable for pairs on UniswapV3.
token0PairMetadataToken!Metadata for token0.
token1PairMetadataToken!Metadata for token1.
volume1StringThe trade volume in USD in the past hour.
volume1wStringThe trade volume in USD in the past week.
volume4StringThe trade volume in USD in the past 4 hours.
volume12StringThe trade volume in USD in the past 12 hours.
volume24StringThe trade volume in USD in the past 24 hours.

Example

Query

subscription OnPairMetadataUpdated($id: String) {
  onPairMetadataUpdated(id: $id) {
    ...
  }
}

Response

👋

Join our Discord

Ask questions, share what you're working on and request new features :two-men-holding-hands::two-women-holding-hands: