Subscriptions use
wss://graphql.mobula.io/graphql with the graphql-transport-ws protocol. wss://graphql.mobula.io/graphql/subscriptions is also supported for backwards compatibility.Returns
Arguments
List of tokens to subscribe to. See OnPricesUpdatedInput.
When
true, subscribe to liquidity-weighted token prices aggregated across all of the token’s pools instead of pair-derived prices. Not supported when any input item provides sourcePairAddress.Behavior
- One subscription, many tokens. Events from different tokens in the batch are interleaved.
- Each matching swap produces one push (per token).
- The
useWeightedPricesflag applies uniformly to all tokens in the batch.