base token info

Streams DEX trades by token on Base as they happen, where currency smart contract is 0x8335…2913 and side currency smart contract is 0x, 0x4200…0006 or 2 more, sorted by block time: block time, price in USD, quantile of trade price in USD and sum of trade side amount.

By Nadia · saved 11 October 2024 · run 13 times · Bitquery API v2

What it returns

Filters

The subscription

subscription tradingView($network: evm_network, $token: String, $eth: String!, $weth: String!, $usdc: String!, $usdt: String!) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Side: {Currency: {SmartContract: {in: [$eth, $weth, $usdc, $usdt]}}}, Currency: {SmartContract: {is: $token}}}}
    ) {
      Block {
        Time(interval: {count: 5, in: minutes})
      }
      Trade {
        close: PriceInUSD(maximum: Transaction_Index)
      }
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      volume: sum(of: Trade_Side_Amount)
    }
  }
}

Variables

{
  "network": "base",
  "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "usdc": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "usdt": "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2",
  "weth": "0x4200000000000000000000000000000000000006",
  "eth": "0x",
  "time_ago": "2024-10-08T06:41:16Z"
}

Similar queries