Skip to content

Commit

Permalink
Fix for AllowAppendingClientOrderId options setting
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Dec 2, 2024
1 parent c65a950 commit 4c720e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HTX.Net/ExtensionMethods/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static IServiceCollection AddHTX(
var socketEnvName = options.Socket.Environment?.Name ?? options.Environment?.Name ?? HTXEnvironment.Live.Name;
options.Rest.Environment = HTXEnvironment.GetEnvironmentByName(restEnvName) ?? options.Rest.Environment!;
options.Rest.ApiCredentials = options.Rest.ApiCredentials ?? options.ApiCredentials;
options.Rest.AllowAppendingClientOrderId = options.Rest.AllowAppendingClientOrderId || options.AllowAppendingClientOrderId;
options.Socket.Environment = HTXEnvironment.GetEnvironmentByName(socketEnvName) ?? options.Socket.Environment!;
options.Socket.ApiCredentials = options.Socket.ApiCredentials ?? options.ApiCredentials;

Expand Down Expand Up @@ -70,6 +71,7 @@ public static IServiceCollection AddHTX(

options.Rest.Environment = options.Rest.Environment ?? options.Environment ?? HTXEnvironment.Live;
options.Rest.ApiCredentials = options.Rest.ApiCredentials ?? options.ApiCredentials;
options.Rest.AllowAppendingClientOrderId = options.Rest.AllowAppendingClientOrderId || options.AllowAppendingClientOrderId;
options.Socket.Environment = options.Socket.Environment ?? options.Environment ?? HTXEnvironment.Live;
options.Socket.ApiCredentials = options.Socket.ApiCredentials ?? options.ApiCredentials;

Expand Down

0 comments on commit 4c720e9

Please sign in to comment.