Subscription for the Latest Trades of NFT Token
Streams the latest DEX trades on Ethereum as they happen, where buy currency smart contract is 0xBC4C…f13D, buy currency smart contract is not 0x and buy seller is not 0x: chain ID, block time, transaction hash, protocol family, protocol name, protocol version, smart contract and 14 more fields.
What it returns
- chain ID
- block time
- transaction hash
- protocol family
- protocol name
- protocol version
- smart contract
- buy currency symbol
- buy smart contract
- buy currency name
- buy price
- buy price in USD
- buy amount
- buy amount in USD
- buy buyer
- buy seller
- sell amount
- sell amount in USD
- sell currency symbol
- sell smart contract
- sell currency name
Filters
- buy currency smart contract is 0xBC4C…f13D
- buy currency smart contract is not 0x
- buy seller is not 0x
- sell currency smart contract is not 0x
The subscription
subscription ($network: evm_network, $token: String) {
EVM(network: $network) {
DEXTrades(
orderBy: {descending: Block_Number}
where: {Trade: {Buy: {Currency: {SmartContract: {is: $token, not: "0x"}}, Seller: {not: "0x"}}, Sell: {Currency: {SmartContract: {not: "0x"}}}}}
) {
ChainId
Block {
Time
}
Transaction {
Hash
}
Trade {
Dex {
ProtocolFamily
ProtocolName
ProtocolVersion
SmartContract
}
Buy {
Currency {
Symbol
SmartContract
Name
}
Price
PriceInUSD
Amount
AmountInUSD
Buyer
Seller
}
Sell {
Amount
AmountInUSD
Currency {
Symbol
SmartContract
Name
}
}
}
}
}
}
Variables
{
"network": "eth",
"token": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D"
}
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