Skip to content

Commit

Permalink
Fix for orderbook creation via factory
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Nov 29, 2024
1 parent 96b4b6f commit 1ff7e07
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Mexc.Net/SymbolOrderBooks/MexcOrderBookFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,13 @@ public MexcOrderBookFactory(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;

Spot = new OrderBookFactory<MexcOrderBookOptions>(
(symbol, options) => CreateSpot(symbol, options),
(sharedSymbol, options) => CreateSpot(MexcExchange.FormatSymbol(sharedSymbol.BaseAsset, sharedSymbol.QuoteAsset, sharedSymbol.TradingMode, sharedSymbol.DeliverTime), options));

Spot = new OrderBookFactory<MexcOrderBookOptions>(CreateSpot, Create);
}

/// <inheritdoc />
public ISymbolOrderBook Create(SharedSymbol symbol, Action<MexcOrderBookOptions>? options = null)
{
var symbolName = MexcExchange.FormatSymbol(symbol.BaseAsset, symbol.QuoteAsset, symbol.TradingMode, symbol.DeliverTime);
var symbolName = symbol.GetSymbol(MexcExchange.FormatSymbol);
return CreateSpot(symbolName, options);
}

Expand Down

0 comments on commit 1ff7e07

Please sign in to comment.