@devexperts/dxcharts-lite
Version:
20 lines (19 loc) • 971 B
TypeScript
/*
* Copyright (C) 2019 - 2026 Devexperts Solutions IE Limited
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { Candle } from '../model/candle.model';
import { DataSeriesPoint } from '../model/data-series.model';
import { BinarySearchResult } from './array.utils';
export declare const getDaysOnlyTimestampFn: (isDaysPeriod: boolean) => (timestamp: number) => number;
export declare const searchCandleIndex: (rawTimestamp: number, options: {
extrapolate?: boolean;
isDaysPeriod?: boolean;
} | undefined, candles: DataSeriesPoint[], periodMs?: number) => BinarySearchResult;
/**
* checks if the first or the last candle or both have implied volatility data provided
* @param candles
* @returns {boolean}
*/
export declare const hasImpVolatilityDataProvided: (candles: Array<Candle>) => boolean;