> ## 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.

# onDetailedTokenStatsUpdated

> Live-streamed bucketed stats for a token across 5 windows (min5, hour1, hour4, hour12, day1).

<Note>
  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.
</Note>

### Returns

<ResponseField name="onDetailedTokenStatsUpdated" type="DetailedTokenStats!">
  Detailed token-level windowed stats pushed on every swap on the token. See [DetailedTokenStats](/api-reference/graphql/types/DetailedTokenStats).
</ResponseField>

### Arguments

<ResponseField name="tokenId" type="String!" required>
  Token identifier in `<tokenAddress>:<networkId>` form. Invalid inputs return `BAD_USER_INPUT`.
</ResponseField>

### Example

```graphql theme={null}
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 } }
    }
  }
}
```
