gbbq

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ZipURL = "http://www.tdx.com.cn/products/data/data/dbf/gbbq.zip"

Variables

View Source
var HexKeys = "" /* 12527-byte string literal not displayed */

Functions

func Download

func Download(dir string) (string, error)

Types

type Equities added in v0.0.58

type Equities []*Equity

func (Equities) Map added in v0.0.58

func (this Equities) Map() map[string]Equities

type Equity added in v0.0.58

type Equity struct {
	Category int       //2, 3, 5, 7, 8, 9, 10
	Code     string    //600000
	Date     time.Time //取最新
	Float    float64   //流通股本
	Total    float64   //总股本
}

func (*Equity) TableName added in v0.0.58

func (this *Equity) TableName() string

func (*Equity) Turnover added in v0.0.58

func (this *Equity) Turnover(volume float64) float64

Turnover 换手率

type GBBQ added in v0.0.58

type GBBQ struct {
	Category int       //2, 3, 5, 7, 8, 9, 10
	Code     string    //600000
	Date     time.Time //取最新
	C1       float64   //
	C2       float64   //
	C3       float64   //流通股本
	C4       float64   //总股本
}

type GBBQs added in v0.0.58

type GBBQs []*GBBQ

func Decode

func Decode(content []byte) (GBBQs, error)

func DownloadAndDecode

func DownloadAndDecode(dir string) (GBBQs, error)

func (GBBQs) GetStocks added in v0.0.58

func (this GBBQs) GetStocks() map[string]Equities

Jump to

Keyboard shortcuts

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