Ver código fonte

BaseStrategy

- refactoring
Alexey Kim 6 dias atrás
pai
commit
4409f31caa
1 arquivos alterados com 3 adições e 3 exclusões
  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 {