All time low pepe token

Returns one DEX trade on Ethereum, where base currency is 0x6982…1933, quote currency is 0xc02a…6cc2 and date since 2023-06-19, sorted by quote price USD: timestamp time, block height, trade index, protocol, full name, address address, annotation and 9 more fields.

By gaurav · saved 26 June 2023 · run 3 times · 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: {asc: ["quotePriceUSD"], limit: $limit, offset: $offset}
      baseCurrency: {is: "0x6982508145454ce325ddbe47a25d4ec3d2311933"}
      quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      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": 1,
  "offset": 0,
  "network": "ethereum",
  "from": "2023-06-19",
  "till": "2023-06-26T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries