IM_N01

query every transaction on Pancake v2 with no limit for a time interval of 1 hr.

By Divyasshree N · saved 26 January 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {asc: "date.date",  offset: 10}
      date: {since: $from, till: $till}
      exchangeName: {is: "Pancake v2"}
      sellCurrency: {notIn: ["USDT", "WBNB", "BUSD", "USDC"]}
    ) {
      buyCurrency {
        name
        symbol
      }
      sellCurrency {
        name
        symbol
      }
      date {
        date
      }
      buyAmount(in: USD)
      last_price: maximum(of: block, get: price)
      median_price: price(calculate: median)
      block {
        timestamp {
          unixtime
        }
      }
    }
  }
}

Variables

{"network":"bsc","from":"2023-01-24T23:59:59","till":"2023-01-25T01:00:00","dateFormat":"%Y-%m-%d"}

Similar queries