1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-11 16:32:57 +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
2 changed files with 2 additions and 2 deletions
@@ -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>
@@ -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);
}