trades between time

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x0e09…ce82, quote currency is 0x55d3…7955 and time since 2022-05-28: block height, timestamp time, base currency symbol, base currency address, quote currency symbol, quote currency address and quote price.

By gaurav · saved 1 June 2022 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($baseAddress: String!, $quoteAddress: String!) {
  ethereum(network: bsc) {
    dexTrades(
      time: {since: "2022-05-28T13:38:06", till: "2022-05-28T13:45:10"}
      baseCurrency: {is: $baseAddress}
      quoteCurrency: {is: $quoteAddress}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      buyCurrency: baseCurrency {
        symbol
        address
      }
      sellCurrency: quoteCurrency {
        symbol
        address
      }
      quotePrice
    }
  }
}

Variables

{
  "baseAddress": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
  "quoteAddress": "0x55d398326f99059ff775485246999027b3197955",
  "interval": 10
}

Similar queries