Closed
Description
When I try to place an order I get an exception:
:: 400 :: Bad Request :: {"error":"orders request includes parameter with incorrect type"}
The reason I figured out through some trial and error is that we send the conid
as a string and it expects it to be an int. This simple snippet is working:
msg = {'orders': [{'conid': 80986742, 'side': 'BUY', 'quantity': 1, 'orderType': 'LMT', 'price': 46, 'tif': 'GTC'}]}
client.post(f"iserver/account/{account_id}/orders", msg)
Metadata
Metadata
Assignees
Labels
No labels