subscription k-line for ETH pair

Streams DEX trades by token on Ethereum as they happen: block time, price in USD, smart contract, side smart contract, quantile of trade price in USD and sum of trade side amount in USD.

By Divyasshree · saved 19 December 2024 · run 2 times · Bitquery API v2

What it returns

The subscription

subscription tradingView {
  EVM(network: eth) {
    DEXTradeByTokens(where: {TransactionStatus: {Success: true}}) {
      Block {
        Time
      }
      Trade {
        close: PriceInUSD(maximum: Transaction_Index)
        Currency {
          SmartContract
        }
        Side {
          Currency {
            SmartContract
          }
        }
      }
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      volume: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Similar queries