Skip to main content
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

onTokenBarsUpdated
OnTokenBarsUpdatedResponse!
Bar update payload pushed on each swap on the token. See OnTokenBarsUpdatedResponse.

Arguments

tokenId
String
Token identifier in <tokenAddress>:<networkId> form. Required at runtime — omitting it returns BAD_USER_INPUT.
commitmentLevel
[BarCommitmentLevel!]
Allow-list of commitment levels to receive. Defaults to [Confirmed]. See BarCommitmentLevel.
networkId
Int
Network id hint (currently redundant — derived from tokenId).

Example