UNPKG

@azteam/candlestick-chart

Version:

N/A

75 lines (69 loc) 1.34 kB
export const TIME_CHART = { _1_MIN: { name: '1min', period: 60, size: 1440, count24h: 1440, }, _5_MIN: { name: '5min', period: 300, size: 288, count24h: 288, }, _15_MIN: { name: '15min', period: 900, size: 96, count24h: 96, }, _30_MIN: { name: '30min', period: 1800, size: 96, count24h: 48, }, _60_MIN: { name: '60min', period: 3600, size: 96, count24h: 24, }, _4_HOUR: { name: '4hour', period: 14400, size: 96, count24h: 6, }, _1_DAY: { name: '1day', period: 86400, size: 96, count24h: 1, }, }; export const TREND = { LONG: 'LONG', SHORT: 'SHORT', SIDEWAY: 'SIDEWAY', }; export const CANDLE_COLOR = { GREEN: 'GREEN', RED: 'RED', }; export const BB_POSITION = { OUT_TOP: 'OUT_TOP', TOP: 'TOP', UPPER_MIDDLE: 'UPPER_MIDDLE', MIDDLE: 'MIDDLE', LOWER_MIDDLE: 'LOWER_MIDDLE', BOTTOM: 'BOTTOM', OUT_BOTTOM: 'OUT_BOTTOM', }; export const BB_DEVIATION = 20; export const CHART_SIZE = 100; export const TZ_OFFSET_MAP = { 'Asia/Ho_Chi_Minh': 25200, // UTC+7 'Asia/Singapore': 28800, // UTC+8 UTC: 0, };