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

# OnTokenBarsUpdatedResponse

> Payload emitted by onTokenBarsUpdated — multi-resolution OHLCV bars for a token.

### TypeScript shape

```ts theme={null}
interface OnTokenBarsUpdatedResponse {
  commitmentLevel: BarCommitmentLevel;
  pairAddress: string | null;
  networkId: number;
  pairId: string | null;
  timestamp: number;
  statsType: TokenPairStatisticsType;
  eventSortKey: string;
  aggregates: ResolutionBarData;
  quoteToken: QuoteToken | null;
  tokenAddress: string;
  tokenId: string;
}
```

<ResponseField name="commitmentLevel" type="BarCommitmentLevel!">`Processed` or `Confirmed`. See [BarCommitmentLevel](/api-reference/graphql/types/BarCommitmentLevel).</ResponseField>
<ResponseField name="networkId" type="Int!">Chain id.</ResponseField>
<ResponseField name="timestamp" type="Int!">Unix timestamp (seconds) when the bar update was produced.</ResponseField>
<ResponseField name="statsType" type="TokenPairStatisticsType!">`FILTERED` or `UNFILTERED`. See [TokenPairStatisticsType](/api-reference/graphql/types/TokenPairStatisticsType).</ResponseField>
<ResponseField name="eventSortKey" type="String!">Composite sort key (`blockNumber#transactionIndex#logIndex`, zero-padded).</ResponseField>
<ResponseField name="aggregates" type="ResolutionBarData!">Per-resolution bars. See [ResolutionBarData](/api-reference/graphql/types/ResolutionBarData).</ResponseField>
<ResponseField name="tokenAddress" type="String!">Token contract address.</ResponseField>
<ResponseField name="tokenId" type="String!">Token identifier (`tokenAddress:networkId`).</ResponseField>

<Warning>
  The following fields are deprecated — pairs are no longer used for pricing. They remain in the schema for backwards compatibility and may be removed in a future version.
</Warning>

<ResponseField name="pairAddress" type="String" deprecated>Deprecated — pairs are no longer used for pricing.</ResponseField>
<ResponseField name="pairId" type="String" deprecated>Deprecated — pairs are no longer used for pricing.</ResponseField>
<ResponseField name="quoteToken" type="QuoteToken" deprecated>Deprecated — pairs are no longer used for pricing. See [QuoteToken](/api-reference/graphql/types/QuoteToken).</ResponseField>
