sample multiple subscriptions but not working?
Only one of the two is ouputted, but the other is empty?
Streams 5 DEX trades by token on Ethereum as they happen, where block time since 2025-02-05, sorted by price change percent: currency symbol, currency name, sum of trade price and sum of trade amount in USD.
What it returns
- currency symbol
- currency name
- sum of trade price
- sum of trade amount in USD
Filters
- block time since 2025-02-05
The subscription
subscription CombinedSubscriptions {
topToken: EVM(network: eth, mempool: true) {
# Top Gainers
topGainers: DEXTradeByTokens(
orderBy: { descendingByField: "priceChangePercent" }
limit: { count: 5 }
where: { Block: { Time: { since: "2025-02-05T00:00:00Z" } } }
) {
Trade {
Currency {
Symbol
Name
}
}
priceChangePercent: sum(of: Trade_Price)
volume: sum(of: Trade_AmountInUSD)
}
# Top Losers
topLosers: DEXTradeByTokens(
orderBy: { ascendingByField: "priceChangePercent" }
limit: { count: 5 }
where: {
Block: { Time: { since: "2025-02-05T00:00:00Z" } },
# Trade: { priceChangePercent: { lt: 0 } }
}
) {
Trade {
Currency {
Symbol
Name
}
}
priceChangePercent: sum(of: Trade_Price)
volume: sum(of: Trade_AmountInUSD)
}
}
}
Variables
{
"token": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"minamount": "10000",
"mempool": true,
"network": "eth"
}
Similar queries
- Stablecoin Depeg tracking Stream for evm · Ethereum · DEXTradeByTokens
- realtime trades EVM -subscription · Ethereum · DEXTradeByTokens
- EVM chain currency details stream · Ethereum · DEXTradeByTokens
- Real time price stream for tokens on Ethereum · Ethereum · DEXTradeByTokens
- Top Bought/Sold/Trending/Volatility Tokens on Eth · Ethereum · DEXTradeByTokens