(point: OHLCDataPoint)
| 1 | import type { OHLCDataPoint, OHLCDataPointTuple } from '../config/types'; |
| 2 | |
| 3 | function isTupleOHLCDataPoint(point: OHLCDataPoint): point is OHLCDataPointTuple { |
| 4 | return Array.isArray(point); |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * Downsamples OHLC (candlestick) data to a target number of points using bucket aggregation. |