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.
What it returns
- block time
- price in USD
- quantile of trade price in USD
- sum of trade side amount
Filters
- currency smart contract is 0x8335…2913
- side currency smart contract is 0x, 0x4200…0006 or 2 more
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
- base DexTradeByTokens · Base · DEXTradeByTokens
- Development Talk base query · Base · DEXTradeByTokens
- BASE ALL BUY · Base · DEXTradeByTokens
- new Base stream · Base · DEXTradeByTokens
- base all dextrades · Base · DEXTradeByTokens