Chart display

Returns DEX trades on Ethereum and BNB Chain, where smart contract address is 0xf0b5…48c8, base currency is 0xda1e…698a and quote currency is 0xbb4c…095c: minute, base currency name, base currency symbol, quote currency name, quote currency symbol, base currency address, token ID and 7 more fields.

By Santhosh · saved 13 September 2021 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query ($from: ISO8601DateTime!, $to: ISO8601DateTime!, $interval: Int) {
  ethereum(network: bsc) {
    dexTrades(
      smartContractAddress: 
      {is:"0xf0b52650938d311890d67267dd81c89b746648c8"}
      date: {between: [$from, $to]}      
      exchangeName: {in:["Pancake v2"]}
      baseCurrency: {is: "0xda1e3320f73b2806e568f99e5a400020e965698a"}
			quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ) {
      timeInterval {
        minute(format: "%FT%TZ", count: $interval)
      }
      baseCurrency{
        name
        symbol
      }
      quoteCurrency{
        name
        symbol
      }
      buyCurrency: baseCurrency {
        symbol
        address
        tokenId
      }
      buyAmount: baseAmount
      sellCurrency: quoteCurrency {
        symbol
        address
      }
      volume: quoteAmount
      trades: count
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Variables

{
  "from": "2021-09-12T21:52:30+03:00",
  "to": "2021-09-13T05:53:30+03:00",
  "interval": 30
}

Similar queries