Subscription Token Trade Pairs
Streams 10 DEX trades on Arbitrum as they happen, sorted by count, highest first: block date, block time, chain ID, unique of block date, count, sum of trade buy amount, sum of trade buy amount in USD and 9 more fields.
What it returns
- block date
- block time
- chain ID
- unique of block date
- count
- sum of trade buy amount
- sum of trade buy amount in USD
- sum of trade sell amount
- sum of trade sell amount in USD
- buy price
- buy currency symbol
- buy smart contract
- sell currency symbol
- sell smart contract
- median of trade buy price
- median of trade buy price in USD
The subscription
subscription ($network: evm_network, $limit: Int!, $offset: Int!) {
EVM(network: $network) {
DEXTrades(
limit: {count: $limit, offset: $offset}
orderBy: {descendingByField: "count"}
) {
Block {
Date(minimum: Block_Date)
Time
}
ChainId
uniq(of: Block_Date)
count
Buy_Amount: sum(of: Trade_Buy_Amount)
Buy_Amount_usd: sum(of: Trade_Buy_AmountInUSD)
Sell_Amount: sum(of: Trade_Sell_Amount)
Sell_Amount_usd: sum(of: Trade_Sell_AmountInUSD)
Trade {
Buy {
last_price: Price(maximum: Block_Number)
Currency {
Symbol
SmartContract
}
}
Sell {
Currency {
Symbol
SmartContract
}
}
}
median_price: median(of: Trade_Buy_Price)
median_price_usd: median(of: Trade_Buy_PriceInUSD)
}
}
}
Variables
{
"network": "arbitrum",
"limit": 10,
"offset": 0,
"from": "2023-07-24",
"till": "2023-07-24"
}
Similar queries
- arbitrum streaming · Arbitrum · DEXTrades
- arbitrum dex stream · Arbitrum · DEXTrades
- Subscription Token Trades · Arbitrum · DEXTrades
- Subscription pair last trades · Arbitrum · DEXTrades
- Realtime Uniswap v3 trades Arbitrum · Arbitrum · DEXTrades