Start_price and High_price of a token pair in Eth

Returns DEX trades by token on Ethereum, where currency smart contract is 0xd620…8e02, side currency smart contract is 0xC02a…6Cc2 and block time since 2024-12-18: block time and trade price.

By gaurav · saved 28 April 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0xd6203889C22D9fe5e938a9200f50FDFFE9dD8e02"}}, Side: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}, AmountInUSD: {gt: "100"}}, Block: {Time: {since: "2024-12-18T20:32:00Z", till: "2025-04-24T21:59:59Z"}}, TransactionStatus: {Success: true}}
    ) {
      Block {
        Start_price_Time: Time(minimum: Block_Number)
        High_Price_Time: Time(maximum: Trade_Price)
      }
      Trade {
        Start_Price: Price(minimum: Block_Number)
        High_Price: Price(maximum: Trade_Price)
      }
    }
  }
}

Similar queries