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

By Kshitij Mahajan · saved 25 June 2026 · run 3 times · Bitquery API v2

What it returns

Filters

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