Tron top trades aggregated
Returns 1000 DEX trades on Tron, sorted by count, highest first: count, sum of trade buy amount, sum of trade sell amount, buy buyer and sell seller.
What it returns
- count
- sum of trade buy amount
- sum of trade sell amount
- buy buyer
- sell seller
The query
query TronTopTradersAggregated($token: String!) {
Tron {
DEXTrades(
orderBy: {descendingByField: "count"}
limit: {count: 1000}
where: {any: [{Trade: {Buy: {Currency: {SmartContract: {is: $token}}}}}, {Trade: {Sell: {Currency: {SmartContract: {is: $token}}}}}], Transaction: {Result: {Success: true}}}
) {
count
buyAmount: sum(
of: Trade_Buy_Amount
if: {Trade: {Buy: {Currency: {Native: false}}}}
)
sellAmount: sum(
of: Trade_Sell_Amount
if: {Trade: {Buy: {Currency: {Native: true}}}}
)
Trade {
Buy {
Buyer
}
Sell {
Seller
}
}
}
}
}
Variables
{
"token": "TRbQEffHP6kMAhdvFbLumhCjpv59ezpUWC"
}
Similar queries
- Tron DEXTrades · Tron · DEXTrades
- tron_dextrade_finak · Tron · DEXTrades
- latest sun pump trades · Tron · DEXTrades
- latest tron dextrades · Tron · DEXTrades
- tron_dextrades · Tron · DEXTrades