buy and sell volume
Returns DEX trades by token, where currency smart contract is 0xC02a…6Cc2: sum of trade amount in USD.
What it returns
- sum of trade amount in USD
Filters
- currency smart contract is 0xC02a…6Cc2
The query
query MyQuery {
EVM {
DEXTradeByTokens(
where: {Trade: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}
) {
buyVolume:sum(of: Trade_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
sellVolume:sum(of: Trade_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
}
}
}
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