Browse Source

RiskManager

- refactor GetOrderSize: add symbol string, bid float64
Alexey Kim 2 tháng trước cách đây
mục cha
commit
6e0858e9c3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 	}