Price Change in 5 minute, 1 hour, 6 hour,24 hour

Returns DEX trades by token on Ethereum, where currency smart contract is 0xaaeE…1C7a, side currency smart contract is 0xC02a…6Cc2 and block time since 2024-06-02: trade price.

By Akshat · saved 3 June 2024 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      where: {Block: {Time: {since: "2024-06-02T07:48:00Z", till: "2024-06-03T07:48:00Z"}}, Trade: {Currency: {SmartContract: {is: "0xaaeE1A9723aaDB7afA2810263653A34bA2C21C7a"}}, Side: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}}
    ) {
      Trade {
        start: Price(minimum: Block_Time)
        min5: Price(
          minimum: Block_Time
          if: {Block: {Time: {after: "2024-06-03T07:43:00Z"}}}
        )
        hour1: Price(
          minimum: Block_Time
          if: {Block: {Time: {after: "2024-06-03T06:48:00Z"}}}
        )
        hour6: Price(
          minimum: Block_Time
          if: {Block: {Time: {after: "2024-06-03T01:48:00Z"}}}
        )
        end: Price(maximum: Block_Time)
      }
    }
  }
}

Similar queries