Documentation ¶
Index ¶
- func NewCull(usd, pat, all []string) *cull
- func NewParagon(name string, size, gain, loss, delta float64) *paragon
- func NewPeriod(name, duration string, now *time.Time) *period
- type ParagonConfig
- type Session
- func (p Session) GetPattern(productID string) *cbp.Pattern
- func (c Session) IDS() []string
- func (p Session) InPeriod(t time.Time) bool
- func (p Session) RateParams() *[]cb.GetHistoricRatesParams
- func (p Session) Start() *time.Time
- func (p Session) Stop() *time.Time
- func (c Session) UsdSelectionProductIDs() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewParagon ¶ added in v1.0.7
Types ¶
type ParagonConfig ¶ added in v1.0.7
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session of the application - only active while the executable is run within the defined period range.
func NewSession ¶
func NewSession(cfg, dur string, usd []string, size, gain, loss, delta float64, debug ...bool) (*Session, error)
NewSession reads configuration from environment variables and validates it
func (Session) GetPattern ¶ added in v1.0.5
func (Session) InPeriod ¶ added in v1.0.5
InPeriod is an exclusive range function to determine if the given time falls within the defined period.
func (Session) RateParams ¶ added in v1.0.9
func (p Session) RateParams() *[]cb.GetHistoricRatesParams
func (Session) UsdSelectionProductIDs ¶ added in v1.0.3
func (c Session) UsdSelectionProductIDs() []string
Click to show internal directories.
Click to hide internal directories.