diff --git a/webull/webull.py b/webull/webull.py index 377556f..91ffc43 100644 --- a/webull/webull.py +++ b/webull/webull.py @@ -452,7 +452,7 @@ def place_order(self, stock=None, tId=None, price=0, action='BUY', orderType='LM 'comboType': 'NORMAL', 'orderType': orderType, 'outsideRegularTradingHour': outsideRegularTradingHour, - 'quantity': int(quant), + 'quantity': float(quant) if orderType == 'MKT' else int(quant), 'serialId': str(uuid.uuid4()), 'tickerId': tId, 'timeInForce': enforce