From 4c720e9d486df6e953e9d8bd790d822d12d226c2 Mon Sep 17 00:00:00 2001 From: JKorf Date: Mon, 2 Dec 2024 21:46:16 +0100 Subject: [PATCH] Fix for AllowAppendingClientOrderId options setting --- HTX.Net/ExtensionMethods/ServiceCollectionExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HTX.Net/ExtensionMethods/ServiceCollectionExtensions.cs b/HTX.Net/ExtensionMethods/ServiceCollectionExtensions.cs index 40e9c5c..948c4f5 100644 --- a/HTX.Net/ExtensionMethods/ServiceCollectionExtensions.cs +++ b/HTX.Net/ExtensionMethods/ServiceCollectionExtensions.cs @@ -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; @@ -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;