Latest USD Price of a Token on Matic

Streams DEX trades on Polygon as they happen, where buy currency smart contract is 0xc213…8e8f: block number, block time, from, to, transaction hash, buy amount, buy buyer and 14 more fields.

By Divyasshree · saved 22 April 2024 · run 6 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: matic) {
    buyside: DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f"}}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
          PriceInUSD
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
        PriceAsymmetry(selectWhere: {lt: 1})
      }
    }
  }
}

Similar queries