From a364f8bf5cc29a2f021da0d1daa2bc15825c83d8 Mon Sep 17 00:00:00 2001 From: Jhonathan Abreu Date: Wed, 21 Feb 2024 11:45:14 -0400 Subject: [PATCH] Use globals instead of configuration for subscription validation --- QuantConnect.TradierBrokerage/TradierBrokerage.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QuantConnect.TradierBrokerage/TradierBrokerage.cs b/QuantConnect.TradierBrokerage/TradierBrokerage.cs index 898aaf0..658308c 100644 --- a/QuantConnect.TradierBrokerage/TradierBrokerage.cs +++ b/QuantConnect.TradierBrokerage/TradierBrokerage.cs @@ -1975,10 +1975,10 @@ private static void ValidateSubscription() { try { - var productId = 185; - 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 = 185; + 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)