arbitrum combined dataset

Returns DEX trades by token on Arbitrum, where side currency smart contract is 0xaf88…5831, 0xfd08…cbb9 or 2 more, currency smart contract is 0xfa7f…f7f0 and block time since 2025-04-17, sorted by block time: block time, quantile of trade price in USD, average of trade price in USD and sum of trade side amount in USD.

By gaurav · saved 11 June 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query tradingView($network: evm_network, $dataset: dataset_arg_enum, $interval: Int, $from: DateTime, $to: DateTime, $token: String, $usdc: String!, $usdt: String!, $weth: String!, $usdc2: String!) {
  EVM(network: $network, dataset: $dataset) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {TransactionStatus: {Success: true}, Trade: {Side: {Currency: {SmartContract: {in: [$usdc, $usdt, $weth, $usdc2]}}}, Currency: {SmartContract: {is: $token}}, Success: true}, Block: {Time: {since: $from, till: $to}}}
    ) {
      Block {
        Time(interval: {count: $interval, in: seconds})
      }
      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)
    }
  }
}

Variables

{
  "network": "arbitrum",
  "token": "0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0",
  "usdc": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
  "usdc2": "0x7f5c764cbc14f9669b88837ca1490cca17c31607",
  "usdt": "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
  "weth": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
  "dataset": "combined",
  "time_ago": "2025-06-08T07:08:19Z",
  "interval": 14400,
  "from": "2025-04-17T11:09:43.000Z",
  "to": "2025-06-11T07:09:43.000Z"
}

Similar queries