This diagram shows the functions that you can use with the IB Trader WorkstationSM to monitor market price information and submit orders.
To request current, intraday, real-time, historical, or market depth data:
Connect to the IB Trader Workstation using ibtws
.
Create the IB Trader Workstation IContract
object.
Request current data for a security using getdata
.
Request intraday data for a security using timeseries
.
Request real-time data for a security using realtime
.
Request historical data for a security using history
.
Request market depth data for a security using marketdepth
.
Close the IB Trader Workstation connection using close
.
To submit orders to the IB Trader Workstation:
Connect to the IB Trader Workstation using ibtws
.
Create the IB Trader Workstation IContract
object.
Create the IB Trader Workstation IOrder
object.
Request a unique order identifier using orderid
.
Create and submit the order using createOrder
.
Request open order data using orders
.
Request executed order data using executions
.
Close the IB Trader Workstation connection using close
.
To request information from the IB Trader Workstation:
Connect to the IB Trader Workstation using ibtws
.
Create the IB Trader Workstation IContract
object.
Request contract detailed data using contractdetails
.
Request account information using accounts
.
Request portfolio data using portfolio
.
Close the IB Trader Workstation connection using close
.