dfdf

Returns 100 DEX trades on Ethereum and BNB Chain, where base currency is 0x53e5…2657, quote currency is 0xbb4c…095c and date since 2020-11-01, sorted by time interval day: day, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 5 more fields.

By Andrej · saved 5 December 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(options: {limit: 100, asc: "timeInterval.day"}, 
      date: {since:"2020-11-01"}
      baseCurrency: {is: "0x53e562b9b7e5e94b81f10e96ee70ad06df3d2657"}, 
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}) {
      timeInterval {
        day(count: 1)
      }

    
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      
      trades: count
      quotePrice
      
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      
      open_price: minimum(of: block get: quote_price)
      close_price: maximum(of: block get: quote_price)
  		tradeAmount(in: USDT)
    }
  }
}

Similar queries