top tokens by price change/ volume/ buys/ sells
Returns 100 DEX trades by token on BNB Chain, where DEX protocol name is fourmeme_v1 and side currency smart contract is 0x, sorted by buys 1 hr, highest first: currency name, currency symbol, smart contract, trade price, side currency name, side currency symbol, side smart contract and 3 more fields.
What it returns
- currency name
- currency symbol
- smart contract
- trade price
- side currency name
- side currency symbol
- side smart contract
- count
- sum of trade side amount in USD
- calculate
Filters
- DEX protocol name is fourmeme_v1
- side currency smart contract is 0x
The query
query MyQuery {
EVM(network: bsc dataset:combined) {
DEXTradeByTokens(
limit:{count:100}
orderBy:{descendingByField:"buys_1hr"}
where: {Block: {Time: {since_relative: {hours_ago: 24}}}, TransactionStatus: {Success: true}, Trade: {Dex: {ProtocolName: {is: "fourmeme_v1"}}, Side: { Currency: {SmartContract: {in: ["0x"]}}}}}
) {
Trade {
Currency {
Name
Symbol
SmartContract
}
price_24hr: Price(minimum: Block_Time)
price_1hr: Price(maximum: Block_Time if: {Block: {Time: {till_relative: {hours_ago: 1}}}} )
price_5min: Price(maximum: Block_Time if: {Block: {Time: {till_relative: {minutes_ago: 5}}}})
current: Price(maximum:Block_Time)
Side{
Currency{
Name
Symbol
SmartContract
}
}
}
buys_1hr: count(if:{Trade:{Side:{Type:{is:buy}}}, Block: {Time: {till_relative: {hours_ago: 1}}}})
buys_24hr: count(if:{Trade:{Side:{Type:{is:buy}}}})
sells_1hr: count(if:{Trade:{Side:{Type:{is:sell}}}, Block: {Time: {till_relative: {hours_ago: 1}}}})
sells_24hr: count(if:{Trade:{Side:{Type:{is:sell}}}})
volume_1hr:sum(of:Trade_Side_AmountInUSD if: {Block: {Time: {till_relative: {hours_ago: 1}}}})
volume_24hr:sum(of:Trade_Side_AmountInUSD)
change_24hr: calculate(
expression: "( $Trade_current - $Trade_price_24hr ) / $Trade_price_24hr * 100"
)
change_1hr: calculate(
expression: "( $Trade_current - $Trade_price_1hr ) / $Trade_price_1hr * 100"
)
change_5min: calculate(
expression: "( $Trade_current - $Trade_price_5min ) / $Trade_price_5min * 100"
)
}
}
}
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