Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ChNewKline chan Klinetips
)
Functions ¶
func NewKdataHandler ¶
func NewKdataHandler(r *redis.Client, needPeriod []string) *kdataHandler
Types ¶
type Klinetips ¶
type Klinetips struct { Symbol string `json:"symbol"` Period string `json:"period"` OpenAt int64 `json:"open_at"` //开盘时间 Open string `json:"open"` //开盘价 High string `json:"high"` // 最高价 Low string `json:"low"` //最低价 Close string `json:"close"` //收盘价(当前K线未结束的即为最新价) Volume string `json:"volume"` //成交量 CloseAt int64 `json:"close_at"` // 收盘时间 Amount string `json:"amount"` //成交额 }
Click to show internal directories.
Click to hide internal directories.