瀏覽代碼

RiskManager

- refactor GetOrderSize: add symbol string, bid float64
Alexey Kim 2 月之前
父節點
當前提交
6e0858e9c3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 	}