strategy

package
v0.0.0-...-45a0acb Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Strategy

type Strategy struct {
	// contains filtered or unexported fields
}

func LoadStrategy

func LoadStrategy(path string) *Strategy

func LoadStrategys

func LoadStrategys(path string) *Strategy

func (*Strategy) BuyConditions

func (st *Strategy) BuyConditions(name string) bool

func (*Strategy) GetProperty

func (st *Strategy) GetProperty() map[string]interface{}

func (*Strategy) Info

func (st *Strategy) Info() proto.Information

func (*Strategy) Init

func (st *Strategy) Init()

func (*Strategy) KillProcess

func (st *Strategy) KillProcess()

func (*Strategy) RankFilter

func (st *Strategy) RankFilter(name string) bool

func (*Strategy) SellConditions

func (st *Strategy) SellConditions(name string) bool

func (*Strategy) SetProperty

func (st *Strategy) SetProperty(property map[string]interface{})

type StrategyManager

type StrategyManager struct {
	Strategys map[string]Strategy
}

func (*StrategyManager) GetList

func (sm *StrategyManager) GetList()

func (*StrategyManager) LoadFromFile

func (sm *StrategyManager) LoadFromFile(path string)

func (*StrategyManager) LoadFromGithub

func (sm *StrategyManager) LoadFromGithub(url string)

func (*StrategyManager) LoadFromSource

func (sm *StrategyManager) LoadFromSource(path string)

Directories

Path Synopsis
Package proto is a generated protocol buffer package.
Package proto is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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