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 d15b76d commit 35a710f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Coinbase.Net/SymbolOrderBooks/CoinbaseOrderBookFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ public CoinbaseOrderBookFactory(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;

AdvancedTrade = new OrderBookFactory<CoinbaseOrderBookOptions>(
Create,
(sharedSymbol, options) => Create(CoinbaseExchange.FormatSymbol(sharedSymbol.BaseAsset, sharedSymbol.QuoteAsset, sharedSymbol.TradingMode, sharedSymbol.DeliverTime), options));
AdvancedTrade = new OrderBookFactory<CoinbaseOrderBookOptions>(Create, Create);
}

/// <inheritdoc />
Expand All @@ -36,7 +34,7 @@ public CoinbaseOrderBookFactory(IServiceProvider serviceProvider)
/// <inheritdoc />
public ISymbolOrderBook Create(SharedSymbol symbol, Action<CoinbaseOrderBookOptions>? options = null)
{
var symbolName = CoinbaseExchange.FormatSymbol(symbol.BaseAsset, symbol.QuoteAsset, symbol.TradingMode, symbol.DeliverTime);
var symbolName = symbol.GetSymbol(CoinbaseExchange.FormatSymbol);
return Create(symbolName, options);
}

Expand Down

0 comments on commit 35a710f

Please sign in to comment.