Historical Pepe Price for Uniswap V2

Historical Uniswap Trades

Returns the latest 10 DEX trades on Ethereum, where smart contract address is 0xA43f…Ec9f, exchange name is Uniswap and date since 2024-07-04: timestamp time, block height, trade index, protocol, full name, exchange name, address address and 10 more fields.

By Kekspace · saved 5 July 2024 · 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}
      smartContractAddress: {is: "0xA43fe16908251ee70EF74718545e4FE6C5cCEc9f"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
        name
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyCurrency {
        address
        symbol
        name
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      sellCurrency {
        address
        symbol
        name
      }
      transaction {
        hash
      }
      price(buyCurrency: {}, baseCurrency: {}, calculate: median)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "exchange": "Uniswap",
  "from": "2024-07-04",
  "till": "2024-07-05T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries