package global

const (
	//现货
	SPOT = "1"
	//合约
	FUT = "2"
	//现货-24h行情 {交易所类型code,交易对名称}
	TICKER_SPOT = "tc_spot:%s:%s"
	//合约-24h行情 {交易所类型code,交易对名称}
	TICKER_FUTURES = "tc_fut:%s:%s"
	//合约-资金费率
	FUNDING_INFO_FUTURES = "fi_fut"
	//合约-k线
	K_FUT = "k_fut"
	//现货-k线
	K_SPOT = "k_spot"
	//代币-配置
	COIN_DETAIL = "c_spot_detail"
	//代币-现货24h涨跌幅 {exchange}
	COIN_PRICE_CHANGE = "c_spot_priceChange:%s"
	//代币-现货热门排序
	COIN_HOT_SORT = "c_spot_hot_sort"
	//代币-现货新币排序
	COIN_NEW_SORT = "c_spot_new_sort"
	//代币-现货主流排序
	COIN_MAIN_SORT = "c_spot_main_sort"

	//代币-合约配置
	COIN_FUTURES_DETAIL = "c_fut_detail"
	//代币-合约24h涨跌幅
	COIN_FUTURES_PRICE_CHANGE = "c_fut_priceChange"
	//代币-合约热门排序
	COIN_FUTURES_HOT_SORT = "c_fut_hot_sort"
	//代币-合约新币排序
	COIN_FUTURES_NEW_SORT = "c_fut_new_sort"
	//代币-合约主流排序
	COIN_FUTURES_MAIN_SORT = "c_fut_main_sort"

	//U本位合约-24h涨跌幅
	UFUTURES_PRICE_CHANGE = "ufut_priceChange"
	//币本位合约-24h涨跌幅
	CFUTURES_PRICE_CHANGE = "cfut_priceChange"

	//用户订阅信息
	USER_SUBSCRIBE = "user_sub:%s" //{apikey}

	//币种配置
	RECHARGE_COIN = "recharge_coin"
)

const (
	//参数管理
	SYS_CONFIG = "sys_config"
	//字典数据
	DICT_DATA_PREFIX = "dic_list"
)

const (
	//api websocket 错误信息
	API_WEBSOCKET_ERR = "api_ws_err:%s"
)

const (
	//交易对-现货
	SYMBOL_SPOT = 1
	//交易对-合约
	SYMBOL_FUTURES = 2
)
