Placing Orders
Placing orders first requires a contract to be defined.
In the code below, the reqContractDetails() function initiates the sequence of function calls that place an order. Inside the defined contractDetails() callback function below, the placeOrder() function is called, which places the order.
Data from the placeOrder() function is returned via the openOrder() and orderStatus() callback functions.
Comprehensive example code for C++, C#, Java, Python, and Visual Basic can be found in the /samples directory of the downloaded TWS API file.
The requested contract object is returned via the contractDetails() callback function.
Python

