2
0
Pārlūkot izejas kodu

BaseStrategy

- refactoring
Alexey Kim 3 dienas atpakaļ
vecāks
revīzija
4409f31caa
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      strategy.go

+ 3 - 3
strategy.go

@@ -45,11 +45,11 @@ func (strategy BaseStrategy) MarketId() string {
 }
 
 func (strategy BaseStrategy) PositionSymbols() map[Side]string {
-	panic("implement me")
+	return nil
 }
 
 func (strategy BaseStrategy) PositionProbabilities() map[Side]float64 {
-	panic("implement me")
+	return nil
 }
 
 func (strategy BaseStrategy) Interval() uint8 {
@@ -61,7 +61,7 @@ func (strategy BaseStrategy) Cooldown(periods uint8) time.Duration {
 }
 
 func (strategy BaseStrategy) Handle(market Market, probability Probability) error {
-	panic("implement me")
+	return nil
 }
 
 func (strategy BaseStrategy) Symbols() []string {