|
@@ -12,9 +12,9 @@ type Strategy interface {
|
|
|
MarketId() string
|
|
|
PositionSymbols() map[Side]string
|
|
|
Interval() uint8
|
|
|
- Cooldown() time.Duration
|
|
|
+ Cooldown(periods uint8) time.Duration
|
|
|
|
|
|
- Handle(market Market, proba float64) ([]StrategyOrder, error)
|
|
|
+ Handle(market Market, ts time.Time, proba float64) ([]StrategyOrder, error)
|
|
|
}
|
|
|
|
|
|
type StrategyOrder struct {
|