# DumbbellChartStreamSource

DumbbellChartStreamSource 타입 선언과 관련 타입입니다. 선택 필드는 ?로 표시됩니다.

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

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

## 타입 선언

```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>

## 관련 타입

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