Pablo_Exchange_price_last_hour

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

By pablo · saved 29 January 2023 · run 1 time · 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, limit: 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