Alexey Kim 2 달 전
부모
커밋
e62a348ed6
2개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 2
      risk_manager.go
  2. 1 5
      util/order.go

+ 0 - 2
risk_manager.go

@@ -4,6 +4,4 @@ type RiskManager interface {
 	EnsureVolatility(symbol string) bool
 	StopLoss(symbol string, current float64, safe bool) float64
 	TakeProfit(symbol string, current float64, safe bool) float64
-
-	Renovacion(market Market) (float64, error)
 }

+ 1 - 5
util/order.go

@@ -60,11 +60,7 @@ func CreateOrder(
 		return sentio.ErrTooSmallOrder
 	}
 
-	var ratio float64
-	if ratio, err = rm.Renovacion(m); err != nil {
-		return err
-	}
-
+	var ratio = .96
 	if ratio <= 0 {
 		return sentio.ErrRiskManagementPrevent
 	}