WMATIC-USDC Trades

Returns the latest 10 DEX trades on Ethereum and Polygon, where smart contract address is 0xA374…6d32, exchange name is Uniswap v3 and date since 2023-10-07: timestamp time, block height, trade index, full name, buy amount, buy currency address, buy currency symbol and 4 more fields.

By Nikhil · saved 14 October 2023 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $exchange: String!, $limit: Int!, $offset: Int!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      smartContractAddress: {is: $address}
      exchangeName: {is: $exchange}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      exchange {
        fullName
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      sellAmount
      sellCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
      exchange {
        fullName
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "matic",
  "exchange": "Uniswap v3",
  "address": "0xA374094527e1673A86dE625aa59517c5dE346d32",
  "from": "2023-10-07",
  "till": "2023-10-14T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries