strategies

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StrategyList = []*strategy.Info{}

StrategyList List of all strategies

View Source
var StrategyMap = make(map[string]*strategy.Info)

StrategyMap Map of strategies

View Source
var StrategyMetricsMap = make(map[string]strategy.Metrics)

StrategyMetrics map of updated metrics for each strategy - this is used by the StrategyInfo constrcutors and the GetStrategies endpoint

Functions

func InitializeStrategyMap

func InitializeStrategyMap()

InitializeStrategyMap configure the strategy map

func LoadStrategyMetricsFromDb

func LoadStrategyMetricsFromDb()

Ensure all strategies have portfolio entries in the database so metrics are calculated

func Register

func Register(strategyPkg string, factory strategy.Factory)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL