OHLC of a Token on pancake_swap_v3
Historical data The Trading cube covers real time and roughly the last 30 days. For anything older, rebuild the same numbers from raw trades with DEXTradeByTokens. Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/ Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retenti
What it returns
- token name
- token symbol
- token address
- quote token name
- quote token symbol
- quote token address
- protocol
- program
- network
- market name
- market address
- block date
- block time
- timestamp
- start
- duration
- end
- base
- quote
- USD
- close
- high
- low
- open
Filters
- market network is Binance Smart Chain
- market protocol is pancake_swap_v3
- currency ID is bid:bitcoin
- time duration is 1
The query
# Historical data
# The Trading cube covers real time and roughly the last 30 days. For
# anything older, rebuild the same numbers from raw trades with
# DEXTradeByTokens.
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
{
Trading {
Pairs(
where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: false}, Market: {Network: {is: "Binance Smart Chain"}, Protocol: {is: "pancake_swap_v3"}}, Currency: {Id: {is: "bid:bitcoin"}}}
limit: {count: 10}
orderBy: {descending: Interval_Time_End}
) {
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
}
Price {
Ohlc {
Close
High
Low
Open
}
}
}
}
}
Similar queries
- Elysium pair OHLC candles (WHYPE/USDC, 5 min) · Trading (all chains) · Pairs
- Elysium top trading pairs by USD volume, 24h · Trading (all chains) · Pairs
- arc mainnet minara pool price · Trading (all chains) · Pairs
- Arc Mainnet Trading: Latest price of a token (v2) · Trading (all chains) · Pairs
- save with commit · Trading (all chains) · Tokens