Documentation
¶
Index ¶
- type Pair
- type Query
- type TencentDataApi
- func (this *TencentDataApi) CompleteKLine(code string) ([]stock.DayKLine, error)
- func (this *TencentDataApi) DailyByDays(code string, days int) ([]stock.DayKLine, error)
- func (this *TencentDataApi) DailyFromDate(code string, startTime time.Time) ([]stock.DayKLine, time.Time, error)
- func (this *TencentDataApi) Name() string
- type TencentHistory
- type TencentStock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TencentDataApi ¶
type TencentDataApi struct {
}
TencentDataApi 腾讯数据
func (*TencentDataApi) CompleteKLine ¶
func (this *TencentDataApi) CompleteKLine(code string) ([]stock.DayKLine, error)
CompleteKLine 补全K线数据
func (*TencentDataApi) DailyByDays ¶
func (*TencentDataApi) DailyFromDate ¶
func (*TencentDataApi) Name ¶
func (this *TencentDataApi) Name() string
type TencentHistory ¶
type TencentHistory struct {
// date 时间
Date string `json:"date" array:"0"`
// open 开盘价
Open float64 `json:"open" array:"1"`
// high 最高价
High float64 `json:"high" array:"3"`
// low 最低价
Low float64 `json:"low" array:"4"`
// close 收盘价
Close float64 `json:"close" array:"2"`
// volume 成交量, 单位股, 除以100为手
Volume int64 `json:"volume" array:"5"`
}
Click to show internal directories.
Click to hide internal directories.