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 889 B
export const CONSTANTS={MARGIN_TOP:3,MARGIN_RIGHT:2,CHAR_PRECISION:4,DEC_PRECISION:2,WIDTH:9,HEIGHT:2,Y_AXIS_SPACING:4,PRECISION:2,PRECISION_SMALL:4,UNICODE_BODY:"┃",UNICODE_BOTTOM:"╿",UNICODE_HALF_BODY_BOTTOM:"╻",UNICODE_HALF_BODY_TOP:"╹",UNICODE_FILL:"┃",UNICODE_TOP:"╽",UNICODE_VOID:" ",UNICODE_WICK:"│",UNICODE_WICK_LOWER:"╵",UNICODE_WICK_UPPER:"╷",UNICODE_Y_AXIS:"│",UNICODE_Y_AXIS_LEFT:"┤",UNICODE_Y_AXIS_RIGHT:"├",MIN_DIFF_THRESHOLD:.25,MAX_DIFF_THRESHOLD:.75,Y_AXIS_ON_THE_RIGHT:!1,Y_AXIS_ROUND_DIR:"down",Y_AXIS_ROUND_MULTIPLIER:0};export const LABELS={average:"Avg.",currency:"",highest:"Highest",lowest:"Lowest",price:"Price",variation:"Var.",volume:"Cum. Vol."};export const COLORS={blue:"",bold:"",cyan:"",gray:"",grey:"",green:"",magenta:"",red:"",white:"",yellow:""};export const RESET_COLOR="";