Historical tron token trades beyond 30 days
Historical data This query already reads history - it uses the archive dataset, which needs the historical data add-on for this chain. Without the add-on it fails with 'access restricted: your plan only allows realtime'. Drop the dataset argument to fall back to the recent window. Datasets: https:/
What it returns
- block time
- block number
- trade amount
- amount in USD
- buyer
- currency name
- currency symbol
- smart contract
- decimals
- protocol family
- protocol name
- seller
- side currency name
- side currency symbol
- side smart contract
- side decimals
- side type
- transaction hash
Filters
- currency smart contract is TPFqcB…R6Rc
The query
# Historical data
# This query already reads history - it uses the archive dataset, which
# needs the historical data add-on for this chain.
#
# Without the add-on it fails with 'access restricted: your plan only allows
# realtime'. Drop the dataset argument to fall back to the recent window.
#
# 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/blockchain/Tron/
# For faster results try using indexed feilds in where and orderBy clause -
# https://docs.bitquery.io/docs/graphql/indexed-fields-reference/
query MyQuery {
Tron(dataset: archive) {
DEXTradeByTokens(
orderBy: {descending: Block_Number}
where: {Trade: {Currency: {SmartContract: {is: "TPFqcBAaaUMCSVRCqPaQ9QnzKhmuoLR6Rc"}}}, Block: {Date: {since_relative: {months_ago: 6}, till_relative: {months_ago: 4}}}}
) {
Block {
Time
Number
}
Trade {
Amount
AmountInUSD
Buyer
Currency {
Name
Symbol
SmartContract
Decimals
}
Dex {
ProtocolFamily
ProtocolName
SmartContract
}
Seller
Side {
Currency {
Name
Symbol
SmartContract
Decimals
}
Type
}
}
Transaction {
Hash
}
}
}
}
Similar queries
- AfricaCryptoChainx · Ethereum · DEXTradeByTokens
- TLeVfrdym8RoJreJ23dAGyfJDygRtiWKBZ · Tron · DEXTradeByTokens
- UniversalSearch EVM · Ethereum · DEXTradeByTokens
- K2DhBqHBXEjBMwXm · Tron · DEXTradeByTokens
- top dexs for tron · Tron · DEXTradeByTokens