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
 	EnsureVolatility(symbol string) bool
 	StopLoss(symbol string, current float64, safe bool) float64
 	StopLoss(symbol string, current float64, safe bool) float64
 	TakeProfit(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
 		return sentio.ErrTooSmallOrder
 	}
 	}
 
 
-	var ratio float64
-	if ratio, err = rm.Renovacion(m); err != nil {
-		return err
-	}
-
+	var ratio = .96
 	if ratio <= 0 {
 	if ratio <= 0 {
 		return sentio.ErrRiskManagementPrevent
 		return sentio.ErrRiskManagementPrevent
 	}
 	}