latest trades

Returns the latest 10000 DEX trades on Ethereum and BNB Chain, where date after 2022-03-25, time since 2022-03-26 and time till 2022-03-26: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By gaurav · saved 5 April 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 10000, offset: 0}
      date: {after: "2022-03-25"}
      time: {since: "2022-03-26T00:00:00", till: "2022-03-26T01:00:00"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      sellAmount
      sellCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "dateFormat": "%Y-%m-%d"
}

Similar queries