Request Interactive Brokers historical data
requests Interactive Brokers® historical data using the IB Trader WorkstationSM connection d
= history(ib
,ibContract
,startdate
,enddate
)ib
and IB Trader Workstation
IContract
object ibContract
to signify the
instrument. history
requests data from startdate
through enddate
. The default tick type is 'TRADES'
and default period is '1 day'
.
requests Interactive Brokers historical data using the flag d
= history(ib
,ibContract
,startdate
,enddate
,ticktype
,period
,tradehours
)tradehours
to include all
data or only data within regular trading hours.
requests Interactive Brokers historical data using an event handler function
d
= history(ib
,ibContract
,startdate
,enddate
,ticktype
,period
,tradehours
,eventhandler
)eventhandler
. Use the sample event handler
ibExampleEventHandler
or write a custom event handler function.
If the
variable ibBuiltInErrMsg
appears in the MATLAB® workspace, check the status of the connection and function execution by displaying
the contents of this variable. ibBuiltInErrMsg
contains messages related to:
Connection
Information resulting from executing functions
Errors
close
| createOrder
| getdata
| ibtws
| realtime
| timeseries