base dextrades for a token

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

By Kshitij Mahajan · saved 8 April 2026 · run 1 time · Bitquery API v2

What it returns

Filters

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/
#

query MyQuery {
  Trading {
    Trades(
      where: {
        Pair: {
          Token: {Address: {is: "0x4200000000000000000000000000000000000006"}}
          Market: {Network: {is: "Base"}}
        }
      },
      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