DWR/WBNB trades

Returns the latest DEX trades on Ethereum and BNB Chain, where base currency is 0x5f49…5b8c, quote currency is 0xbb4c…095c and time since 2021-08-28: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By gaurav · saved 24 November 2021 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $baseCurrency: String!, $quoteCurrency: String!, $since: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"]}
      time: {since: $since, before: $till}
      baseCurrency: {is: $baseCurrency}
      quoteCurrency: {is: $quoteCurrency}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "offset": 0,
  "network": "bsc",
  "baseCurrency": "0x5f49f9024d5dec860b110eca79e5b805c14b5b8c",
  "quoteCurrency": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
  "since": "2021-08-28T08:00:00.00",
  "till": "2021-08-28T08:10:00.00",
  "dateFormat": "%Y-%m-%d"
}

Similar queries