Historical data for bsc token pairs

Returns 260 DEX trades on Ethereum and BNB Chain, where base currency is 0x9B3a…9f41, quote currency is 0xbb4C…095c and exchange name is Pancake, Pancake v2 or 1 more, sorted by time interval second: second, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By Reidwids · saved 17 June 2022 · run 15 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {asc: "timeInterval.second", limit: 260}
      time: {after: "2022-06-23T12:50:08.000Z", before:"2022-06-23T17:10:08.000Z"}
      exchangeName: {in:["Pancake","Pancake v2", "Uniswap"]}
      baseCurrency: {is: "0x9B3a01F8b4aBD2E2a74597B21b7C269ABf4E9f41"},
      quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"},
      tradeAmountUsd: {gt: 10}
    ) 
    {
      timeInterval {
        second(count: 60)  
      }
      baseCurrency {
        symbol
        address
        }
        baseAmount
        quoteCurrency {
        symbol
        address
        }
        quoteAmount
        trades: count
        quotePrice
        high: quotePrice(calculate: maximum)
        low: quotePrice(calculate: minimum)
        open: minimum(of: block get: quote_price)
        close: maximum(of: block get: quote_price)
        volume: quoteAmount
        count: count
    }
  }
}

Similar queries