Profitable wallets
{ "network": "bsc", "time_24h_ago": "2024-10-12T16:43:32Z" }
Returns 500 DEX trades by token on BNB Chain, where block time since 2024-10-12, sorted by net profit USD, highest first: buyer, sum of trade side amount in USD, count, unique of trade currency smart contract, unique of trade buyer and unique of trade seller.
What it returns
- buyer
- sum of trade side amount in USD
- count
- unique of trade currency smart contract
- unique of trade buyer
- unique of trade seller
Filters
- block time since 2024-10-12
The query
query ProfitableActiveWallets($network: evm_network, $time_24h_ago: DateTime) {
EVM(network: $network) {
DEXTradeByTokens(
orderBy: {descendingByField: "net_profit_usd"}
limit: {count: 500}
where: {
Block: {Time: {since: $time_24h_ago}}
TransactionStatus: {Success: true}
}
) {
Trade {
Buyer
}
buy_volume_usd: sum(
of: Trade_Side_AmountInUSD,
if: {Trade: {Side: {Type: {is: buy}}}}
selectWhere: {gt: "0"}
)
sell_volume_usd: sum(
of: Trade_Side_AmountInUSD,
if: {Trade: {Side: {Type: {is: sell}}}}
)
net_profit_usd: sum(
of: Trade_Side_AmountInUSD,
if: {Trade: {Side: {Type: {is: sell}}}}
)
buy_trades: count(
if: {Trade: {Side: {Type: {is: buy}}}}
selectWhere: {gt: "0"}
)
sell_trades: count(if: {Trade: {Side: {Type: {is: sell}}}})
total_trades: count(selectWhere: {lt: "100"})
unique_tokens_bought: uniq(
of: Trade_Currency_SmartContract
if: {Trade: {Side: {Type: {is: buy}}}}
)
unique_tokens_sold: uniq(
of: Trade_Currency_SmartContract
if: {Trade: {Side: {Type: {is: sell}}}}
)
total_unique_tokens: uniq(of: Trade_Currency_SmartContract)
total_volume_usd: sum(of: Trade_Side_AmountInUSD)
buyers: uniq(of: Trade_Buyer)
sellers: uniq(of: Trade_Seller)
}
}
}
Variables
{
"network": "bsc",
"time_24h_ago": "2024-10-12T16:43:32Z"
}
Similar queries
- bStocks 3am: QQQB 30-day DEX volume · BNB Chain · DEXTradeByTokens
- bStocks 3am: tokenized Tesla 30-day volume · BNB Chain · DEXTradeByTokens
- bsc token ohlcv · BNB Chain · DEXTradeByTokens
- optimized query to get pools data · Ethereum · DEXTradeByTokens
- KTI_primeiros_trades · BNB Chain · DEXTradeByTokens