Documentation ¶
Index ¶
Constants ¶
View Source
const ( ColumnSymbol = "Symbol" ColumnPrice = "Price" ColumnChange1hPct = "%Change(1h)" ColumnChange24hPct = "%Change(24h)" ColumnSource = "Source" ColumnUpdated = "Updated" )
Variables ¶
View Source
var ( Version string Rev string Date string )
Will be set by go-build
Functions ¶
func ListExchangesAndExit ¶ added in v0.6.0
func ListExchangesAndExit(exchanges []string)
Types ¶
type Config ¶ added in v0.6.0
type Config struct { Timeout int `mapstructure:"timeout"` Proxy string `mapstructure:"proxy"` Refresh int `mapstructure:"refresh"` Columns []string `mapstructure:"show"` Debug bool `mapstructure:"debug"` Queries []*PriceQuery `mapstructure:"exchanges"` }
func (*Config) GroupQueryByExchange ¶ added in v0.6.0
func (c *Config) GroupQueryByExchange() map[string]*PriceQuery
type PriceQuery ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.