Quick Start Examples
What it is
Runnable queries and streams for the Crypto Price API, grouped by task. Each one opens in the IDE; most run as a query or, with subscription on top, as a live stream.
Prices
Most accurate price for a token (top market, rank 1)
Query Pairs with Ranking: { Position: { eq: 1 } } to price a token from its top market, the pool holding the largest share of the token's liquidity, instead of a value blended across every pool. Thin, fragmented pools cannot pull the number away from where the token actually trades.
Full explanation, streaming variant and caveats: Getting the most accurate token price.
{
Trading {
Pairs(
where: {
Token: {
Address: { is: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263" }
Network: { is: "Solana" }
}
Ranking: { Position: { eq: 1 } }
Interval: { Time: { Duration: { eq: 60 } } }
Price: { IsQuotedInUsd: true }
}
limit: { count: 1 }
orderBy: { descending: Block_Time }
) {
Token {
Symbol
Address
}
QuoteToken {
Symbol
}
Market {
Protocol
Address
Network
}
Price {
IsQuotedInUsd
Ohlc {
Open
High
Low
Close
}
}
Ranking {
Position
Weight
}
Volume {
Usd
}
Block {
Time
}
}
}
}
Price.Ohlc.Closeis the latest price on the top market. KeepPrice: { IsQuotedInUsd: true }: every market also publishes rows in quote-token units, so without it a WBTC/WSOL market returns WBTC in SOL.Ranking.Weightis the top pool's share of the token's liquidity (after the staleness discount). Near 1 means one pool drives the price; a low value means it is fragmented, which is where this query differs most from the blendedTokensprice.- Change
querytosubscriptionand droplimit/orderByto stream it.
Real-time token prices in USD on Solana
1-second OHLC and volume for every Solana market, quoted in USD. Price: {IsQuotedInUsd: true} puts OHLC and averages in USD; false gives them in the quote token.
More Solana price queries are on the Solana Token Price API page.
subscription {
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: true}, Market: {Network: {is: "Solana"}}, Volume: {Usd: {gt: 5}}}
) {
Token {
Name
Symbol
Address
}
Market {
Protocol
Program
Network
Name
Address
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
Ohlc {
Close
High
Low
Open
}
}
}
}
}
Volume: { Usd: { gt: 5 } }is an extra guard against near-empty candles; the index already filters outliers. The same guard appears in most streams below.
Real-time token prices in the quote token (USDC, USDT, ...)
Same stream with Price: {IsQuotedInUsd: false}, so prices are in the pair's quote token.
subscription {
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: false}, Market: {Network: {is: "Solana"}}, Volume: {Usd: {gt: 5}}}
) {
Token {
Name
Symbol
Address
}
QuoteToken {
Name
Symbol
Address
}
Market {
Protocol
Program
Network
Name
Address
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
Ohlc {
Close
High
Low
Open
}
}
}
}
}
Real-time token prices against SOL/WSOL
Restrict QuoteToken.Address to SOL and WSOL to get token values in Solana's native currency.
subscription {
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}},
Price: {IsQuotedInUsd: false},
QuoteToken:{
Address:{
in:["So11111111111111111111111111111111111111112"
,"11111111111111111111111111111111"
]
}
},
Market: {Network: {is: "Solana"}}, Volume: {Usd: {gt: 5}}}
) {
Token {
Name
Symbol
Address
}
QuoteToken {
Name
Symbol
Address
}
Market {
Protocol
Program
Network
Name
Address
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
Ohlc {
Close
High
Low
Open
}
}
}
}
}
Aggregated token data (volume and price, last 24h)
One row per token with USD volume over 24h and 4h and the current and 24h-ago average price. limitBy: { count: 1, by: Token_Id } groups per token; conditional metrics (Usd(if: ...), Mean(..., if: ...)) slice the window. Tokens is the right cube here because volume is summed across all of a token's pools; its prices are blended across those pools too, so to price one token from its top market use Pairs with rank 1.
{
Trading {
Tokens(
limit: {count: 100}
limitBy: {count: 1, by: Token_Id}
where: {Block: {Time: {since_relative: {hours_ago: 24}}}, Interval: {Time: {Duration: {eq: 60}}}}
) {
Token {
Id
Network
Symbol(maximum: Block_Time)
Name(maximum: Block_Time)
Address(maximum: Block_Time)
}
Volume {
Usd
H4VAgo: Usd(if: {Block: {Time: {since_relative: {hours_ago: 4}}}})
}
Price {
Average {
currentPrice: Mean(maximum: Block_Time)
H24Ago: Mean(
minimum: Block_Time
if: {Block: {Time: {since_relative: {hours_ago: 24}}}}
)
}
}
Supply {
TotalSupply(maximum: Block_Time)
MarketCap(maximum: Block_Time)
FullyDilutedValuationUsd(maximum: Block_Time)
}
}
}
}
- The
Duration: { eq: 60 }filter matters: without itVolume.Usdsums all ten stored durations and comes out about ten times too high. - Query only:
ifdoes not survive conversion to a subscription.
Find price arbitrage of a pair across chains
Latest price per market for BTC/USDT, one row per venue via limitBy on Market_Address.
query {
Trading {
Pairs(
where: {
Price: { IsQuotedInUsd: true }
Currency: { Id: { is: "bid:bitcoin" } }
QuoteCurrency: { Id: { is: "usdt" } }
Volume: { Usd: { gt: 5 } }
}
limit: { count: 10 }
orderBy: { descending: Block_Time }
limitBy: { by: Market_Address, count: 1 }
) {
Currency {
Id
Name
Symbol
}
QuoteCurrency {
Id
Name
Symbol
}
Market {
Name
NetworkBid
Network
Address
}
Price {
IsQuotedInUsd
Average {
Mean
Estimate
SimpleMoving
ExponentialMoving
WeightedSimpleMoving
}
}
QuoteToken {
Symbol
Name
Id
NetworkBid
Network
Did
Address
}
Token {
Symbol
Name
Id
NetworkBid
Network
Did
Address
}
}
}
}
- No
Durationfilter here, so rows can come from any of the ten durations; add one before comparing volumes.
OHLC
OHLC of a currency on multiple blockchains
One Bitcoin candle per minute across every chain and every Bitcoin token (cbBTC, WBTC and others).
{
Trading {
Currencies(
where: {
Currency: { Id: { is: "bid:bitcoin" } },
Interval: { Time: { Duration: { eq: 60 } } },
Volume: { Usd: { gt: 5 } }
},
limit: { count: 1 },
orderBy: { descending: Block_Time }
) {
Currency {
Id
Name
Symbol
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
BaseAttributedToUsd
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
IsQuotedInUsd #The price is shown in USD (`IsQuotedInUsd: true` by default).
Ohlc {
Open # Earliest price across chains in the interval
High # Highest price across chains in the interval
Low # Lowest price across chains in the interval
Close # Latest price across chains in the interval
}
Average {
Estimate
ExponentialMoving
Mean
SimpleMoving
WeightedSimpleMoving
}
}
}
}
}
OHLC stream on a chain
Live OHLC, volume and moving averages for every token on one chain. Set the chain with Token: {Network}; values are Ethereum, Solana, Base, Optimism, Matic, Arbitrum, Binance Smart Chain, Tron, Robinhood, Arc. Durations are listed here.
The Tokens cube is USD-quoted only.
subscription {
Trading {
Tokens(
where: {
Token: { Network: { is: "Solana" } }
Interval: { Time: { Duration: { eq: 60 } } }
Volume: { Usd: { gt: 5 } }
}
) {
Token {
Address
Id
IsNative
Name
Network
Name
Symbol
TokenId
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
IsQuotedInUsd
Ohlc {
Close
High
Low
Open
}
Average {
ExponentialMoving
Mean
SimpleMoving
WeightedSimpleMoving
}
}
}
}
}
OHLC of a token pair across chains
1-second ETH/USDC candles from every chain. For native tokens only the currency id is needed (bid:eth). Price: {IsQuotedInUsd: false} gives prices in USDC; switch to true for USD.
subscription {
Trading {
Pairs(
where: {
Price: { IsQuotedInUsd: false }
Interval: { Time: { Duration: { eq: 1 } } }
Currency: { Id: { is: "bid:eth" } }
QuoteCurrency: { Id: { is: "usdc" } }
Volume: { Usd: { gt: 5 } }
}
) {
Token {
Id
Symbol
Address
NetworkBid
Network
Name
}
QuoteToken {
Id
Symbol
Address
Name
NetworkBid
}
Interval {
Time {
Start
End
Duration
}
}
Volume {
Usd
Quote
Base
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
IsQuotedInUsd
Ohlc {
Open
High
Low
Close
}
Average {
Estimate
ExponentialMoving
Mean
SimpleMoving
WeightedSimpleMoving
}
}
}
}
}
Price change and movers
5-minute price change API
Top 10 tokens by 5-minute percentage change in USD, with at least $100k of volume in the candle. Chain-wide scans are what Tokens is for; once you have picked a token, price it from its top market with Pairs + rank 1.
Uses expressions.
{
Trading {
Tokens(
limit: { count: 10 }
orderBy: { descendingByField: "change" }
where: {
Price: { IsQuotedInUsd: true }
Volume: { Usd: { gt: 100000 } }
Interval: { Time: { Duration: { eq: 300 } } }
}
) {
Token {
Address
Did
Id
IsNative
Name
Network
Name
Symbol
TokenId
}
Currency {
Symbol
Id
Name
}
Interval {
VolumeBased
Time {
Start
End
Duration
}
}
Volume {
Base
BaseAttributedToUsd
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
IsQuotedInUsd
Ohlc {
Close
High
Low
Open
}
Average {
Estimate
ExponentialMoving
Mean
SimpleMoving
WeightedSimpleMoving
}
}
diff: calculate(expression: "Price_Ohlc_Close - Price_Ohlc_Open")
change: calculate(expression: "round(($diff / Price_Ohlc_Open), 3) * 100")
}
}
}
5-minute price change stream on Solana
The same ranking as a live stream on one chain. For a watchlist of specific tokens, stream their top markets instead: Watchlist: top-market price for several tokens.
subscription{
Trading {
Tokens(
orderBy:[{descending:Block_Time} {descendingByField:"change"}]
where: {
Price:{IsQuotedInUsd:true}
Token:{Network:{is:"Solana"}}
Volume:{Usd:{gt:100000}}
Interval: {Time: {Duration: {eq: 300}}}}) {
Token {
Address
Did
Id
IsNative
Name
Network
Name
Symbol
TokenId
}
Currency {
Symbol
Id
Name
}
Interval {
VolumeBased
Time {
Start
End
Duration
}
}
Volume {
Base
BaseAttributedToUsd
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
IsQuotedInUsd
Ohlc {
Close
High
Low
Open
}
Average {
Estimate
ExponentialMoving
Mean
SimpleMoving
WeightedSimpleMoving
}
}
diff: calculate(expression:"$Price_Ohlc_Close - $Price_Ohlc_Open")
change: calculate(expression:"$diff / $Price_Ohlc_Open * 100")
}
}
}
Drawdown of an asset in the last hour
Percentage drawdown ((Close - Open) / Open) * 100 over a 1-hour candle, for every token representation of a currency. Swap Currency: {Id} for Token: {Address: {is: "..."}} to target one token. This compares a currency's token representations against each other, so Tokens fits; to measure one token on the market where it trades, run the same expression on Pairs with rank 1.
{
Trading {
Tokens(
limit: { count: 1 }
orderBy: { ascendingByField: "drawdown" }
where: {
Volume: { Usd: { gt: 10 } }
Interval: { Time: { Duration: { eq: 3600 } } }
Currency: { Id: { is: "bid:bitcoin" } }
}
) {
Token {
Address
Did
Id
IsNative
Name
Network
Symbol
TokenId
}
Currency {
Symbol
Id
Name
}
Interval {
VolumeBased
Time {
Start
End
Duration
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
IsQuotedInUsd
Ohlc {
Close
High
Low
Open
}
Average {
Estimate
ExponentialMoving
Mean
SimpleMoving
WeightedSimpleMoving
}
}
diff: calculate(expression: "Price_Ohlc_Close - Price_Ohlc_Open")
drawdown: calculate(expression: "($diff / Price_Ohlc_Open) * 100")
}
}
}
Top Solana price movers (5-minute, high volume)
Solana tokens ranked by 5-minute change with a $100k volume floor, one row per token. This is a query over 300-second candles, not a volume-based interval; see Volume-based aggregation.
{
Trading {
Tokens(
limit: { count: 10 }
limitBy: { count: 1, by: Token_Id }
orderBy: [{ descending: Block_Time }, { descendingByField: "change" }]
where: {
Price: { IsQuotedInUsd: true }
Token: { Network: { is: "Solana" } }
Volume: { Usd: { gt: 100000 } }
Interval: { Time: { Duration: { eq: 300 } } }
}
) {
Token {
Address
Did
Id
IsNative
Name
Network
Name
Symbol
TokenId
}
Currency {
Symbol
Id
Name
}
Interval {
VolumeBased
Time {
Start
End
}
}
Volume {
Base
BaseAttributedToUsd
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
IsQuotedInUsd
Ohlc {
Close
High
Low
Open
}
Average {
Estimate
ExponentialMoving
Mean
SimpleMoving
WeightedSimpleMoving
}
}
diff: calculate(expression: "Price_Ohlc_Close - Price_Ohlc_Open")
change: calculate(expression: "round(($diff / Price_Ohlc_Open), 3) * 100")
}
}
}
Trending tokens (multi-chain)
Top trending tokens across all chains in one query, ranked by trailing 1-hour USD volume. Built on 1-minute Tokens candles: vol_1h sums the hour with a $10k floor via selectWhere, vol_5m is a conditional sum for the last 5 minutes, and priceMove is the absolute 1h price change (%) from an expression.
Quote and wrapped assets are excluded by symbol and market cap is capped at $100M.
{
Trading {
Tokens(
limit: { count: 20 }
orderBy: { descendingByField: "vol_1h" }
where: {
Price: { IsQuotedInUsd: true }
Interval: { Time: { Duration: { eq: 60 } } }
Block: { Time: { since_relative: { hours_ago: 1 } } }
Supply: { MarketCap: { le: 100000000 } }
Token: {
Symbol: { notIn: ["WSOL", "USDC", "USDT", "WETH", "DAI", "cbBTC"] }
}
}
) {
Token {
Id
Network
Symbol(maximum: Block_Time)
Name(maximum: Block_Time)
Address(maximum: Block_Time)
}
vol_1h: sum(of: Volume_Usd, selectWhere: { ge: "10000" })
vol_5m: sum(of: Volume_Usd, if: { Block: { Time: { since_relative: { minutes_ago: 5 } } } })
Price {
Ohlc {
open: Open(minimum: Interval_Time_Start)
high: High(maximum: Price_Ohlc_High)
low: Low(minimum: Price_Ohlc_Low)
close: Close(maximum: Interval_Time_Start)
}
}
priceMove: calculate(expression: "abs(($Price_Ohlc_close - $Price_Ohlc_open) / $Price_Ohlc_open) * 100")
Supply {
MarketCap(maximum: Block_Time)
FullyDilutedValuationUsd(maximum: Block_Time)
}
}
}
}
- Apply a price-move cut (for example 500%) client-side; a computed expression cannot be filtered server-side.
- For pool depth,
Liquidity { Usd }is onTokensandPairsrows (see Liquidity fields); for raw reserves join a chain-levelDEXPoolsquery. - Query only:
selectWhereandifdo not survive conversion to a subscription.
DEX-specific 1-second streams
All eight streams share one shape: Pairs at Duration: 1, Price: {IsQuotedInUsd: true}, Volume: {Usd: {gt: 5}}, filtered to one DEX with Market.Program on Solana or Market.Address (the factory) on EVM chains.
Each row is one pool's 1-second candle with volume, supply and the moving averages in Price.Average. Set IsQuotedInUsd: false to get prices in the quote token.
PumpAMM (Solana)
subscription {
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: true}, Market: {Network: {is: "Solana"}, Program: {is: "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"}}, Volume: {Usd: {gt: 5}}}
) {
Market {
Protocol
Program
Network
Name
Address
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
Ohlc {
Close
High
Low
Open
}
IsQuotedInUsd
}
Currency {
Symbol
Name
Id
}
QuoteCurrency{
Name
Symbol
Id
}
Token{
Name
Symbol
Address
Id
NetworkBid
}
QuoteToken{
Name
Symbol
Id
Address
NetworkBid
}
}
}
}
Heaven DEX (Solana)
subscription {
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: true}, Market: {Network: {is: "Solana"}, Program: {is: "HEAVENoP2qxoeuF8Dj2oT1GHEnu49U5mJYkdeC8BAX2o"}}, Volume: {Usd: {gt: 5}}}
) {
Market {
Protocol
Program
Network
Name
Address
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
Ohlc {
Close
High
Low
Open
}
IsQuotedInUsd
}
Currency {
Symbol
Name
Id
}
QuoteCurrency{
Name
Symbol
Id
}
Token{
Name
Symbol
Address
Id
NetworkBid
}
QuoteToken{
Name
Symbol
Id
Address
NetworkBid
}
}
}
}
Meteora DBC (Solana)
subscription {
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: true}, Market: {Network: {is: "Solana"}, Program: {is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN"}}, Volume: {Usd: {gt: 5}}}
) {
Market {
Protocol
Program
Network
Name
Address
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
Ohlc {
Close
High
Low
Open
}
IsQuotedInUsd
}
Currency {
Symbol
Name
Id
}
QuoteCurrency{
Name
Symbol
Id
}
Token{
Name
Symbol
Address
Id
NetworkBid
}
QuoteToken{
Name
Symbol
Id
Address
NetworkBid
}
}
}
}
Raydium Launchlab (Solana)
subscription {
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: true}, Market: {Network: {is: "Solana"}, Program: {is: "LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj"}}, Volume: {Usd: {gt: 5}}}
) {
Market {
Protocol
Program
Network
Name
Address
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
Ohlc {
Close
High
Low
Open
}
IsQuotedInUsd
}
Currency {
Symbol
Name
Id
}
QuoteCurrency{
Name
Symbol
Id
}
Token{
Name
Symbol
Address
Id
NetworkBid
}
QuoteToken{
Name
Symbol
Id
Address
NetworkBid
}
}
}
}
Uniswap v3 (Ethereum)
subscription {
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: true}, Market: {Network: {is: "Ethereum"}, Address: {is: "0x1f98431c8ad98523631ae4a59f267346ea31f984"}}, Volume: {Usd: {gt: 5}}}
) {
Market {
Protocol
Program
Network
Name
Address
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
Ohlc {
Close
High
Low
Open
}
IsQuotedInUsd
}
Currency {
Symbol
Name
Id
}
QuoteCurrency{
Name
Symbol
Id
}
Token{
Name
Symbol
Address
Id
NetworkBid
}
QuoteToken{
Name
Symbol
Id
Address
NetworkBid
}
}
}
}
Sushiswap (Ethereum)
subscription {
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: true}, Market: {Network: {is: "Ethereum"}, Address: {is: "0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac"}}, Volume: {Usd: {gt: 5}}}
) {
Market {
Protocol
Program
Network
Name
Address
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
Ohlc {
Close
High
Low
Open
}
IsQuotedInUsd
}
Currency {
Symbol
Name
Id
}
QuoteCurrency{
Name
Symbol
Id
}
Token{
Name
Symbol
Address
Id
NetworkBid
}
QuoteToken{
Name
Symbol
Id
Address
NetworkBid
}
}
}
}
- This stream returned zero rows when run as a query on 2026-10-22. If it is quiet, raise
Durationto 60.
PancakeSwap v3 (Ethereum)
subscription {
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: true}, Market: {Network: {is: "Ethereum"}, Address: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}, Volume: {Usd: {gt: 5}}}
) {
Market {
Protocol
Program
Network
Name
Address
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
Ohlc {
Close
High
Low
Open
}
IsQuotedInUsd
}
Currency {
Symbol
Name
Id
}
QuoteCurrency{
Name
Symbol
Id
}
Token{
Name
Symbol
Address
Id
NetworkBid
}
QuoteToken{
Name
Symbol
Id
Address
NetworkBid
}
}
}
}
- For PancakeSwap v3 on BSC, use
Network: {is: "Binance Smart Chain"}with the same factory address as in the OHLC guide.
FourMeme (BSC)
subscription {
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: true}, Market: {Network: {is: "Binance Smart Chain"}, Address: {is: "0x5c952063c7fc8610ffdb798152d69f0b9550762b"}}, Volume: {Usd: {gt: 5}}}
) {
Market {
Protocol
Program
Network
Name
Address
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Supply {
TotalSupply
FullyDilutedValuationUsd
MarketCap
}
Price {
Ohlc {
Close
High
Low
Open
}
IsQuotedInUsd
}
Currency {
Symbol
Name
Id
}
QuoteCurrency{
Name
Symbol
Id
}
Token{
Name
Symbol
Address
Id
NetworkBid
}
QuoteToken{
Name
Symbol
Id
Address
NetworkBid
}
}
}
}
Related
Ready to run this in production?
Get an API key and run these queries in minutes, or talk to us about plans and enterprise delivery.