Skip to content

place_order is failing #83

Closed
Closed
@jbaron

Description

@jbaron

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions