dfcf

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

东方财富

Documentation

Index

Constants

View Source
const (
	EastmoneyGdfxHoldingAnalysePageSize = 500
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DfcfHistory

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

func GetHistory

func GetHistory(fullCode string, datalen int) ([]DfcfHistory, error)

GetHistory sina获取历史数据的唯一方法

type EastmoneyApi

type EastmoneyApi struct{}

func (*EastmoneyApi) Name

func (this *EastmoneyApi) Name() string

type HoldingAnalyse added in v1.1.6

type HoldingAnalyse struct {
	SECUCODE           string  `json:"SECUCODE"`           // "股票代码",
	SECURITY_NAME      string  `json:"SECURITY_NAME_ABBR"` // "股票简称",
	END_DATE           string  `json:"END_DATE"`           // "报告期",
	HOLDER_TYPE        string  `json:"HOLDER_TYPE"`        // "股东类型",
	HOLDER_NAME        string  `json:"HOLDER_NAME"`        // "股东名称",
	HOLD_NUM           int     `json:"HOLD_NUM"`           // "期末持股-数量",
	FREE_HOLDNUM_RATIO float64 `json:"FREE_HOLDNUM_RATIO"` // "-",
	HOLD_NUM_CHANGE    string  `json:"HOLD_NUM_CHANGE"`    // "期末持股-持股变动",
	CHANGE_RATIO       float64 `json:"CHANGE_RATIO"`       // "-",
	HOLDER_STATE       string  `json:"HOLDER_STATE"`       // "-",
	UPDATE_DATE        string  `json:"UPDATE_DATE"`        // "公告日",

}

func FreeHoldingAnalyse added in v1.1.6

func FreeHoldingAnalyse(pageNumber ...int) ([]HoldingAnalyse, int, error)

FreeHoldingAnalyse 东方财富网-数据中心-股东分析-股东持股明细-十大流通股东

https://data.eastmoney.com/gdfx/HoldingAnalyse.html

func FreeHoldingDetail added in v1.1.6

func FreeHoldingDetail() []HoldingAnalyse

FreeHoldingDetail 拉取近期的

type KLine

type KLine struct {
	Date   string  `json:"date" array:"0" name:"日期" dataframe:"date,string"`
	Open   float64 `json:"open" array:"1" name:"开盘价" dataframe:"open,float64"`
	Close  float64 `json:"close" array:"2" name:"收盘价" dataframe:"close,float64"`
	High   float64 `json:"high" array:"3" name:"最高价" dataframe:"high,float64"`
	Low    float64 `json:"low" array:"4" name:"最低价" dataframe:"low,float64"`
	Volume int64   `json:"volume" array:"5" name:"成交量" dataframe:"volume,int64"`
	Amount float64 `json:"amount" array:"6" name:"成交金额" dataframe:"amount,float64"`
}

func A

func A(code string) ([]KLine, error)

A 下载A股数据

func (KLine) Init

func (k KLine) Init(_writer *csv.Writer) error

Init 初始化

func (KLine) WriteCSV

func (k KLine) WriteCSV(_writer *csv.Writer) error

WriteCSV 写入

Jump to

Keyboard shortcuts

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