Browse Source

RiskManager

- refactor GetOrderSize: add symbol string, bid float64
Alexey Kim 2 months ago
parent
commit
6e0858e9c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util/order.go

+ 1 - 1
util/order.go

@@ -61,7 +61,7 @@ func CreateOrder(
 	}
 
 	var ratio float64
-	if ratio = rm.GetOrderSize(); ratio <= 0 {
+	if ratio = rm.GetOrderSize(symbol, bid); ratio <= 0 {
 		return sentio.ErrRiskManagementPrevent
 	}