USCD / WMATIC Polygon (Uni v3)

uniswap latest trades on Polygon

Returns the latest 10 DEX trades on Ethereum and Polygon, where base currency is 0x2791…4174, exchange name is Uniswap v3 and date since 2023-05-19: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

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

What it returns

Filters

The query

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

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "matic",
  "exchange": "Uniswap v3",
  "from": "2023-05-19",
  "till": "2023-05-26T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries