Historical Tron trades for a token within 30 days
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: Tron(dataset: combined) archive full history combined archive + realtime in one result Archive and com
What it returns
- base
- quote
- block date
- block time
- timestamp
- currency ID
- currency name
- currency symbol
- pool address
- quote currency ID
- quote currency name
- quote currency symbol
- quote token address
- quote token name
- quote token symbol
- token address
- token name
- token symbol
- price
- price in USD
- side
- position
- weight
- market cap
- total supply
- fully diluted valuation USD
- trader address
- transaction header fee
- fee payer
- transaction header hash
Filters
- token address is TPFqcB…R6Rc
- market network is Tron
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:
#
# Tron(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/
#
# For more info on the endpoint visit -
# https://docs.bitquery.io/docs/trading/crypto-trades-api/trades-api/
# For faster results try using indexed feilds in where and orderBy clause -
# https://docs.bitquery.io/docs/graphql/indexed-fields-reference/
query MyQuery {
Trading {
Trades(
orderBy: {ascending: Block_Time}
where: {
Block: {Date: {till_relative: {weeks_ago: 1} since_relative: {weeks_ago: 2}}}
Pair: {
Market: {Network: {is: "Tron"}}
Token: {Address: {is: "TPFqcBAaaUMCSVRCqPaQ9QnzKhmuoLR6Rc"}}
}
}
limit: {count: 20}
) {
Amounts {
Base
Quote
}
AmountsInUsd {
Base
Quote
}
Block {
Date
Time
Timestamp
}
Pair {
Currency {
Id
Name
Symbol
}
Pool {
Address
}
QuoteCurrency {
Id
Name
Symbol
}
QuoteToken {
Address
Name
Symbol
}
Token {
Address
Name
Symbol
}
}
Price
PriceInUsd
Side
Ranking {
Position
Weight
}
Supply {
MarketCap
TotalSupply
FullyDilutedValuationUsd
}
Trader {
Address
}
TransactionHeader {
Fee
FeePayer
Hash
}
}
}
}
Similar queries
- Elysium latest trades of one token (WHYPE) · Trading (all chains) · Trades
- Elysium DEX protocols by trade count · Trading (all chains) · Trades
- FOMO App: Trades per Day (Trading API) · Trading (all chains) · Trades
- save with commit · Trading (all chains) · Tokens