Skip to content

Commit

Permalink
Merge pull request #16 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 820b138 + 77cb463 commit 14f8ba1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions QuantConnect.BitfinexBrokerage/BitfinexBrokerage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,10 @@ private static void ValidateSubscription()
{
try
{
var productId = 182;
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 = 182;
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 14f8ba1

Please sign in to comment.