瀏覽代碼

RiskManager

- add `safe` option
Alexey Kim 2 月之前
父節點
當前提交
7af497e5a2
共有 1 個文件被更改,包括 2 次插入2 次删除
  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
 }