Pool tradestest

Returns the latest 100 DEX trades on Ethereum, where smart contract address is 0xCBCd…62eD, exchange name is Uniswap and date since 2024-01-01: timestamp time, block height, trade index, protocol, full name, address address, annotation and 8 more fields.

By Niceface · saved 5 July 2024 · run 5 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: "0xCBCdF9626bC03E24f779434178A73a0B4bad62eD"}
    ) {
      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
        gasValue
        
      }
    }
  }
}

Variables

{
  "limit": 100,
  "offset": 0,
  "network": "ethereum",
  "exchange": "Uniswap",
  "from": "2024-01-01",
  "till": "2024-06-30T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries