1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-08 16:36:15 +00:00

Merge pull request #5 from Zaliro/master

Fix typo in "ApiCredentials", improve "TimestampSecondsConverter" & "WriteCustomBody"
This commit is contained in:
Jan Korf 2018-08-03 08:23:44 +02:00 committed by GitHub
commit 5fa735003d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ namespace CryptoExchange.Net.Authentication
/// <param name="privateKey">The private key used for signing</param>
public ApiCredentials(SecureString privateKey)
{
PrivateKey = Key;
PrivateKey = privateKey;
}
/// <summary>

View File

@ -13,7 +13,7 @@ namespace CryptoExchange.Net.Converters
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
{
var t = double.Parse((string)reader.Value, CultureInfo.InvariantCulture);
var t = double.Parse(reader.Value.ToString(), CultureInfo.InvariantCulture);
return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(t);
}