diff --git a/Huobi.Net/Huobi.Net.csproj b/Huobi.Net/Huobi.Net.csproj index 4c6db568..bc9d48c9 100644 --- a/Huobi.Net/Huobi.Net.csproj +++ b/Huobi.Net/Huobi.Net.csproj @@ -42,7 +42,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Huobi.Net/HuobiHelpers.cs b/Huobi.Net/HuobiHelpers.cs index 4f6f70cc..a48f7324 100644 --- a/Huobi.Net/HuobiHelpers.cs +++ b/Huobi.Net/HuobiHelpers.cs @@ -60,6 +60,7 @@ public static IServiceCollection AddHuobi( services.AddSingleton(); services.AddTransient(); + services.AddTransient(x => x.GetRequiredService().SpotApi.CommonSpotClient); if (socketClientLifeTime == null) services.AddSingleton(); else