Documentation ¶
Index ¶
Constants ¶
View Source
const (
PrecisionPoloniex = 8
)
Variables ¶
This section is empty.
Functions ¶
func GetExecutablePath ¶
func GetExecutablePath() string
func ToFloatStr ¶
Types ¶
type Settings ¶
type Settings struct { APIKey string `yaml:"poloniex_api_key"` APISecret string `yaml:"poloniex_api_secret"` DatabaseFileName string `yaml:"database_filename"` }
func LoadSettings ¶
func (*Settings) MakePoloniex ¶
type TickerCache ¶
func NewTickerCache ¶
func NewTickerCache(api *poloniex.Poloniex) *TickerCache
func (*TickerCache) Get ¶
func (c *TickerCache) Get(asset, currency string) (poloniex.PoloniexTicker, error)
func (*TickerCache) Refresh ¶
func (c *TickerCache) Refresh() error
Click to show internal directories.
Click to hide internal directories.