test_save

Streams 10 DEX trades by token on Polygon as they happen, where currency smart contract is 0x282d…a1a1, trade price asymmetry is below 0.5 and trade price in USD is above 0: block time, from and average of trade price in USD.

By Nadia · saved 31 May 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription ($network: evm_network, $currency: String) {
  EVM(network: $network ) {
    DEXTradeByTokens(
      where: {Trade: {PriceAsymmetry: {lt: 0.5}, PriceInUSD: {gt: 0}, Currency: {SmartContract: {is: $currency}}}}
      limit: {count: 10}
    ) {
      Block {
        Time
      }
      Transaction{
        From
      }
      average(of: Trade_PriceInUSD)
    }
  }
}

Variables

{
  "network": "matic",
  "currency": "0x282d8efce846a88b159800bd4130ad77443fa1a1"
}

Similar queries