Lean icon indicating copy to clipboard operation
Lean copied to clipboard

There is no `OnData(FuturesChains)` method

Open DerekMelchin opened this issue 3 years ago • 0 comments

Expected Behavior

If we define an OnData method that accepts a FuturesChains argument, LEAN passes the FuturesChains to the method.

Actual Behavior

The algorithm manager doesn't call an OnData(FuturesChains) method when it fires the pricing events. https://github.com/QuantConnect/Lean/blob/299cb79832f815afdc4e2f19ed2ebe39ec8a10bd/Engine/AlgorithmManager.cs#L590-L602

Potential Solution

Add a OnData(FuturesChains) method invoker to the algorithm manager.

Reproducing the Problem

Run this backtest: https://www.quantconnect.com/terminal/processCache?request=embedded_backtest_4260b8b9f905f754d9391c51d6f3a464.html

System Information

QC Cloud

Checklist

  • [x] I have completely filled out this template
  • [x] I have confirmed that this issue exists on the current master branch
  • [x] I have confirmed that this is not a duplicate issue by searching issues
  • [x] I have provided detailed steps to reproduce the issue

DerekMelchin avatar Jun 22 '22 20:06 DerekMelchin