Average-Price-of-a-Pair-Illustration
Streams DEX trades as they happen, where sell currency smart contract is 0xdAC1…1ec7 and buy currency smart contract is 0xc02a…6cc2: average of trade buy price.
What it returns
- average of trade buy price
Filters
- sell currency smart contract is 0xdAC1…1ec7
- buy currency smart contract is 0xc02a…6cc2
The subscription
subscription{
EVM {
DEXTrades(
where: {Trade: {Sell: {Currency: {SmartContract: {is: "0xdAC17F958D2ee523a2206206994597C13D831ec7"}}}, Buy: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}}}
) {
average(of: Trade_Buy_Price)
}
}
}
Similar queries
- subscription EVM · Ethereum · DEXTrades
- Stablecoin trades for etheruem · Ethereum · DEXTrades
- Realtime Uniswap V3 Trades · Ethereum · DEXTrades
- get swaps by pair address -eth -stream · Ethereum · DEXTrades
- Realtime Uniswap v1 Uniswap v2 Uniswap V3 Trades · Ethereum · DEXTrades