Latest Trade of BKC

Returns the latest DEX trade on Ethereum and BNB Chain, where base currency is 0xd97e…d433, date since 2021-11-15 and date till 2021-12-14: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By gaurav · saved 14 December 2021 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      baseCurrency: {is: $token}
    ) {
      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

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

Similar queries