Mantle_token_ohlc_per_month_interval

Returns DEX trades by token on Ethereum, where currency smart contract is 0x3c3a…f354 and block date since 2025-01-01, sorted by block time: block time, quantile of trade price in USD, average of trade price in USD, sum of trade side amount in USD, smart contract and currency name.

By Omkar_BQ · saved 9 June 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query tokenohlc {
  EVM(network: eth, dataset: archive) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Currency: {SmartContract: {is: "0x3c3a81e81dc49a522a592e7622a7e711c06bf354"}}}, Block: {Date: {since: "2025-01-01"}}, TransactionStatus: {Success: true}}
    ) {
      Block {
        Time(interval: {count: 1, in: months})
      }
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      close: average(of: Trade_PriceInUSD)
      open: average(of: Trade_PriceInUSD)
      volume: sum(of: Trade_Side_AmountInUSD)
      Trade {
        Currency {
          SmartContract
          Name
        }
      }
    }
  }
}

Similar queries