Documentation ¶
Index ¶
Constants ¶
View Source
const (
EastmoneyGdfxHoldingAnalysePageSize = 500
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CirculatingShareholder ¶ added in v1.3.27
type CirculatingShareholder struct {}
CirculatingShareholder Top10CirculatingShareholders
func FreeHoldingAnalyse ¶ added in v1.1.6
func FreeHoldingAnalyse(pageNumber ...int) ([]CirculatingShareholder, int, error)
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 FinanceReport ¶ added in v1.5.19
type FinanceReport struct { SecurityCode string `json:"CODE"` //证券代码 SECURITYCODE string `json:"SECURITY_CODE"` //证券代码 SECURITYNAMEABBR string `json:"SECURITY_NAME_ABBR"` //证券名称 TRADEMARKETCODE string `json:"TRADE_MARKET_CODE"` TRADEMARKET string `json:"TRADE_MARKET"` //市场 SECURITYTYPECODE string `json:"SECURITY_TYPE_CODE"` SECURITYTYPE string `json:"SECURITY_TYPE"` UPDATEDATE string `json:"UPDATE_DATE"` //更新日期 REPORTDATE string `json:"REPORTDATE"` //报告日期 BASICEPS float64 `json:"BASIC_EPS"` //每股收益 DEDUCTBASICEPS float64 `json:"DEDUCT_BASIC_EPS"` // TOTALOPERATEINCOME float64 `json:"TOTAL_OPERATE_INCOME"` //营业总收入 PARENTNETPROFIT float64 `json:"PARENT_NETPROFIT"` //净利润 WEIGHTAVGROE float64 `json:"WEIGHTAVG_ROE"` //净资产收益率 YSTZ float64 `json:"YSTZ"` //营业总收入同比增长 SJLTZ float64 `json:"SJLTZ"` //净利润同比增长 BPS float64 `json:"BPS"` //每股净资产 MGJYXJJE float64 `json:"MGJYXJJE"` //每股经营现金流量(元) XSMLL float64 `json:"XSMLL"` //销售毛利率(%) YSHZ float64 `json:"YSHZ"` SJLHZ float64 `json:"SJLHZ"` ASSIGNDSCRPT float64 `json:"ASSIGNDSCRPT"` PAYYEAR float64 `json:"PAYYEAR"` PUBLISHNAME float64 `json:"PUBLISHNAME"` ZXGXL float64 `json:"ZXGXL"` NOTICEDATE string `json:"NOTICE_DATE"` //最新公告日期 ORGCODE string `json:"ORG_CODE"` TRADEMARKETZJG string `json:"TRADE_MARKET_ZJG"` ISNEW string `json:"ISNEW"` QDATE string `json:"QDATE"` DATATYPE string `json:"DATATYPE"` DATAYEAR string `json:"DATAYEAR"` DATEMMDD string `json:"DATEMMDD"` EITIME string `json:"EITIME"` SECUCODE string `json:"SECUCODE"` //证券代码 }
FinanceReport 财报
func GetAllFinanceReports ¶ added in v1.5.20
func GetAllFinanceReports() []FinanceReport
GetAllFinanceReports 获取全部的业务报表
type HoldNumChangeState ¶ added in v1.3.27
type HoldNumChangeState = int
const ( HoldNumDampened HoldNumChangeState = -1 // 减少 HoldNumUnChanged HoldNumChangeState = 0 // 不变 HoldNumNewlyAdded HoldNumChangeState = 1 // 新进/新增 HoldNumIncrease HoldNumChangeState = 2 // 增加 HoldNumUnknownChanges HoldNumChangeState = -9 // 未知变化 )
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"` // "报告期", UPDATE_DATE string `json:"UPDATE_DATE"` // "公告日", HOLDER_TYPE string `json:"HOLDER_TYPE"` // "股东类型", HOLDER_NEWTYPE string `json:"HOLDER_NEWTYPE"` // "-", HOLDER_NAME string `json:"HOLDER_NAME"` // "股东名称", IS_HOLDORG string `json:"IS_HOLDORG"` // "是否机构", HOLDER_RANK int `json:"HOLDER_RANK"` // "股东排名", HOLD_NUM int `json:"HOLD_NUM"` // "期末持股-数量", FREE_HOLDNUM_RATIO float64 `json:"FREE_HOLDNUM_RATIO"` // "-", HOLD_NUM_CHANGE_NAME string `json:"HOLDNUM_CHANGE_NAME"` // "-", XZCHANGE int `json:"XZCHANGE"` // "期末持股-数量变化", CHANGE_RATIO float64 `json:"CHANGE_RATIO"` // "-", HOLDER_STATE string `json:"HOLDER_STATE"` // "-", REPORT_DATE_NAME string `json:"REPORT_DATE_NAME"` // ---华丽的分割线--- HOLDER_MARKET_CAP float64 `json:"HOLDER_MARKET_CAP"` // "期末持股-流通市值", HOLD_RATIO float64 `json:"HOLD_RATIO"` // "-", SECURITY_CODE string `json:"SECURITY_CODE"` // "股票代码简写", HOLD_CHANGE string `json:"HOLD_CHANGE"` // "-", HOLD_RATIO_CHANGE float64 `json:"HOLD_RATIO_CHANGE"` // "期末持股-数量变化比例", ORG_CODE string `json:"ORG_CODE"` // "-", HOLDER_CODE string `json:"HOLDER_CODE"` // "-", SECURITY_TYPE_CODE string `json:"SECURITY_TYPE_CODE"` // "-", SHARES_TYPE string `json:"SHARES_TYPE"` // "-", HOLDER_NEW string `json:"HOLDER_NEW"` // "-", FREE_RATIO_QOQ string `json:"FREE_RATIO_QOQ"` // "-", HOLDER_STATEE string `json:"HOLDER_STATEE"` // "-", IS_REPORT string `json:"IS_REPORT"` // "-", HOLDER_CODE_OLD string `json:"HOLDER_CODE_OLD"` // "-", IS_MAX_REPORT_DATE string `json:"IS_MAX_REPORTDATE"` // "-", COOPERATION_HOLDER_MARK string `json:"COOPERATION_HOLDER_MARK"` // "-", MXID string `json:"MXID"` // "-", LISTING_STATE string `json:"LISTING_STATE"` // "-", NEW_CHANGE_RATIO string `json:"NEW_CHANGE_RATIO"` // "-", HOLD_NUM_CHANGE string `json:"HOLD_NUM_CHANGE"` // "期末持股-持股变动", }
HoldingAnalyse 持股分析
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"` }
Click to show internal directories.
Click to hide internal directories.