diff --git a/Mexc.Net/SymbolOrderBooks/MexcOrderBookFactory.cs b/Mexc.Net/SymbolOrderBooks/MexcOrderBookFactory.cs index 063845c..093c7d1 100644 --- a/Mexc.Net/SymbolOrderBooks/MexcOrderBookFactory.cs +++ b/Mexc.Net/SymbolOrderBooks/MexcOrderBookFactory.cs @@ -28,16 +28,13 @@ public MexcOrderBookFactory(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; - Spot = new OrderBookFactory( - (symbol, options) => CreateSpot(symbol, options), - (sharedSymbol, options) => CreateSpot(MexcExchange.FormatSymbol(sharedSymbol.BaseAsset, sharedSymbol.QuoteAsset, sharedSymbol.TradingMode, sharedSymbol.DeliverTime), options)); - + Spot = new OrderBookFactory(CreateSpot, Create); } /// public ISymbolOrderBook Create(SharedSymbol symbol, Action? options = null) { - var symbolName = MexcExchange.FormatSymbol(symbol.BaseAsset, symbol.QuoteAsset, symbol.TradingMode, symbol.DeliverTime); + var symbolName = symbol.GetSymbol(MexcExchange.FormatSymbol); return CreateSpot(symbolName, options); }