Skip to content

Commit

Permalink
Rename and move StreamingDataPermissions to Controls
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanoRaggi committed Mar 24, 2020
1 parent 69639b6 commit 6aae539
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 9 additions & 0 deletions Common/Packets/Controls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*
*/

using System.Collections.Generic;
using Newtonsoft.Json;
using QuantConnect.Interfaces;

Expand Down Expand Up @@ -116,6 +117,12 @@ public class Controls
[JsonProperty(PropertyName = "persistenceIntervalSeconds")]
public int PersistenceIntervalSeconds;

/// <summary>
/// Gets list of streaming data permissions
/// </summary>
[JsonProperty(PropertyName = "StreamingDataPermissions")]
public HashSet<string> StreamingDataPermissions;

/// <summary>
/// Initializes a new default instance of the <see cref="Controls"/> class
/// </summary>
Expand All @@ -138,6 +145,8 @@ public Controls()

// initialize to default leaky bucket values in case they're not specified
TrainingLimits = new LeakyBucketControlParameters();

StreamingDataPermissions = new HashSet<string>();
}

/// <summary>
Expand Down
6 changes: 0 additions & 6 deletions Common/Packets/LiveNodePacket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ public class LiveNodePacket : AlgorithmNodePacket
[JsonProperty(PropertyName = "DisableAcknowledgement")]
public bool DisableAcknowledgement;

/// <summary>
/// Gets list of user data subscriptions
/// </summary>
[JsonProperty(PropertyName = "UserDataSubscriptions")]
public HashSet<string> UserDataSubscriptions = new HashSet<string>();

/// <summary>
/// Default constructor for JSON of the Live Task Packet
/// </summary>
Expand Down

0 comments on commit 6aae539

Please sign in to comment.