sample multiple subscriptions but not working?

Only one of the two is ouputted, but the other is empty?

Streams 5 DEX trades by token on Ethereum as they happen, where block time since 2025-02-05, sorted by price change percent: currency symbol, currency name, sum of trade price and sum of trade amount in USD.

By SCheung · saved 7 February 2025 · Bitquery API v2

What it returns

Filters

The subscription

subscription CombinedSubscriptions {
  topToken: EVM(network: eth, mempool: true) {
    # Top Gainers
    topGainers: DEXTradeByTokens(
      orderBy: { descendingByField: "priceChangePercent" }
      limit: { count: 5 }
      where: { Block: { Time: { since: "2025-02-05T00:00:00Z" } } }
    ) {
      Trade {
        Currency {
          Symbol
          Name
        }
      }
      priceChangePercent: sum(of: Trade_Price)
      volume: sum(of: Trade_AmountInUSD)
    }

    # Top Losers
    topLosers: DEXTradeByTokens(
      orderBy: { ascendingByField: "priceChangePercent" }
      limit: { count: 5 }
      where: {
        Block: { Time: { since: "2025-02-05T00:00:00Z" } },
        # Trade: { priceChangePercent: { lt: 0 } }
      }
    ) {
      Trade {
        Currency {
          Symbol
          Name
        }
      }
      priceChangePercent: sum(of: Trade_Price)
      volume: sum(of: Trade_AmountInUSD)
    }
  }
}

Variables

{
  "token": "0xdac17f958d2ee523a2206206994597c13d831ec7",
  "minamount": "10000",
  "mempool": true,
  "network": "eth"
}

Similar queries