Skip to content

Commit

Permalink
Use globals instead of configuration for subscription validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonabreul committed Feb 21, 2024
1 parent 820b138 commit 77cb463
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 77cb463

Please sign in to comment.