# DumbbellChartStreamSource

The DumbbellChartStreamSource type declaration and related types. Optional fields are marked with ?.

Canonical: https://chart.syidax.com/docs/types/DumbbellChartStreamSource/

<a id="declaration"></a>

## Type declaration

```typescript
export interface DumbbellChartStreamSource {
  push(datum: DumbbellPairDatum): void;
  pushBatch(data: ReadonlyArray<DumbbellPairDatum>): void;
  shift(count: number): void;
  replace(data: ReadonlyArray<DumbbellPairDatum>): void;
  snapshot(window?: number): DumbbellPairDatum[];
  latest(): DumbbellPairDatum | undefined;
  subscribe(listener: (event: DumbbellChartStreamEvent) => void): () => void;
  readonly length: number;
}
```

<a id="related"></a>

## Related types

- [DumbbellPairDatum](https://chart.syidax.com/docs/types/DumbbellPairDatum.md)
- [DumbbellChartStreamEvent](https://chart.syidax.com/docs/types/DumbbellChartStreamEvent.md)
