Get Delayed Data with Interactive Brokers API

Hello,
I have Matlab R2015b running with the latest IB TWS API. The API seems to be working. As I only have a trial account at the moment, I would like to retrieve delayed data with the API. However, the standard function 'getdata' seems not to be working. Specifically, when I call
d = getdata(ib,ibContract)
d = Requested market data is not subscribed.Delayed market data is available.Error&BEST/STK/Top&BEST/STK/Top
How do I set it up, so that I can access delayed data instead?
Thank you,

Answers (0)

Categories

Products

Release

R2015b

Asked:

fq
on 22 May 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!