Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Common/Scheduling/ScheduleManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public ScheduleManager(IAlgorithm algorithm, SecurityManager securities, DateTim
/// Sets the <see cref="IEventSchedule"/> implementation
/// </summary>
/// <param name="eventSchedule">The event schedule implementation to be used. This is the IRealTimeHandler</param>
internal void SetEventSchedule(IEventSchedule eventSchedule)
public void SetEventSchedule(IEventSchedule eventSchedule)
{
if (eventSchedule == null)
{
Expand Down
5 changes: 5 additions & 0 deletions Research/QuantBook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
using QuantConnect.Lean.Engine.Setup;
using QuantConnect.Indicators;
using QuantConnect.Scheduling;
using QuantConnect.Lean.Engine.RealTime;

namespace QuantConnect.Research
{
Expand Down Expand Up @@ -142,6 +143,10 @@ public QuantBook() : base()
new AlgorithmManager(false));
systemHandlers.LeanManager.SetAlgorithm(this);

var realTimeHandler = composer.GetPart<IRealTimeHandler>();
var algorithmManager = new AlgorithmManager(false, algorithmPacket);
realTimeHandler.Setup(this, algorithmPacket, algorithmHandlers.Results, systemHandlers.Api, algorithmManager.TimeLimit);
Schedule.SetEventSchedule(realTimeHandler);

algorithmHandlers.DataPermissionsManager.Initialize(algorithmPacket);

Expand Down
Loading