# CandlestickStreamSource

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

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

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

## 타입 선언

```typescript
export interface CandlestickStreamSource {
  push(bar: CandlestickBarInput): void;
  pushBatch(bars: ReadonlyArray<CandlestickBarInput>): void;
  shift(count: number): void;
  replace(bars: ReadonlyArray<CandlestickBarInput>): void;
  snapshot(): CandlestickBar[];
  latest(): CandlestickBar | undefined;
  subscribe(listener: (event: CandlestickStreamEvent) => void): () => void;
  readonly length: number;
  readonly capacity: number;
  readonly dropped: number;
}
```

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

## 관련 타입

- [CandlestickBarInput](https://chart.syidax.com/ko/docs/types/CandlestickBarInput.md)
- [CandlestickBar](https://chart.syidax.com/ko/docs/types/CandlestickBar.md)
- [CandlestickStreamEvent](https://chart.syidax.com/ko/docs/types/CandlestickStreamEvent.md)
