Get Latest Price of a token on PancakeSwap Infinity
Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: EVM(network: base, dataset: combined) archive full history combined archive + realtime in one result A
What it returns
- from
- to
- block time
- trade price
- price in USD
- trade amount
- amount in USD
- currency name
- currency symbol
- smart contract
- protocol name
- side amount
- side amount in USD
- side currency name
- side currency symbol
- side smart contract
Filters
- currency smart contract is 0xcbb7…33bf
- DEX protocol name is pancakeswap_infinity
The query
# Historical data
# This query uses the realtime dataset (the default), which holds only a
# recent window - hours to days depending on the cube.
#
# For older data add a dataset to the top-level element:
#
# EVM(network: base, dataset: combined)
#
# archive full history
# combined archive + realtime in one result
#
# Archive and combined need the historical data add-on:
# https://bitquery.io/pricing
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
query MyQuery {
EVM(dataset: realtime, network: base) {
DEXTradeByTokens(
where: {Trade: {Currency:{SmartContract:{is:"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf"}} Dex: {ProtocolName: {is: "pancakeswap_infinity"}}}}
limit: {count: 10}
orderBy: {descending: Block_Time}
) {
Transaction {
From
To
}
Block {
Time
}
Trade {
Price
PriceInUSD
Amount
AmountInUSD
Currency {
Name
Symbol
SmartContract
}
Dex {
ProtocolName
SmartContract
}
Side {
Amount
AmountInUSD
Currency {
Name
Symbol
SmartContract
}
}
}
}
}
}
Similar queries
- Coinbase stock tokens: DEX trading on Base, Sep 5 to Oct 4 2026 · Base · DEXTradeByTokens
- Coinbase stock tokens: DEX trading on Base in August 2026 · Base · DEXTradeByTokens
- optimized query to get pools data · Ethereum · DEXTradeByTokens
- AfricaCryptoChainx · Ethereum · DEXTradeByTokens
- top pools of a token · Base · DEXTradeByTokens