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:
commit
5fa735003d
@ -26,7 +26,7 @@ namespace CryptoExchange.Net.Authentication
|
|||||||
/// <param name="privateKey">The private key used for signing</param>
|
/// <param name="privateKey">The private key used for signing</param>
|
||||||
public ApiCredentials(SecureString privateKey)
|
public ApiCredentials(SecureString privateKey)
|
||||||
{
|
{
|
||||||
PrivateKey = Key;
|
PrivateKey = privateKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -13,7 +13,7 @@ namespace CryptoExchange.Net.Converters
|
|||||||
|
|
||||||
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
|
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);
|
return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user