Streaming Test
Streams the latest 50 DEX trades by token on BNB Chain as they happen, where side currency smart contract is 0x8ac7…580d, 0x55d3…7955 or 2 more and currency smart contract is 0x6d5a…6714: quantile of trade price in USD, block time, transaction hash, smart contract, protocol family, protocol name, amount in USD and 12 more fields.
What it returns
- quantile of trade price in USD
- block time
- transaction hash
- smart contract
- protocol family
- protocol name
- amount in USD
- buyer
- seller
- side type
- side buyer
- side seller
- price in USD
- trade amount
- side currency symbol
- side smart contract
- side currency name
- side amount in USD
- side amount
Filters
- side currency smart contract is 0x8ac7…580d, 0x55d3…7955 or 2 more
- currency smart contract is 0x6d5a…6714
The subscription
subscription LatestTrades($network: evm_network, $token: String, $usdc: String!, $usdt: String!, $wbnb: String!, $bnb: String!) {
EVM(network: $network) {
DEXTradeByTokens(
orderBy: {descending: Block_Time}
limit: {count: 50}
where: {TransactionStatus: {Success: true}, Trade: {Side: {Currency: {SmartContract: {in: [$usdc, $usdt, $wbnb, $bnb]}}}, Currency: {SmartContract: {is: $token}}, Success: true}}
) {
min: quantile(of: Trade_PriceInUSD, level: 0.05)
max: quantile(of: Trade_PriceInUSD, level: 0.95)
Block {
Time
}
Transaction {
Hash
}
Trade {
Dex {
SmartContract
ProtocolFamily
ProtocolName
}
AmountInUSD
Buyer
Seller
Side {
Type
Buyer
Seller
}
PriceInUSD
close: PriceInUSD
Amount
Side {
Currency {
Symbol
SmartContract
Name
}
AmountInUSD
Amount
}
}
}
}
}
Variables
{
"network": "bsc",
"token": "0x6d5ad1592ed9d6d1df9b93c793ab759573ed6714",
"usdt": "0x55d398326f99059ff775485246999027b3197955",
"usdc": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
"wbnb": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"bnb": "0x",
"dataset": "realtime",
"time_ago": "2025-03-08T18:02:26Z",
"interval": 300
}
Similar queries
- USD1 trades on fourmeme · BNB Chain · DEXTradeByTokens
- BSC trades · BNB Chain · DEXTradeByTokens
- monitor mempool trades bsc · BNB Chain · DEXTradeByTokens
- Tokens on BSC network · BNB Chain · DEXTradeByTokens
- token price stream · BNB Chain · DEXTradeByTokens