You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fractional Share Purchase Support -
Currently when calling wb.place_order(), it casts the 'quant' value to an int, rounding it.
The endpoint accepts a 'float' value for MKT orders to purchase fractional shares.
data = {
'action': action,
'comboType': 'NORMAL',
'orderType': orderType,
'outsideRegularTradingHour': outsideRegularTradingHour,
'quantity': int(quant), # changing this to float(quant) works to execute fractional share purchase.
'serialId': str(uuid.uuid4()),
'tickerId': tId,
'timeInForce': enforce
}
The text was updated successfully, but these errors were encountered:
Fractional Share Purchase Support -
Currently when calling wb.place_order(), it casts the 'quant' value to an int, rounding it.
The endpoint accepts a 'float' value for MKT orders to purchase fractional shares.
The text was updated successfully, but these errors were encountered: