List transactions

Example shows how you can query multiple pairs ( markets ) in one query

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

By linthertoss · saved 25 January 2023 · run 7 times · 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
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
     
      quotePrice
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteAmountUSD: quoteAmount(in: USD)
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "baseAddress": "0x2170ed0880ac9a755fd29b2688956bd959f933f8",
  "from": "2023-01-25T11:53:36.644Z",
  "limit": 100,
  "offset": 0,
  "network": "bsc"
}

Similar queries