Kaynağa Gözat

BaseStrategy

- refactoring
Alexey Kim 3 gün önce
ebeveyn
işleme
4409f31caa
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  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 {