Alexey Kim 2 tháng trước cách đây
mục cha
commit
e62a348ed6
2 tập tin đã thay đổi với 1 bổ sung7 xóa
  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
 	}