hourly bnb/usdt price data v2

Returns the latest 100 DEX trades on Ethereum and BNB Chain, where base currency is 0x55d3…7955, quote currency is 0xbb4c…095c and date since 2023-06-13: base currency name, buy amount, buy currency name, exchange name, quote currency name, quote currency symbol, quote price and 2 more fields.

By Divyasshree N · saved 6 July 2023 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork, $from: ISO8601DateTime, $till: ISO8601DateTime, $baseCurrency: String, $quoteCurrency: String) {
  ethereum(network: $network) {
    dexTrades(
      baseCurrency: {is: $baseCurrency}
      quoteCurrency: {is: $quoteCurrency}
      options: {desc: "block.timestamp.time", limit: 100}
      date: {since: $from, till: $till}
    ) {
      baseCurrency {
        name
      }
      buyAmount
      buyCurrency {
        name
      }
      exchange {
        name
      }
      quoteCurrency {
        name
        symbol
      }
      quotePrice
      transaction {
        hash
      }
      block {
        timestamp {
          time
        }
      }
    }
  }
}

Variables

{
  "from": "2023-06-13T00:00:00Z",
  "till": "2023-06-20T00:00:00Z",
  "network":"bsc",
  "baseCurrency": "0x55d398326f99059ff775485246999027b3197955",
  "quoteCurrency": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
}

Similar queries