Closed rapidmoves closed 5 years ago
Starting with version 1.12.67, you can now use
stk_contract = ibConn.createStockContract("SDS")
# create an order
order = ibConn.createOrder(quantity=1000, price =39.13)
# submit an order (returns order id)
orderId = ibConn.placeOrder(stk_contract, order, account="DUXXXXXX")
How do I set the order to be placed to a specific account?
I have 2 accounts under the same TWS login. (Taxable and Retirement/IRA A/c) The code below does not have an Account# to be sent as parameter. Need help!