Compare commits

...

1 Commits
16632 ... 12202

Author SHA1 Message Date
Martin-Molinero
cffe2cee3b Add organization id to packet 2021-07-02 20:27:34 -03:00
2 changed files with 8 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
@@ -49,6 +49,10 @@ namespace QuantConnect.Packets
[JsonProperty(PropertyName = "sUserToken")]
public string UserToken = "";
/// User Organization Id
[JsonProperty(PropertyName = "sOrganizationID")]
public string OrganizationId = "";
/// <summary>
/// Project Id of the request
/// </summary>

View File

@@ -39,6 +39,7 @@ namespace QuantConnect.Queues
private const string DefaultDataChannelProvider = "DataChannelProvider";
private bool _liveMode = Config.GetBool("live-mode");
private static readonly string AccessToken = Config.Get("api-access-token");
private static readonly string OrganizationId = Config.Get("job-organization-id");
private static readonly int UserId = Config.GetInt("job-user-id", 0);
private static readonly int ProjectId = Config.GetInt("job-project-id", 0);
private readonly string AlgorithmTypeName = Config.Get("algorithm-type-name");
@@ -109,6 +110,7 @@ namespace QuantConnect.Queues
UserToken = AccessToken,
UserId = UserId,
ProjectId = ProjectId,
OrganizationId = OrganizationId,
Version = Globals.Version,
DeployId = algorithmId,
Parameters = parameters,
@@ -140,6 +142,7 @@ namespace QuantConnect.Queues
UserToken = AccessToken,
UserId = UserId,
ProjectId = ProjectId,
OrganizationId = OrganizationId,
Version = Globals.Version,
BacktestId = algorithmId,
Language = Language,