소스 검색

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
 }