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

# OnBarsUpdatedResponse

> Payload emitted by onBarsUpdated — multi-resolution OHLCV bars for a pair.

### TypeScript shape

```ts theme={null}
interface OnBarsUpdatedResponse {
  pairAddress: string;
  networkId: number;
  pairId: string;
  timestamp: number;
  statsType: TokenPairStatisticsType;
  eventSortKey: string;
  commitmentLevel: BarCommitmentLevel;
  aggregates: ResolutionBarData;
  quoteToken: QuoteToken | null;
  quoteTokenAddress: 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="pairAddress" type="String!">Pair contract address.</ResponseField>
<ResponseField name="pairId" type="String!">Pair identifier (`pairAddress:networkId`).</ResponseField>
<ResponseField name="quoteToken" type="QuoteToken">Which side is the quote token. See [QuoteToken](/api-reference/graphql/types/QuoteToken).</ResponseField>
<ResponseField name="quoteTokenAddress" type="String!">Address of the quote-side token.</ResponseField>
