Price of a AVAX in terms of WMATIC on matic

Streams DEX trades on Polygon as they happen, where sell currency smart contract is 0x2C89…286b and buy currency smart contract is 0x0d50…1270: block time, buy amount, buy buyer, buy seller, buy price, buy currency name, buy currency symbol and 14 more fields.

By Akshat · saved 11 April 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: matic) {
    DEXTrades(
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x2C89bbc92BD86F8075d1DEcc58C7F4E0107f286b"}}}, Buy: {Currency: {SmartContract: {is: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}}}}}
    ) {
      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