diff --git a/CryptoExchange.Net/Clients/BaseApiClient.cs b/CryptoExchange.Net/Clients/BaseApiClient.cs index 9046faa..7d24caa 100644 --- a/CryptoExchange.Net/Clients/BaseApiClient.cs +++ b/CryptoExchange.Net/Clients/BaseApiClient.cs @@ -38,6 +38,11 @@ namespace CryptoExchange.Net.Clients /// public bool OutputOriginalData { get; } + /// + /// Whether or not API credentials have been configured for this client. Does not check the credentials are actually valid. + /// + public bool Authenticated => ApiOptions.ApiCredentials != null || ClientOptions.ApiCredentials != null; + /// /// Api options /// diff --git a/CryptoExchange.Net/SharedApis/Interfaces/ISharedClient.cs b/CryptoExchange.Net/SharedApis/Interfaces/ISharedClient.cs index 73bf105..eca53e9 100644 --- a/CryptoExchange.Net/SharedApis/Interfaces/ISharedClient.cs +++ b/CryptoExchange.Net/SharedApis/Interfaces/ISharedClient.cs @@ -18,6 +18,11 @@ namespace CryptoExchange.Net.SharedApis /// TradingMode[] SupportedTradingModes { get; } + /// + /// Whether or not API credentials have been configured for this client. Does not check the credentials are actually valid. + /// + bool Authenticated { get; } + /// /// Format a base and quote asset to an exchange accepted symbol ///