celo_dex

Returns the latest 10 DEX trades on Ethereum and celo_mainnet, where tx sender is 0xa0ee…2adc, date since 2023-07-10 and date till 2023-07-19: timestamp time, block height, trade index, protocol, full name, address address, annotation and 11 more fields.

By George · saved 23 April 2024 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: celo_mainnet) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 10, offset: 0}
      date: {since: "2023-07-10", till: "2023-07-19"}
      txSender: {is: "0xa0ee17066d851c6411bda83272b421dc9ef62adc"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
        address {
          address
        }
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      base_amount_usd: baseAmount(in: USD)
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quote_amount_usd: quoteAmount(in: USD)
      quoteCurrency {
        address
        symbol
      }
      maker {
        address
      }
      taker {
        address
      }
      transaction {
        hash
        txFrom {
          address
        }
      }
      side
    }
  }
}

Similar queries