package enums

//k线周期
const (
	KLINE_1MIN = 1 + iota
	KLINE_3MIN
	KLINE_5MIN
	KLINE_15MIN
	KLINE_30MIN
	KLINE_1H
	KLINE_2H
	KLINE_4H
	KLINE_6H
	KLINE_8H
	KLINE_12H
	KLINE_1DAY
	KLINE_3DAY
	KLINE_1WEEK
	KLINE_1MONTH
	KLINE_1YEAR
)

var (
	ExchangeBinanceId = 2 //币安交易所id
	ExchangeHuoBiId   = 1 //火币交易所id

	//KlineTypeMap k类型对应整型数值
	KlineTypeMap = map[string]int{
		"1m":  KLINE_1MIN,
		"3m":  KLINE_3MIN,
		"5m":  KLINE_5MIN,
		"15m": KLINE_15MIN,
		"30m": KLINE_30MIN,
		"1h":  KLINE_1H,
		"2h":  KLINE_2H,
		"4h":  KLINE_4H,
		"6h":  KLINE_6H,
		"8h":  KLINE_8H,
		"12h": KLINE_12H,
		"1d":  KLINE_1DAY,
		"3d":  KLINE_3DAY,
		"1w":  KLINE_1WEEK,
		"1M":  KLINE_1MONTH,
	}

	//KlineTypeStringMap k类型对应字符串数值
	KlineTypeStringMap = map[int]string{
		KLINE_1MIN:   "1m",
		KLINE_3MIN:   "3m",
		KLINE_5MIN:   "5m",
		KLINE_15MIN:  "15m",
		KLINE_30MIN:  "30m",
		KLINE_1H:     "1h",
		KLINE_2H:     "2h",
		KLINE_4H:     "4h",
		KLINE_6H:     "6h",
		KLINE_8H:     "8h",
		KLINE_12H:    "12h",
		KLINE_1DAY:   "1d",
		KLINE_3DAY:   "3d",
		KLINE_1WEEK:  "1w",
		KLINE_1MONTH: "1M",
	}
)

//KLINE_PERIOD_1H
//KLINE_PERIOD_3H
