Uniswap V3 Trades on Polygon

Query this to get trade details of Uniswap V3 on Polygon. Data points: Date, Exchange, Smart Contract address, Buy Amount (USD) and Currency, Sell Amount (USD) and Currency, Currency address, and Transaction hash Customize the limit and date to get the data you want to analyze.

By Sangam Bharti · saved 31 October 2023 · run 11 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}
    ) {
      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-10-24",
  "till": "2023-10-31T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries