balance of all liquidity pools for a given token
Returns DEX trades by token, where currency smart contract is 0x0f7d…ccc8: count, currency name, sum of balance update amount, smart contract, protocol family and protocol name.
What it returns
- count
- currency name
- sum of balance update amount
- smart contract
- protocol family
- protocol name
Filters
- currency smart contract is 0x0f7d…ccc8
The query
{
EVM(dataset: combined) {
DEXTradeByTokens(
where: {Trade: {Currency: {SmartContract: {is: "0x0f7dc5d02cc1e1f5ee47854d534d332a1081ccc8"}}}}
) {
count
joinBalanceUpdates(join: left, BalanceUpdate_Address: Trade_Dex_SmartContract) {
Currency {
Name
}
balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
}
Trade {
Dex {
SmartContract
ProtocolFamily
ProtocolName
}
}
}
}
}
Similar queries
- CRV hourly OHLC on Curve - Ethereum · Ethereum · DEXTradeByTokens
- Top Metric liquidity pools by 24h volume on Ethereum · Ethereum · DEXTradeByTokens
- ATH of eth token · Ethereum · DEXTradeByTokens
- historical price and historical volume · Ethereum · DEXTradeByTokens
- topTraders EVM · Ethereum · DEXTradeByTokens