From 0b9f25e96ec952c46d5976ec0de9a7472d77959f Mon Sep 17 00:00:00 2001 From: JKorf Date: Sun, 8 Dec 2024 10:46:26 +0100 Subject: [PATCH] Updated CryptoExchange.Net to version 8.4.4 to fix deserialization error in .net framework --- HTX.Net/HTX.Net.csproj | 2 +- HTX.Net/Objects/Models/HTXBatchCancelResult.cs | 2 +- HTX.Net/Objects/Models/HTXBatchPlaceResult.cs | 2 +- HTX.Net/Objects/Models/HTXConditionalOrder.cs | 2 +- HTX.Net/Objects/Models/HTXOpenOrder.cs | 2 +- HTX.Net/Objects/Models/HTXOrder.cs | 2 +- HTX.Net/Objects/Models/HTXPlacedConditionalOrder.cs | 2 +- HTX.Net/Objects/Models/Socket/HTXOrderCancelationUpdate.cs | 2 +- HTX.Net/Objects/Models/Socket/HTXOrderUpdate.cs | 2 +- HTX.Net/Objects/Models/Socket/HTXTradeUpdate.cs | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/HTX.Net/HTX.Net.csproj b/HTX.Net/HTX.Net.csproj index a2e6b8b..3d04354 100644 --- a/HTX.Net/HTX.Net.csproj +++ b/HTX.Net/HTX.Net.csproj @@ -48,7 +48,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/HTX.Net/Objects/Models/HTXBatchCancelResult.cs b/HTX.Net/Objects/Models/HTXBatchCancelResult.cs index 70ebe5d..75c1cc2 100644 --- a/HTX.Net/Objects/Models/HTXBatchCancelResult.cs +++ b/HTX.Net/Objects/Models/HTXBatchCancelResult.cs @@ -46,7 +46,7 @@ public record HTXFailedCancelResult /// The id of the failed order /// [JsonPropertyName("client-order-id")] - [JsonConverterCtor($"{HTXExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")] public string? ClientOrderId { get; set; } } } diff --git a/HTX.Net/Objects/Models/HTXBatchPlaceResult.cs b/HTX.Net/Objects/Models/HTXBatchPlaceResult.cs index c85581d..77cec02 100644 --- a/HTX.Net/Objects/Models/HTXBatchPlaceResult.cs +++ b/HTX.Net/Objects/Models/HTXBatchPlaceResult.cs @@ -14,7 +14,7 @@ public record HTXBatchPlaceResult /// Client order id /// [JsonPropertyName("client-order-id")] - [JsonConverterCtor($"{HTXExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")] public string? ClientOrderId { get; set; } /// /// Whether the placement was successful diff --git a/HTX.Net/Objects/Models/HTXConditionalOrder.cs b/HTX.Net/Objects/Models/HTXConditionalOrder.cs index de61446..771c827 100644 --- a/HTX.Net/Objects/Models/HTXConditionalOrder.cs +++ b/HTX.Net/Objects/Models/HTXConditionalOrder.cs @@ -26,7 +26,7 @@ public record HTXConditionalOrder /// Client order id /// [JsonPropertyName("clientOrderId")] - [JsonConverterCtor($"{HTXExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")] public string ClientOrderId { get; set; } = string.Empty; /// /// Symbol diff --git a/HTX.Net/Objects/Models/HTXOpenOrder.cs b/HTX.Net/Objects/Models/HTXOpenOrder.cs index 8a61db8..9f1d229 100644 --- a/HTX.Net/Objects/Models/HTXOpenOrder.cs +++ b/HTX.Net/Objects/Models/HTXOpenOrder.cs @@ -18,7 +18,7 @@ public record HTXOpenOrder /// The order id as specified by the client /// [JsonPropertyName("client-order-id")] - [JsonConverterCtor($"{HTXExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")] public string? ClientOrderId { get; set; } /// diff --git a/HTX.Net/Objects/Models/HTXOrder.cs b/HTX.Net/Objects/Models/HTXOrder.cs index c7889c7..d312c75 100644 --- a/HTX.Net/Objects/Models/HTXOrder.cs +++ b/HTX.Net/Objects/Models/HTXOrder.cs @@ -17,7 +17,7 @@ public record HTXOrder /// The order id as specified by the client /// [JsonPropertyName("client-order-id")] - [JsonConverterCtor($"{HTXExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")] public string ClientOrderId { get; set; } = string.Empty; /// diff --git a/HTX.Net/Objects/Models/HTXPlacedConditionalOrder.cs b/HTX.Net/Objects/Models/HTXPlacedConditionalOrder.cs index 7ff5f8e..9aff6f2 100644 --- a/HTX.Net/Objects/Models/HTXPlacedConditionalOrder.cs +++ b/HTX.Net/Objects/Models/HTXPlacedConditionalOrder.cs @@ -9,7 +9,7 @@ public record HTXPlacedConditionalOrder /// The id /// [JsonPropertyName("clientOrderId")] - [JsonConverterCtor($"{HTXExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")] public string ClientOrderId { get; set; } = string.Empty; } } diff --git a/HTX.Net/Objects/Models/Socket/HTXOrderCancelationUpdate.cs b/HTX.Net/Objects/Models/Socket/HTXOrderCancelationUpdate.cs index 95d2148..426c7f6 100644 --- a/HTX.Net/Objects/Models/Socket/HTXOrderCancelationUpdate.cs +++ b/HTX.Net/Objects/Models/Socket/HTXOrderCancelationUpdate.cs @@ -59,7 +59,7 @@ public record HTXOrderCancelationUpdate /// Client order id /// [JsonPropertyName("clientOrderId")] - [JsonConverterCtor($"{HTXExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")] public string? ClientOrderId { get; set; } /// /// Stop price diff --git a/HTX.Net/Objects/Models/Socket/HTXOrderUpdate.cs b/HTX.Net/Objects/Models/Socket/HTXOrderUpdate.cs index 711769d..7978821 100644 --- a/HTX.Net/Objects/Models/Socket/HTXOrderUpdate.cs +++ b/HTX.Net/Objects/Models/Socket/HTXOrderUpdate.cs @@ -23,7 +23,7 @@ public record HTXOrderUpdate /// Client order id /// [JsonPropertyName("clientOrderId")] - [JsonConverterCtor($"{HTXExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")] public string? ClientOrderId { get; set; } /// /// Order status diff --git a/HTX.Net/Objects/Models/Socket/HTXTradeUpdate.cs b/HTX.Net/Objects/Models/Socket/HTXTradeUpdate.cs index 2118df8..00618df 100644 --- a/HTX.Net/Objects/Models/Socket/HTXTradeUpdate.cs +++ b/HTX.Net/Objects/Models/Socket/HTXTradeUpdate.cs @@ -106,7 +106,7 @@ public record HTXTradeUpdate /// Client order id /// [JsonPropertyName("clientOrderId")] - [JsonConverterCtor($"{HTXExchange.ClientOrderIdPrefix}->")] + [JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")] public string? ClientOrderId { get; set; } /// /// Stop price