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
exchangeIdString
feeInt
highPrice1String
highPrice1wString
highPrice4String
highPrice12String
highPrice24String
idString!
liquidityString!
liquidityTokenString
lowPrice1String
lowPrice1wString
lowPrice4String
lowPrice12String
lowPrice24String
networkIdInt
nonLiquidityTokenString
pairAddressString!
priceString!
priceChange1Float
priceChange1wFloat
priceChange4Float
priceChange5mFloat
priceChange12Float
priceChange24Float
quoteTokenQuoteToken
statsTypeTokenPairStatisticsType!
tickSpacingInt
token0PairMetadataToken!
token1PairMetadataToken!
volume1String
volume1wString
volume4String
volume12String
volume24String

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: