Documentation ¶
Index ¶
- Variables
- func Yesterday() time.Time
- type SqliteCache
- func (c *SqliteCache) Close() error
- func (c *SqliteCache) HasHist(symbol string, start *time.Time, end *time.Time) bool
- func (c *SqliteCache) HasQuote(symbol string) bool
- func (c *SqliteCache) Hist(symbols []string) (map[string]fquery.Hist, error)
- func (c *SqliteCache) Quote(symbols []string) ([]fquery.Quote, error)
- func (c *SqliteCache) SetQuoteExpiry(dur time.Duration)
- func (c *SqliteCache) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
VERBOSITY = 0
)
Functions ¶
Types ¶
type SqliteCache ¶
func (*SqliteCache) Close ¶
func (c *SqliteCache) Close() error
func (*SqliteCache) HasQuote ¶
func (c *SqliteCache) HasQuote(symbol string) bool
func (*SqliteCache) Hist ¶
I consider this to be an extremely dirty function, it should be split up * and possibly (hopefully) simplified
func (*SqliteCache) Quote ¶
func (c *SqliteCache) Quote(symbols []string) ([]fquery.Quote, error)
TODO: escape your strings, symbols could be user input
func (*SqliteCache) SetQuoteExpiry ¶
func (c *SqliteCache) SetQuoteExpiry(dur time.Duration)
func (*SqliteCache) String ¶
func (c *SqliteCache) String() string
Click to show internal directories.
Click to hide internal directories.