Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnknownMarket 未知的市场 ErrUnknownMarket = errors.New("未知的市场") )
Functions ¶
This section is empty.
Types ¶
type America ¶
type America struct{}
America 美国证券市场
func (America) YahooQueryCode ¶
YahooQueryCode 雅虎查询代码
type CompanyDailyQuote ¶
type CompanyDailyQuote struct { Company Pre QuoteSeries Regular QuoteSeries Post QuoteSeries }
CompanyDailyQuote 公司每日报价
func (CompanyDailyQuote) Equal ¶
func (q CompanyDailyQuote) Equal(s CompanyDailyQuote) error
Equal 判断是否相等
func (CompanyDailyQuote) Glance ¶
func (q CompanyDailyQuote) Glance(logger *log.Logger, location *time.Location)
Glance 显示摘要
func (*CompanyDailyQuote) Unmarshal ¶
func (q *CompanyDailyQuote) Unmarshal(buffer []byte)
Unmarshal 反序列化
type CompanyList ¶
type CompanyList []Company
CompanyList 公司列表
func (CompanyList) Len ¶
func (l CompanyList) Len() int
func (CompanyList) Less ¶
func (l CompanyList) Less(i, j int) bool
func (CompanyList) Swap ¶
func (l CompanyList) Swap(i, j int)
type DailyQuote ¶
type DailyQuote struct { Market UTCOffset int Date time.Time Quotes []CompanyDailyQuote }
DailyQuote 市场每日报价
type HongKong ¶
type HongKong struct{}
HongKong 香港证券市场
func (HongKong) YahooQueryCode ¶
YahooQueryCode 雅虎查询代码
type Market ¶
type Market interface { // 名称 Name() string // 时区 Timezone() string // 获取上市公司列表 Companies() ([]Company, error) // 用于雅虎财经接口的查询代码后缀 YahooQueryCode(company Company) string }
Market 市场
Click to show internal directories.
Click to hide internal directories.