Get List transactions

Returns the latest 100 DEX trades on Ethereum and BNB Chain, where base currency is 0x2170…33f8 and date since 2022-05-31: side, trade index, timestamp time, block height, full name, address address, annotation and 7 more fields.

By linthertoss · saved 31 May 2022 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $baseAddress: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      date: {since: $from}
      baseCurrency: {is: $baseAddress}
    ) {
      side
      tradeIndex
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseAmountUSD: baseAmount(in: USD)
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteAmountUSD: quoteAmount(in: USD)
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "baseAddress": "0x2170ed0880ac9a755fd29b2688956bd959f933f8",
  "limit": 100,
  "offset": 0,
  "from": "2022-05-31T15:05:14.504Z"
}

Similar queries