Skip to content

Commit

Permalink
Merge pull request #28 from jhonabreul/refactor-subscription-validation
Browse files Browse the repository at this point in the history
Use Globals for credentials access for subscription validation
  • Loading branch information
jhonabreul authored Feb 21, 2024
2 parents b7373d3 + a364f8b commit b12171e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions QuantConnect.TradierBrokerage/TradierBrokerage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b12171e

Please sign in to comment.