From ede238f7897628ed06c4e5aa93fc0716f8948d92 Mon Sep 17 00:00:00 2001 From: JKorf Date: Mon, 9 Oct 2023 20:04:09 +0200 Subject: [PATCH] Updated CryptoExchange.Net version, added CommonSpotClient to DI --- Huobi.Net/Huobi.Net.csproj | 2 +- Huobi.Net/HuobiHelpers.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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