bsc pancakeswap ohlc using trading api
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 ID
- token symbol
- token address
- network bid
- network
- token name
- quote token ID
- quote token symbol
- quote token address
- quote token name
- start
- end
- duration
- USD
- quote
- base
- is quoted in USD
- open
- high
- low
- close
- estimate
- exponential moving
- mean
- simple moving
- weighted simple moving
Filters
- currency ID is bid:eth
- quote currency ID is usdc
- market protocol is pancake_swap_v3
- 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(dataset: realtime) {
Pairs(
where: {
Price: {IsQuotedInUsd: false},
Interval: {Time: {Duration: {eq: 1}}},
Currency: {Id: {is: "bid:eth"}},
QuoteCurrency: {Id: {is: "usdc"}},
Market: {Protocol: {is: "pancake_swap_v3"}}
}
limit: {count: 10}
orderBy: {descending: Interval_Time_End}
) {
Token {
Id
Symbol
Address
NetworkBid
Network
Name
}
QuoteToken {
Id
Symbol
Address
Name
NetworkBid
}
Interval {
Time {
Start
End
Duration
}
}
Volume {
Usd
Quote
Base
}
Price {
IsQuotedInUsd
Ohlc {
Open
High
Low
Close
}
Average {
Estimate
ExponentialMoving
Mean
SimpleMoving
WeightedSimpleMoving
}
}
}
}
}
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