- base currency error

Returns the latest 10 DEX trades on Ethereum, where date since 2022-01-17, date till 2022-05-24 and base currency is -: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By Aman · saved 24 May 2022 · 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": 10,
  "offset": 0,
  "network": "ethereum",
  "token": "-",
  "from": "2022-01-17",
  "till": "2022-05-24T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries