From 1842f4fda0202fb7f64459b97b9560f3b35d5727 Mon Sep 17 00:00:00 2001 From: Jkorf Date: Tue, 22 Oct 2024 10:15:17 +0200 Subject: [PATCH] Set ApiCredentials in the client specific options to prevent unknown client credentials when using SetApiCredentials method on client --- CryptoExchange.Net/Clients/BaseApiClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CryptoExchange.Net/Clients/BaseApiClient.cs b/CryptoExchange.Net/Clients/BaseApiClient.cs index 7d24caa..f47c8fd 100644 --- a/CryptoExchange.Net/Clients/BaseApiClient.cs +++ b/CryptoExchange.Net/Clients/BaseApiClient.cs @@ -88,6 +88,7 @@ namespace CryptoExchange.Net.Clients /// public void SetApiCredentials(T credentials) where T : ApiCredentials { + ApiOptions.ApiCredentials = credentials; if (credentials != null) AuthenticationProvider = CreateAuthenticationProvider(credentials.Copy()); }