Versions in this module Expand all Collapse all v1 v1.0.0 Jul 19, 2026 Changes in this version + const EastMoney80Push2ApiBase + const EastMoneyPush2ApiBase + const EastMoneyPush2HisApiBase + const EfinanceAdjustHfq + const EfinanceAdjustNone + const EfinanceAdjustQfq + const EfinanceKlineLen + const EfinancePeriodDaily + const EfinancePeriodMonthly + const EfinancePeriodWeekly + const EfinanceStockQuoteURL + const QuoteFQTDefault + const QuoteFQTFront + const QuoteFQTPost + var EfinanceAdjustMap = map[string]string + var EfinancePeriodMap = map[string]string + var ErrInvalidKLine = errors.New("invalid kline data") + var ErrSkipValue = errors.New("skip value") + type CurrentStockInfoData struct + Diff []map[string]interface{} + Total int + type CurrentStockInfoDiff struct + F10 float64 + F12 string + F124 int64 + F13 int + F14 string + F15 float64 + F16 float64 + F17 float64 + F18 float64 + F2 float64 + F20 float64 + F21 float64 + F23 float64 + F297 int64 + F3 float64 + F37 float64 + F38 float64 + F39 float64 + F4 float64 + F5 float64 + F6 float64 + F7 float64 + F8 float64 + F9 float64 + func ParseCurrentStockInfoDiff(in map[string]interface{}) (out *CurrentStockInfoDiff, err error) + type CurrentStockInfoResp struct + Data *CurrentStockInfoData + Dlmkts string + Full int + Lt int + Rc int + Rt int + Svr int64 + func GetCurrentStockInfo() (resp *CurrentStockInfoResp, err error) + func GetRealtimeQuotes() (resp *CurrentStockInfoResp, err error) + type EfinanceStockItem struct + Code string + Decimal int + Dktotal int + Klines []string + Market int + Name string + PreKPrice float64 + PrePrice float64 + QtMiscType int + type EfinanceStockResp struct + Data *EfinanceStockItem + Dlmkts string + Full int + Lt int + Rc int + Rt int + Svr int + type GetQuoteHistoryReq struct + Begin string + Code string + End string + FQT int + MarketCode int + type KLineQuote struct + Amplitude float64 + Change float64 + ChangeRate float64 + Close float64 + Date time.Time + High float64 + Low float64 + Open float64 + TurnOver float64 + Velocity float64 + Volume int64 + func ParseKlineItem(line string) (kline KLineQuote, err error) + type MarketType int + const MarketTypeSse + const MarketTypeSzSe + type Quote struct + Amplitude float64 + Change float64 + ChangeRate float64 + Close float64 + Code string + Date time.Time + Fqt int + High float64 + Low float64 + Market int + Name string + Open float64 + TurnOver float64 + Velocity float64 + Volume int64 + func ParseQuoteHistoryResp(resp *QuoteHistoryResp) ([]*Quote, error) + type QuoteHistoryData struct + Code string + Decimal int + Dktotal int + Klines []string + Market int + Name string + PreKPrice float64 + PrePrice float64 + QtMiscType int + Version int + type QuoteHistoryResp struct + Data *QuoteHistoryData + Dlmkts string + Full int + Lt int + Rc int + Rt int + Svr int64 + func GetQuoteHistory(req *GetQuoteHistoryReq) (resp *QuoteHistoryResp, err error) + type SecurityBasic struct + Code string + Ctime time.Time + Dtime int64 + ID int64 + ListDate time.Time + Market MarketType + Mtime time.Time + Name string + func GetSecurityBasic() ([]*SecurityBasic, error) + type StockQuote struct + Amount int64 + Amplitude float64 + Close float64 + Code string + Date time.Time + Exchange string + High float64 + Low float64 + Money float64 + Name string + Open float64 + PctChg float64 + PriceChg float64 + Turn float64 + Volume int64 + YClose float64 + func GetEfinanceStockQuote(code, start, end, period, adjust string) ([]*StockQuote, error) + func ParseEfinanceKline(kline string) (res *StockQuote, err error)