high_price

Returns one DEX trade on Ethereum, where smart contract address is 0xa43f…ec9f, sorted by price, highest first: timestamp time, block height, buy currency address, buy currency symbol, sell currency address, sell currency symbol, transaction hash and price.

By Omkar Acharekar · saved 4 August 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {limit: 1, desc: "price"}
      date: {since: $from, till: $till}
      smartContractAddress: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      buyCurrency {
        address
        symbol
      }
      sellCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
      price
    }
  }
}

Variables

{

  "network": "ethereum",
  "address": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m-%d"
}

Similar queries