Get realtime price of WETH in USD on matic

Streams DEX trades by token on Polygon as they happen, where currency smart contract is 0x7ceB…f619: transaction hash, buyer, amount in USD, trade amount, trade price, price in USD, seller and 12 more fields.

By Akshat · saved 24 April 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: matic) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}}}}
    ) {
      Transaction {
        Hash
      }
      Trade {
        Buyer
        AmountInUSD
        Amount
        Price
        PriceInUSD
        Seller
        Currency {
          Name
          Symbol
          SmartContract
        }
        Dex {
          ProtocolFamily
          SmartContract
          ProtocolName
        }
        Side {
          Amount
          AmountInUSD
          Buyer
          Seller
          Currency {
            Name
            SmartContract
            Symbol
          }
        }
      }
    }
  }
}

Similar queries