Closed ajdore closed 3 years ago
Looks like the issue was related to data limitations on the IB end.
The exception is related to calling get method when the buffer is empty. It’s not very idiomatic of matlab to do that so it generally confuses everyone. The easy work around is to just check if buf.size > 0 then e=buf.get(). And, as you mentioned, the buffer is empty because of a data limitation for the exchange on IB side which is usually determined by the data subscriptions for the IB account.
Having an error with SPY when I run the historical data demo code (other symbols work fine).
returns this error
However, the same request for AGG returns fine (AGG has the same contract details as SPY).