Request Interactive Brokers aggregated intraday data
requests Interactive Brokers® aggregated intraday data using the IB Trader WorkstationSM connection d
= timeseries(ib
,ibContract
,startdate
,enddate
,barsize
)ib
and IB Trader Workstation
IContract
object ibContract
to signify the
instrument. Request data between startdate
and
enddate
using the tick aggregation interval
barsize
for default tick type 'TRADES'
.
requests Interactive Brokers aggregated intraday data using the flag d
= timeseries(ib
,ibContract
,startdate
,enddate
,barsize
,ticktype
,tradehours
)tradehours
to
include all data or only data within regular trading hours.
requests Interactive Brokers aggregated intraday data using an event handler function
d
= timeseries(ib
,ibContract
,startdate
,enddate
,barsize
,ticktype
,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