olping

Returns 100 DEX trades on Ethereum, where date since 2023-09-19, date till 2023-10-02 and trade amount USD is above 100, sorted by quote price USD, highest first: timestamp time, block height, trade index, protocol, full name, address address, annotation and 9 more fields.

By clover · saved 2 November 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["quotePriceUSD"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      tradeAmountUsd: {gt: 100}
      priceAsymmetry: {lt: 0.1}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol

      }
      base_amount_usd: baseAmount(in: USD)
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      quote_amount_usd: quoteAmount(in: USD)
      quotePrice
      quotePriceUSD: expression(get: "quote_amount_usd / baseAmount")
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 100,
  "offset": 0,
  "network": "ethereum",
  "from": "2023-09-19",
  "till": "2023-10-02T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries