Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Watch5Min = strategies.IntervalStrategy{ Model: strategies.StrategyModel{ Name: "Watch5Min", Setup: func(wrappers []exchanges.ExchangeWrapper, markets []*environment.Market) error { fmt.Println("Watch5Min starting") return nil }, OnUpdate: func(wrappers []exchanges.ExchangeWrapper, markets []*environment.Market) error { _, err := wrappers[0].GetMarketSummary(markets[0]) if err != nil { return err } fmt.Println(markets) return nil }, OnError: func(err error) { fmt.Println(err) }, TearDown: func(wrappers []exchanges.ExchangeWrapper, markets []*environment.Market) error { fmt.Println("Watch5Min exited") return nil }, }, Interval: time.Minute * 5, }
Watch5Min prints out the info of the market every 5 minutes.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.