diff --git a/CryptoExchange.Net/Authentication/ApiCredentials.cs b/CryptoExchange.Net/Authentication/ApiCredentials.cs index eb7fb50..4c2b899 100644 --- a/CryptoExchange.Net/Authentication/ApiCredentials.cs +++ b/CryptoExchange.Net/Authentication/ApiCredentials.cs @@ -11,12 +11,12 @@ namespace CryptoExchange.Net.Authentication public class ApiCredentials { /// - /// The api key to authenticate requests + /// The api key / label to authenticate requests /// public string Key { get; } /// - /// The api secret to authenticate requests + /// The api secret or private key to authenticate requests /// public string Secret { get; } @@ -28,8 +28,8 @@ namespace CryptoExchange.Net.Authentication /// /// Create Api credentials providing an api key and secret for authentication /// - /// The api key used for identification - /// The api secret used for signing + /// The api key / label used for identification + /// The api secret or private key used for signing public ApiCredentials(string key, string secret) : this(key, secret, ApiCredentialsType.Hmac) { } @@ -37,8 +37,8 @@ namespace CryptoExchange.Net.Authentication /// /// Create Api credentials providing an api key and secret for authentication /// - /// The api key used for identification - /// The api secret used for signing + /// The api key / label used for identification + /// The api secret or private key used for signing /// The type of credentials public ApiCredentials(string key, string secret, ApiCredentialsType credentialsType) { diff --git a/CryptoExchange.Net/Testing/Comparers/SystemTextJsonComparer.cs b/CryptoExchange.Net/Testing/Comparers/SystemTextJsonComparer.cs index bdc29b1..12c603c 100644 --- a/CryptoExchange.Net/Testing/Comparers/SystemTextJsonComparer.cs +++ b/CryptoExchange.Net/Testing/Comparers/SystemTextJsonComparer.cs @@ -188,7 +188,7 @@ namespace CryptoExchange.Net.Testing.Comparers { if (propertyValue == default && propValue.Type != JTokenType.Null && !string.IsNullOrEmpty(propValue.ToString())) { - if (propertyType == typeof(DateTime?) && (propValue.ToString() == "" || propValue.ToString() == "0" || propValue.ToString() == "-1")) + if (propertyType == typeof(DateTime?) && (propValue.ToString() == "" || propValue.ToString() == "0" || propValue.ToString() == "-1" || propValue.ToString() == "01/01/0001 00:00:00")) return; // Property value not correct