UNPKG

@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.

1 lines 1.06 kB
export class OHLCError extends Error{code;constructor(r,o){super(r),this.code=o,this.name="OHLCError"}}export class MarketDataError extends OHLCError{symbol;timeframe;constructor(r,o,t){super(r,"MARKET_DATA_ERROR"),this.symbol=o,this.timeframe=t,this.name="MarketDataError"}}export class ChartRenderError extends OHLCError{chartId;constructor(r,o){super(r,"CHART_RENDER_ERROR"),this.chartId=o,this.name="ChartRenderError"}}export class ValidationError extends OHLCError{field;constructor(r,o){super(r,"VALIDATION_ERROR"),this.field=o,this.name="ValidationError"}}export class TerminalError extends OHLCError{constructor(r){super(r,"TERMINAL_ERROR"),this.name="TerminalError"}}export class ConfigurationError extends OHLCError{config;constructor(r,o){super(r,"CONFIGURATION_ERROR"),this.config=o,this.name="ConfigurationError"}}export var ErrorType;!function(r){r.CONFIGURATION="CONFIGURATION_ERROR",r.CHART_RENDER="CHART_RENDER_ERROR",r.MARKET_DATA="MARKET_DATA_ERROR",r.TERMINAL="TERMINAL_ERROR",r.VALIDATION="VALIDATION_ERROR"}(ErrorType||(ErrorType={}));