I am trying to use the IqFeed connection in the Datafeed Toolbox to download real time market data. This is what I have written...
Pretty simple stuff. I run the program and the "Variable Viewer" pops up and I can see the data. Now if I run it a second time, I get this error...
Warning: Error occurred while executing delegate callback:
Message: The IAsyncResult object was not returned from the corresponding asynchronous method on this class.
Parameter name: asyncResult
It's a know problem I guess because on the "timeseries" help page it acknowledges the error and says to simply restart Matlab when it occurs.
When you make multiple requests with multiple messages, this error might display: Warning: Error occurred while executing delegate callback: Message: The IAsyncResult object was not returned from the corresponding asynchronous method on this class.
To fix this, restart MATLAB.
The problem is this happens EVER SINGLE TIME the function is run, leaving it impossible to write any useful code using the IqFeed datafeed. It's a one-and-done function.
Has anyone discovered a fix or workaround for this error?