V3 Trades

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 nick · saved 2 November 2023 · run 17 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      smartContractAddress: {is: "0x539e0ebfffd39e54a0f7e5f8fec40ade7933a664"}
    ) {
      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": "bsc",
  "from": "2023-10-24",
  "till": "2023-10-31T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries