Transactions-price-difference

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

By linthertoss · saved 18 January 2023 · run 6 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
      baseAmountUSD: baseAmount(in: USD)
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteAmountUSD: quoteAmount(in: USD)
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "baseAddress": "0x2170ed0880ac9a755fd29b2688956bd959f933f8",
  "from": "2023-01-18T17:09:37.847Z",
  "limit": 15,
  "offset": 0,
  "network": "bsc"
}

Similar queries