Skip to content

Commit

Permalink
Updated CryptoExchange.Net
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Mar 24, 2024
1 parent b895207 commit 28e54b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ByBit.Net/Bybit.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="CryptoExchange.Net" Version="7.1.0" />
<PackageReference Include="CryptoExchange.Net" Version="7.2.0" />
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions ByBit.Net/SymbolOrderBooks/BybitOrderBookFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,31 @@ public ISymbolOrderBook CreateSpot(string symbol, Action<BybitOrderBookOptions>?
=> new BybitSymbolOrderBook(symbol,
Enums.Category.Spot,
options,
_serviceProvider.GetRequiredService<ILogger<BybitSymbolOrderBook>>(),
_serviceProvider.GetRequiredService<ILoggerFactory>(),
_serviceProvider.GetRequiredService<IBybitSocketClient>());

/// <inheritdoc />
public ISymbolOrderBook CreateOption(string symbol, Action<BybitOrderBookOptions>? options = null)
=> new BybitSymbolOrderBook(symbol,
Enums.Category.Option,
options,
_serviceProvider.GetRequiredService<ILogger<BybitSymbolOrderBook>>(),
_serviceProvider.GetRequiredService<ILoggerFactory>(),
_serviceProvider.GetRequiredService<IBybitSocketClient>());

/// <inheritdoc />
public ISymbolOrderBook CreateLinearInverse(string symbol, Action<BybitOrderBookOptions>? options = null)
=> new BybitSymbolOrderBook(symbol,
Enums.Category.Linear,
options,
_serviceProvider.GetRequiredService<ILogger<BybitSymbolOrderBook>>(),
_serviceProvider.GetRequiredService<ILoggerFactory>(),
_serviceProvider.GetRequiredService<IBybitSocketClient>());

/// <inheritdoc />
public ISymbolOrderBook Create(string symbol, Category category, Action<BybitOrderBookOptions>? options = null)
=> new BybitSymbolOrderBook(symbol,
category,
options,
_serviceProvider.GetRequiredService<ILogger<BybitSymbolOrderBook>>(),
_serviceProvider.GetRequiredService<ILoggerFactory>(),
_serviceProvider.GetRequiredService<IBybitSocketClient>());
}
}
4 changes: 2 additions & 2 deletions ByBit.Net/SymbolOrderBooks/BybitSymbolOrderBook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public BybitSymbolOrderBook(string symbol, Category category, Action<BybitOrderB
public BybitSymbolOrderBook(string symbol,
Category category,
Action<BybitOrderBookOptions>? optionsDelegate,
ILogger<BybitSymbolOrderBook>? logger,
IBybitSocketClient? socketClient) : base(logger, "Bybit", symbol)
ILoggerFactory? logger,
IBybitSocketClient? socketClient) : base(logger, "Bybit", "V5", symbol)
{
var options = BybitOrderBookOptions.Default.Copy();
if (optionsDelegate != null)
Expand Down

0 comments on commit 28e54b7

Please sign in to comment.