@neabyte/candlestick-cli
Version:
Beautiful terminal candlestick charts with real-time trading data. Create stunning ASCII art charts directly in your terminal with support for live market data, custom colors, and professional trading visualization.
12 lines (11 loc) • 471 B
TypeScript
import { ChartData } from '../chart/chart-data.js';
import type { Candle, ChartHighlights } from '../types/candlestick.js';
export declare class YAxis {
chartData: ChartData;
constructor(chartData: ChartData);
priceToHeights(candle: Candle): [number, number, number, number];
renderLine(y: number, highlights?: ChartHighlights): string;
private renderPrice;
renderEmpty(y?: number, highlights?: ChartHighlights): string;
private renderTick;
}