Subscription pair last trades
Streams DEX trades on Arbitrum as they happen, where sell currency smart contract is 0xff97…5cc8 and buy currency smart contract is 0x82af…bab1: chain ID, block time, block number, transaction hash, sell buyer, sell price, sell price in USD and 16 more fields.
What it returns
- chain ID
- block time
- block number
- transaction hash
- sell buyer
- sell price
- sell price in USD
- sell amount
- sell amount in USD
- sell currency symbol
- sell currency name
- sell smart contract
- buy price
- buy price in USD
- buy amount
- buy amount in USD
- buy currency symbol
- buy currency name
- buy smart contract
- protocol name
- smart contract
- protocol family
- protocol version
Filters
- sell currency smart contract is 0xff97…5cc8
- buy currency smart contract is 0x82af…bab1
The subscription
subscription ($network: evm_network!, $mempool: Boolean, $baseCurrency: String!, $quoteCurrency: String!) {
EVM(network: $network, mempool: $mempool) {
DEXTrades(
where: {Trade: {Sell: {Currency: {SmartContract: {is: $baseCurrency}}}, Buy: {Currency: {SmartContract: {is: $quoteCurrency}}}}}
) {
ChainId
Block {
Time
Number
}
Transaction {
Hash
}
Trade {
Sell {
Buyer
Price
PriceInUSD
Amount
AmountInUSD
Currency {
Symbol
Name
SmartContract
}
}
Buy {
Price
PriceInUSD
Amount
AmountInUSD
Currency {
Symbol
Name
SmartContract
}
}
Dex {
ProtocolName
SmartContract
ProtocolFamily
ProtocolVersion
}
}
}
}
}
Variables
{
"network": "arbitrum",
"limit": 15,
"from": "2023-09-01",
"till": "2023-09-07",
"mempool": false,
"baseCurrency": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
"quoteCurrency": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1"
}
Similar queries
- arbitrum streaming · Arbitrum · DEXTrades
- arbitrum dex stream · Arbitrum · DEXTrades
- Subscription Token Trade Pairs · Arbitrum · DEXTrades
- Subscription Token Trades · Arbitrum · DEXTrades
- Realtime Uniswap v3 trades Arbitrum · Arbitrum · DEXTrades