@neabyte/chart-to-image
Version:
Convert trading charts to images using Node.js canvas with advanced features: 6 chart types, VWAP/EMA/SMA indicators, custom colors, themes, hide elements, scaling, and PNG/JPEG export formats.
12 lines (11 loc) • 451 B
TypeScript
import type { ChartData, ExchangeConfig } from '../types/types.js';
export declare class DataProvider {
private exchange;
private config;
constructor(config: ExchangeConfig);
private createExchange;
fetchOHLCV(symbol: string, timeframe: string, limit?: number): Promise<ChartData[]>;
getExchangeInfo(): Record<string, unknown>;
isSymbolSupported(symbol: string): Promise<boolean>;
getSupportedTimeframes(): string[];
}