Skip to main content
This endpoint requires a Growth or Enterprise plan. Learn more.

Returns

PairMetadata
See PairMetadata

Arguments

String
The ID of the pair (address:networkId).
QuoteToken
The token of interest within the pair. Can be token0 or token1. If not specified, returns data for both tokens. See QuoteToken
Boolean
If true, automatically selects the non-liquidity token as the quoteToken. Ignored if quoteToken is explicitly specified.

Example Subscription

Test this query in the Explorer →

Example Response

Usage Guidelines

  • Subscribe using the pair ID in format pairAddress:networkId (e.g., 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640:1)
  • Use quoteToken parameter (token0 or token1) to specify which token’s perspective to use for price data
  • Use useNonLiquidityTokenAsQuoteToken: true to automatically select the non-liquidity token as the quote token
  • Updates are pushed in real-time as trades occur on the pair
  • Price change fields (priceChange5m, priceChange1, etc.) are in decimal format (0.01 = 1%)
  • Volume fields represent USD value traded in the specified time window
  • Use statsType to see if stats are FILTERED (bot-filtered) or UNFILTERED

Troubleshooting Tips

Use the filterPairs or listPairsForToken query to find the pair address and network ID for your token. The subscription ID format is pairAddress:networkId.
Updates are only pushed when trades occur on the pair. Low-activity pairs may have infrequent updates. Ensure your WebSocket connection is properly established and you’re subscribed to an active pair.
Token ordering is determined by the pair contract. Use the quoteToken parameter to specify which token you want as the base for price calculations, or use useNonLiquidityTokenAsQuoteToken: true to automatically select the non-stable/non-major token.
Implement reconnection logic in your client. When reconnecting, you’ll need to re-subscribe to the pairs you were monitoring. Consider using a library like graphql-ws that handles reconnections automatically.
Yes, you can open multiple subscriptions for different pairs over the same WebSocket connection. Each subscription operates independently and will receive updates for its specific pair.
  • Detailed Token Page: Build a comprehensive token detail page with price, holders, trades, and real-time updates