Alexey Kim 7 mesi fa
parent
commit
e62a348ed6
2 ha cambiato i file con 1 aggiunte e 7 eliminazioni
  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
 	}
 	}