For a simple example about order creation using Interactive Brokers, see Create an Order Using IB Trader Workstation. For a high-level overview about using Interactive Brokers functions in a workflow, see Workflow for Interactive Brokers.
Workflow for Interactive Brokers
Request market data, create orders, and request Interactive Brokers informational data.
Create Interactive Brokers Combination Order
This example shows how to connect to the IB Trader
Workstation, create IB Trader
Workstation
IContract
and IComboLegList
objects, and create a combination order for a calendar spread.
Create and Manage an Interactive Brokers Order
This example shows how to connect to the IB Trader
Workstation, request open order data, create IB Trader
Workstation
IContract
and IOrder
objects, and execute the order.
Request Interactive Brokers Historical Data
This example shows how to connect to the IB Trader
Workstation, create an IB Trader
Workstation
IContract
object, and request historical data.
Request Interactive Brokers Real-Time Data
This example shows how to connect to the IB Trader
Workstation, create IB Trader
Workstation
IContract
objects, and request real-time data.
Writing and Running Custom Event Handler Functions with Interactive Brokers
You can process events related to any Interactive Brokers data updates by writing a custom event handler function to use with Trading Toolbox™.