WMATIC subscription
Streams DEX trades on Polygon as they happen, where sell currency smart contract is 0x0d50…1270 and buy currency smart contract is 0xc213…8e8F: block time, buy amount, buy buyer, buy seller, buy price, buy currency name, buy currency symbol and 14 more fields.
What it returns
- block time
- buy amount
- buy buyer
- buy seller
- buy price
- buy currency name
- buy currency symbol
- buy smart contract
- buy order ID
- sell amount
- sell buyer
- sell seller
- sell price
- sell currency symbol
- sell smart contract
- sell currency name
- sell order ID
- protocol family
- protocol name
- smart contract
- protocol version
Filters
- sell currency smart contract is 0x0d50…1270
- buy currency smart contract is 0xc213…8e8F
The subscription
subscription {
EVM(network: matic) {
DEXTrades(
where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}}}, Buy: {Currency: {SmartContract: {is: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}}}}}
) {
Block {
Time
}
Trade {
Buy {
Amount
Buyer
Seller
Price_in_terms_of_sell_currency: Price
Currency {
Name
Symbol
SmartContract
}
OrderId
}
Sell {
Amount
Buyer
Seller
Price_in_terms_of_buy_currency: Price
Currency {
Symbol
SmartContract
Name
}
OrderId
}
Dex {
ProtocolFamily
ProtocolName
SmartContract
ProtocolVersion
}
}
}
}
}
Similar queries
- Real time trades for uniswap v4 magic · Polygon · DEXTrades
- polygon trade streaming · Polygon · DEXTrades
- Usd price in mempool in matic · Polygon · DEXTrades
- Latest USD Price of a Token on Matic · Polygon · DEXTrades
- Price of a AVAX in terms of WMATIC on matic · Polygon · DEXTrades