From 3dad28b19dc85456dd9180bfdf049a30c5b04546 Mon Sep 17 00:00:00 2001 From: Jkorf Date: Tue, 7 Jan 2025 08:59:51 +0100 Subject: [PATCH] Added IFeeRestClient to service registration --- CryptoExchange.Net/ExtensionMethods.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CryptoExchange.Net/ExtensionMethods.cs b/CryptoExchange.Net/ExtensionMethods.cs index 363959c..41b4473 100644 --- a/CryptoExchange.Net/ExtensionMethods.cs +++ b/CryptoExchange.Net/ExtensionMethods.cs @@ -435,6 +435,8 @@ namespace CryptoExchange.Net services.AddTransient(x => (IWithdrawalRestClient)client(x)!); if (typeof(IWithdrawRestClient).IsAssignableFrom(typeof(T))) services.AddTransient(x => (IWithdrawRestClient)client(x)!); + if (typeof(IFeeRestClient).IsAssignableFrom(typeof(T))) + services.AddTransient(x => (IFeeRestClient)client(x)!); if (typeof(ISpotOrderRestClient).IsAssignableFrom(typeof(T))) services.AddTransient(x => (ISpotOrderRestClient)client(x)!);