diff --git a/CryptoExchange.Net/ExtensionMethods.cs b/CryptoExchange.Net/ExtensionMethods.cs index f1a7b44..dbe6cf9 100644 --- a/CryptoExchange.Net/ExtensionMethods.cs +++ b/CryptoExchange.Net/ExtensionMethods.cs @@ -498,8 +498,8 @@ namespace CryptoExchange.Net services.AddTransient(x => (IBookTickerSocketClient)client(x)!); if (typeof(IKlineSocketClient).IsAssignableFrom(typeof(T))) services.AddTransient(x => (IKlineSocketClient)client(x)!); - if (typeof(IOrderBookRestClient).IsAssignableFrom(typeof(T))) - services.AddTransient(x => (IOrderBookRestClient)client(x)!); + if (typeof(IOrderBookSocketClient).IsAssignableFrom(typeof(T))) + services.AddTransient(x => (IOrderBookSocketClient)client(x)!); if (typeof(ITickerSocketClient).IsAssignableFrom(typeof(T))) services.AddTransient(x => (ITickerSocketClient)client(x)!); if (typeof(ITickersSocketClient).IsAssignableFrom(typeof(T)))