tencent

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pair

type Pair struct {
	Name  string
	Value string
}

type Query

type Query struct {
	Key   string
	Pairs [49]*Pair
}

type TencentDataApi

type TencentDataApi struct {
}

TencentDataApi 腾讯数据

func (*TencentDataApi) CompleteKLine

func (this *TencentDataApi) CompleteKLine(code string) ([]stock.DayKLine, error)

CompleteKLine 补全K线数据

func (*TencentDataApi) DailyByDays

func (this *TencentDataApi) DailyByDays(code string, days int) ([]stock.DayKLine, error)

func (*TencentDataApi) DailyFromDate

func (this *TencentDataApi) DailyFromDate(code string, startTime time.Time) ([]stock.DayKLine, time.Time, error)

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"`
}

type TencentStock

type TencentStock struct {
}

func (*TencentStock) RealTime

func (ts *TencentStock) RealTime(code string) (*stock.RealTime, error)

func (*TencentStock) RealTime0

func (ts *TencentStock) RealTime0(code string) (*stock.RealTime, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL