BSC dextrades for pancakeswap

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 2 times · 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: {
          Market: {Network: {is: "Binance Smart Chain"}, 
          Address: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}
        }
      }
      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