BSC pair list
Returns 100 DEX trades by token on BNB Chain, where block time after 2024-09-30, sorted by USD, highest first: currency symbol, currency name, smart contract, protocol name, side currency symbol, side currency name, side smart contract and 8 more fields.
What it returns
- currency symbol
- currency name
- smart contract
- protocol name
- side currency symbol
- side currency name
- side smart contract
- side protocol name
- price in USD
- unique of trade DEX owner address
- sum of trade side amount
- sum of trade side amount in USD
- unique of trade seller
- unique of trade buyer
- count
Filters
- block time after 2024-09-30
The query
query pairs($min_count: String, $network: evm_network, $time_10min_ago: DateTime, $time_1h_ago: DateTime, $time_3h_ago: DateTime, $wbnb: String!, $bnb: String!, $usdt: String!, $usdc: String!) {
EVM(network: $network) {
DEXTradeByTokens(
where: {Block: {Time: {after: $time_3h_ago}}, any: [
{Trade: {Side: {Currency: {SmartContract: {is: $usdt}}}}},
{Trade: {Side: {Currency: {SmartContract: {is: $usdc}}}, Currency: {SmartContract: {notIn: [$usdt]}}}},
{Trade: {Side: {Currency: {SmartContract: {is: $wbnb}}}, Currency: {SmartContract: {notIn: [$usdc, $usdt]}}}},
{Trade: {Side: {Currency: {SmartContract: {is: $bnb}}}, Currency: {SmartContract: {notIn: [$usdc, $usdt]}}}},
{Trade: {Side: {Currency: {SmartContract: {notIn: [$usdt, $wbnb]}}}, Currency: {SmartContract: {notIn: [$usdt, $wbnb, $bnb]}}}}]}
orderBy: {descendingByField: "usd"}
limit: {count: 100}
) {
Trade {
Currency {
Symbol
Name
SmartContract
ProtocolName
}
Side {
Currency {
Symbol
Name
SmartContract
ProtocolName
}
}
price_last: PriceInUSD(maximum: Block_Number)
price_10min_ago: PriceInUSD(
maximum: Block_Number
if: {Block: {Time: {before: $time_10min_ago}}}
)
price_1h_ago: PriceInUSD(
maximum: Block_Number
if: {Block: {Time: {before: $time_1h_ago}}}
)
price_3h_ago: PriceInUSD(minimum: Block_Number)
}
dexes: uniq(of: Trade_Dex_OwnerAddress)
amount: sum(of: Trade_Side_Amount)
usd: sum(of: Trade_Side_AmountInUSD)
sellers: uniq(of: Trade_Seller)
buyers: uniq(of: Trade_Buyer)
count(selectWhere: {ge: $min_count})
}
}
}
Variables
{
"network": "bsc",
"time_10min_ago": "2024-09-30T05:06:28Z",
"time_1h_ago": "2024-09-30T04:16:28Z",
"time_3h_ago": "2024-09-30T02:16:28Z",
"usdt": "0x55d398326f99059ff775485246999027b3197955",
"usdc": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
"wbnb": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"bnb": "0x",
"min_count": "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