BNB-USD

Returns 10 DEX trades on Ethereum and BNB Chain, where buy currency is 0x55d3…7955 or 0xbb4c…095c, sell currency is 0x55d3…7955 or 0xbb4c…095c and exchange name is Pancake v2, sorted by time interval day: day, buy currency symbol, buy currency address, buy amount, sell currency symbol, sell currency address, sell amount and 4 more fields.

By Kevin · saved 21 October 2021 · run 3 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 10, asc: "timeInterval.day"}
      date: {after: "2021-10-15"}
      exchangeName: {in: ["Pancake v2"]}
      buyCurrency: {in: ["0x55d398326f99059ff775485246999027b3197955", "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"]}
      sellCurrency: {in: ["0x55d398326f99059ff775485246999027b3197955", "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"]}
    ) {
      timeInterval {
        day(count: 1)
      }
      buyCurrency {
        symbol
        address
      }
      buyAmount
      sellCurrency {
        symbol
        address
      }
      sellAmount
      trades: count
      maximum_price: price(calculate: maximum)
      minimum_price: price(calculate: minimum)
      open_price: minimum(of: block, get: price)
      close_price: maximum(of: block, get: price)
    }
  }
}

Similar queries