<!-- Public documentation export; not library implementation source. -->
# ChartDatafeedState

[Integration guide](https://docs.lumencharts.com/charting-library/reference/compatibility) · [Reference index](https://docs.lumencharts.com/charting-library/api/)

Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.

Realtime connection state of a chart's datafeed, reported by [IChartWidgetApi.datafeedStatus](https://docs.lumencharts.com/charting-library/api/IChartWidgetApi#datafeedstatus).
`loading-history` also covers the wait for a promise-returning `subscribeBars` to confirm (bounded by
a deadline); `reconnecting` means history stays on screen while the stream is resubscribed with backoff.

```ts
export type ChartDatafeedState = "idle" | "resolving" | "loading-history" | "live" | "reconnecting" | "retrying" | "error" | "disposed";
```

---
Documentation page: https://docs.lumencharts.com/charting-library/api/ChartDatafeedState
