From 073fe8287ebee482870e71f93edab3a1a9145544 Mon Sep 17 00:00:00 2001 From: Jhonathan Abreu Date: Wed, 21 Feb 2024 12:10:06 -0400 Subject: [PATCH] Use globals instead of configuration for subscription validation --- QuantConnect.Wolverine/WolverineBrokerage.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/QuantConnect.Wolverine/WolverineBrokerage.cs b/QuantConnect.Wolverine/WolverineBrokerage.cs index 7ebfe7e..8f5e9e2 100644 --- a/QuantConnect.Wolverine/WolverineBrokerage.cs +++ b/QuantConnect.Wolverine/WolverineBrokerage.cs @@ -60,9 +60,9 @@ public class WolverineBrokerage : Brokerage /// /// consolidate ticks public WolverineBrokerage( - IAlgorithm algorithm, - LiveNodePacket job, - IOrderProvider orderProvider, + IAlgorithm algorithm, + LiveNodePacket job, + IOrderProvider orderProvider, FixConfiguration fixConfiguration, ISecurityProvider securityProvider, IMapFileProvider mapFileProvider, @@ -292,10 +292,10 @@ private static void ValidateSubscription() { try { - var productId = 221; - var userId = Config.GetInt("job-user-id"); - var token = Config.Get("api-access-token"); - var organizationId = Config.Get("job-organization-id", null); + const int productId = 221; + var userId = Globals.UserId; + var token = Globals.UserToken; + var organizationId = Globals.OrganizationID; // Verify we can authenticate with this user and token var api = new ApiConnection(userId, token); if (!api.Connected)