2
0
Pārlūkot izejas kodu

RiskManager

- add `safe` option
Alexey Kim 2 mēneši atpakaļ
vecāks
revīzija
7af497e5a2
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      risk_manager.go

+ 2 - 2
risk_manager.go

@@ -2,6 +2,6 @@ package sentio
 
 type RiskManager interface {
 	EnsureVolatility(symbol string) bool
-	StopLoss(symbol string, current float64) float64
-	TakeProfit(symbol string, current float64) float64
+	StopLoss(symbol string, current float64, safe bool) float64
+	TakeProfit(symbol string, current float64, safe bool) float64
 }