Skip to content

Commit

Permalink
Updated CryptoExchange.Net version, added CommonSpotClient to DI
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Oct 9, 2023
1 parent 6c723c6 commit ede238f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Huobi.Net/Huobi.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<None Include="Icon\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CryptoExchange.Net" Version="6.1.0" />
<PackageReference Include="CryptoExchange.Net" Version="6.1.5" />
<PackageReference Include="ConfigureAwaitChecker.Analyzer" Version="5.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
1 change: 1 addition & 0 deletions Huobi.Net/HuobiHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public static IServiceCollection AddHuobi(

services.AddSingleton<IHuobiOrderBookFactory, HuobiOrderBookFactory>();
services.AddTransient<IHuobiRestClient, HuobiRestClient>();
services.AddTransient(x => x.GetRequiredService<IHuobiRestClient>().SpotApi.CommonSpotClient);
if (socketClientLifeTime == null)
services.AddSingleton<IHuobiSocketClient, HuobiSocketClient>();
else
Expand Down

0 comments on commit ede238f

Please sign in to comment.