I have question related to IB market subscription.

I would like to fill rolling window variable with closing prices using local data.

Than I would like to use current market data (stream data) from IB on every step (OnData).

I am not sure how to implement this in Lean. If I start my algo as it is now, I get a market subscription error. But I think I don't event need market data subscription in my algo since I use streaming data which should be free with  professional accounts?

Author