Historical Token OHLC Multi Chains
get volume, price of token stream
Returns pairs, where currency ID is bid:eth, quote currency ID is usdc and time duration is 3600, sorted by interval time start: token ID, token symbol, token address, network bid, network, token name, quote token ID and 14 more fields.
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
Filters
- currency ID is bid:eth
- quote currency ID is usdc
- time duration is 3600
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/
#
# For more info on the endpoint visit -
# https://docs.bitquery.io/docs/trading/crypto-price-api/introduction/
# For faster results try using indexed feilds in where and orderBy clause -
# https://docs.bitquery.io/docs/graphql/indexed-fields-reference/
query HistoricalOHLC {
Trading {
Pairs(
orderBy: {ascending: Interval_Time_Start}
where: {Price: {IsQuotedInUsd: false}, Interval: {Time: {Duration: {eq: 3600}}}, Currency: {Id: {is: "bid:eth"}}, QuoteCurrency: {Id: {is: "usdc"}}, Block: {Date: {till_relative: {days_ago: 7}, since_relative: {days_ago: 30}}}}
) {
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
}
}
}
}
}
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