Trades SCLT

Returns 3 DEX trades on Ethereum and BNB Chain, where base currency is 0x832e…87bc, quote currency is 0xbb4C…095c and time since 2021-12-11, sorted by block timestamp time trade index: timestamp time, block height, trade index, protocol, full name, address address, annotation and 8 more fields.

By gaurav · saved 13 December 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

 {
  ethereum(network: bsc) {
    dexTrades(
      baseCurrency: {is: "0x832e655651b0c84c48b63a0ad74cb0cad8bf87bc"}
      quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      time: {since: "2021-12-11T03:03:00Z"}
      options: { limit: 3 asc: ["block.timestamp.time", "tradeIndex"]}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      quotePrice
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "token": "0x832e655651b0c84c48b63a0ad74cb0cad8bf87bc",
  "from": "2021-11-14",
  "till": "2021-12-13T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries