@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.
32 lines (31 loc) • 1.18 kB
TypeScript
export declare class OHLCError extends Error {
readonly code: string;
constructor(message: string, code: string);
}
export declare class MarketDataError extends OHLCError {
readonly symbol?: string | undefined;
readonly timeframe?: string | undefined;
constructor(message: string, symbol?: string | undefined, timeframe?: string | undefined);
}
export declare class ChartRenderError extends OHLCError {
readonly chartId?: string | undefined;
constructor(message: string, chartId?: string | undefined);
}
export declare class ValidationError extends OHLCError {
readonly field?: string | undefined;
constructor(message: string, field?: string | undefined);
}
export declare class TerminalError extends OHLCError {
constructor(message: string);
}
export declare class ConfigurationError extends OHLCError {
readonly config?: string | undefined;
constructor(message: string, config?: string | undefined);
}
export declare enum ErrorType {
CONFIGURATION = "CONFIGURATION_ERROR",
CHART_RENDER = "CHART_RENDER_ERROR",
MARKET_DATA = "MARKET_DATA_ERROR",
TERMINAL = "TERMINAL_ERROR",
VALIDATION = "VALIDATION_ERROR"
}