I would like to use custom data in live trading mode. I have asked question related to this one few weeks ago (

https://www.quantconnect.com/forum/discussion/11220/live-trading-with-custom-data/p1

), but I am not sure how to approach the problem when custom data feed have delays.

Let’s say I use hour resolution in my Algo, where algo trades only one asset. The custom data is csv file that is updated every hour. But the problem is that custom data is not available on exact hour bases (say 10:00, 11:00), but with small delay (10:01 11:01). How should I organize my code to retrieve my data as soon as it is available?

I see only 2 solutions:

1) Use lower resolution and ask for data, say every minute. The downside is that I make algo much slower because it uses much higher resolution even if custom data is on hour frequencies (with delays).

2) Use some kind of loop and check if new data is available, but I am not sure if this is possible in OnData method?

What should be recommended way in QC/Lean and how to approach this problem?