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.

By Xinjiang · saved 2 August 2024 · run 1 time · Bitquery API v2

What it returns

Filters

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