Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mobula.io/llms.txt

Use this file to discover all available pages before exploring further.

Subscriptions use the WebSocket endpoint wss://api.mobula.io/graphql/subscriptions with the graphql-transport-ws protocol.

Returns

onDetailedTokenStatsUpdated
DetailedTokenStats!
Detailed token-level windowed stats pushed on every swap on the token. See DetailedTokenStats.

Arguments

tokenId
String!
required
Token identifier in <tokenAddress>:<networkId> form. Invalid inputs return BAD_USER_INPUT.

Example

subscription OnDetailedTokenStatsUpdated {
  onDetailedTokenStatsUpdated(tokenId: "So11111111111111111111111111111111111111112:1399811149") {
    tokenId
    tokenAddress
    networkId
    statsType
    stats_hour1 {
      duration
      start
      end
      statsUsd { volume { change currentValue previousValue } }
      statsNonCurrency { transactions { change currentValue previousValue } }
    }
  }
}