price_change_interval_based

Returns DEX trades by token on Ethereum, where currency smart contract is 0x1f98…f984, side currency smart contract is 0xa0b8…eb48 and block time since 2024-06-02: trade price.

By George · saved 8 July 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      where: {Block: {Time: {since: "2024-06-02T08:18:00Z", till: "2024-06-03T08:18:00Z"}}, Trade: {Currency: {SmartContract: {is: "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}}, Side: {Currency: {SmartContract: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}}}}}
    ) {
      Trade {
        start: Price(minimum: Block_Time)
        min5: Price(
          minimum: Block_Time
          if: {Block: {Time: {after: "2024-06-03T08:13:00Z"}}}
        )
        hour1: Price(
          minimum: Block_Time
          if: {Block: {Time: {after: "2024-06-03T07:18:00Z"}}}
        )
        hour6: Price(
          minimum: Block_Time
          if: {Block: {Time: {after: "2024-06-03T02:18:00Z"}}}
        )
        end: Price(maximum: Block_Time)
      }
    }
  }
}

Similar queries