USDC token on Uniswap

Returns the latest 10 DEX trades on Ethereum, where base currency is 0xa0b8…eb48, exchange name is Uniswap and date since 2022-10-31: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By gaurav · saved 7 November 2022 · run 14 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $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}
      baseCurrency: {is: $token}
      exchangeName: {is: "Uniswap"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      base_amount_usd: baseAmount(in: USD)
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      quote_amount_usd: quoteAmount(in: USD)
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "from": "2022-10-31",
  "till": "2022-11-07T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries