From f2d71d382725a7b1606fccc4ceaa04846fa1f2a7 Mon Sep 17 00:00:00 2001 From: JKorf Date: Sun, 8 Dec 2024 10:44:57 +0100 Subject: [PATCH] Updated CryptoExchange.Net to version 8.4.4 to fix deserialization error in .net framework --- CoinEx.Net/CoinEx.Net.csproj | 2 +- CoinEx.Net/Objects/Models/V2/CoinExFuturesOrder.cs | 2 +- CoinEx.Net/Objects/Models/V2/CoinExFuturesPlaceOrderRequest.cs | 2 +- CoinEx.Net/Objects/Models/V2/CoinExOrder.cs | 2 +- CoinEx.Net/Objects/Models/V2/CoinExStopOrder.cs | 2 +- CoinEx.Net/Objects/Models/V2/CoinExStreamOrder.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CoinEx.Net/CoinEx.Net.csproj b/CoinEx.Net/CoinEx.Net.csproj index ee0ce4e..ea15b26 100644 --- a/CoinEx.Net/CoinEx.Net.csproj +++ b/CoinEx.Net/CoinEx.Net.csproj @@ -48,7 +48,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all diff --git a/CoinEx.Net/Objects/Models/V2/CoinExFuturesOrder.cs b/CoinEx.Net/Objects/Models/V2/CoinExFuturesOrder.cs index 0474941..bfd2af1 100644 --- a/CoinEx.Net/Objects/Models/V2/CoinExFuturesOrder.cs +++ b/CoinEx.Net/Objects/Models/V2/CoinExFuturesOrder.cs @@ -64,7 +64,7 @@ public record CoinExFuturesOrder /// Client order id /// [JsonPropertyName("client_id")] - [JsonConverterCtor($"{CoinExExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{CoinExExchange.ClientOrderIdPrefix}->")] public string? ClientOrderId { get; set; } /// /// Fee diff --git a/CoinEx.Net/Objects/Models/V2/CoinExFuturesPlaceOrderRequest.cs b/CoinEx.Net/Objects/Models/V2/CoinExFuturesPlaceOrderRequest.cs index d7853b0..f02a639 100644 --- a/CoinEx.Net/Objects/Models/V2/CoinExFuturesPlaceOrderRequest.cs +++ b/CoinEx.Net/Objects/Models/V2/CoinExFuturesPlaceOrderRequest.cs @@ -46,7 +46,7 @@ public record CoinExFuturesPlaceOrderRequest /// The client order id /// [JsonPropertyName("client_id"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] - [JsonConverterCtor($"{CoinExExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{CoinExExchange.ClientOrderIdPrefix}->")] public string? ClientOrderId { get; set; } /// /// Whether to hide the order diff --git a/CoinEx.Net/Objects/Models/V2/CoinExOrder.cs b/CoinEx.Net/Objects/Models/V2/CoinExOrder.cs index 94f18d3..7bb114a 100644 --- a/CoinEx.Net/Objects/Models/V2/CoinExOrder.cs +++ b/CoinEx.Net/Objects/Models/V2/CoinExOrder.cs @@ -69,7 +69,7 @@ public record CoinExOrder /// Client order id /// [JsonPropertyName("client_id")] - [JsonConverterCtor($"{CoinExExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{CoinExExchange.ClientOrderIdPrefix}->")] public string? ClientOrderId { get; set; } /// /// Fee in base asset diff --git a/CoinEx.Net/Objects/Models/V2/CoinExStopOrder.cs b/CoinEx.Net/Objects/Models/V2/CoinExStopOrder.cs index af4af7f..60ac2b9 100644 --- a/CoinEx.Net/Objects/Models/V2/CoinExStopOrder.cs +++ b/CoinEx.Net/Objects/Models/V2/CoinExStopOrder.cs @@ -54,7 +54,7 @@ public record CoinExStopOrder /// Client order id /// [JsonPropertyName("client_id")] - [JsonConverterCtor($"{CoinExExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{CoinExExchange.ClientOrderIdPrefix}->")] public string? ClientOrderId { get; set; } /// /// Timestamp order was created diff --git a/CoinEx.Net/Objects/Models/V2/CoinExStreamOrder.cs b/CoinEx.Net/Objects/Models/V2/CoinExStreamOrder.cs index 79f90d4..596e453 100644 --- a/CoinEx.Net/Objects/Models/V2/CoinExStreamOrder.cs +++ b/CoinEx.Net/Objects/Models/V2/CoinExStreamOrder.cs @@ -59,7 +59,7 @@ public record CoinExStreamOrder /// Client order id /// [JsonPropertyName("client_id")] - [JsonConverterCtor($"{CoinExExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{CoinExExchange.ClientOrderIdPrefix}->")] public string? ClientOrderId { get; set; } /// /// Fee in base asset