Documentation
¶
Index ¶
Constants ¶
View Source
const ( STOCKA = iota // 股票 STOCKB // B股个股 FUNDS // 基金 INDEX // 指数 BOND // 债券 ... )
Variables ¶
This section is empty.
Functions ¶
func GetFinanceDataFrame ¶
func GetFinanceDataFrame(conf IConfigure, types ...int) dataframe.DataFrame
*
- 获取股票、基金、指数等信息
Types ¶
type CTdx ¶
type CTdx struct { Urls struct { StockFin string `toml:"stock_fin"` FinListFile string `toml:"fin_list_file"` } `toml:"urls"` Files struct { Calendar string `toml:"calendar"` StockSt string `toml:"stock_st"` StockList string `toml:"stock_list"` StockBonus string `toml:"stock_bonus"` StockDay string `toml:"stock_day"` StockMin string `toml:"stock_min"` StockReport string `toml:"stock_report"` } `toml:"files"` Server struct { DataHost string `toml:"data_host"` MonitorHost string `toml:"monitor_host"` } `toml:"server"` }
type CalendarModel ¶
type CalendarModel struct { Date int Open bool WeekEnd bool MonthEnd bool QuarterEnd bool YearEnd bool // contains filtered or unexported fields }
func NewCalendarModel ¶
func NewCalendarModel(date int, open bool, prevDate int, weekEnd, monthEnd, quarterEnd, yearEnd bool) CalendarModel
type IConfigure ¶
type StockCalendar ¶
type StockCalendar struct {
// contains filtered or unexported fields
}
func DefaultStockCalendar ¶
func DefaultStockCalendar(calendarPath string) (*StockCalendar, error)
func (*StockCalendar) Each ¶
func (cal *StockCalendar) Each(f func(dateItem CalendarModel) error) error
Click to show internal directories.
Click to hide internal directories.