From 703fda336731eca756383bef97a185347d1a42bc Mon Sep 17 00:00:00 2001 From: JKorf Date: Sun, 18 Aug 2024 20:03:07 +0200 Subject: [PATCH] Fix deserialization canceled-source field --- HTX.Net/Objects/Models/HTXOrder.cs | 2 +- HTX.Net/Objects/Models/Socket/HTXUsdtMarginSwapOrderUpdate.cs | 2 +- HTX.Net/Objects/Models/UsdtMarginSwap/HTXIsolatedMarginOrder.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HTX.Net/Objects/Models/HTXOrder.cs b/HTX.Net/Objects/Models/HTXOrder.cs index 4c8734bf..550c931c 100644 --- a/HTX.Net/Objects/Models/HTXOrder.cs +++ b/HTX.Net/Objects/Models/HTXOrder.cs @@ -108,7 +108,7 @@ public record HTXOrder /// /// Source of cancelation /// - [JsonPropertyName("canceled-source")] + [JsonPropertyName("canceled-source"), JsonConverter(typeof(NumberStringConverter))] public string? CancelSource { get; set; } } } diff --git a/HTX.Net/Objects/Models/Socket/HTXUsdtMarginSwapOrderUpdate.cs b/HTX.Net/Objects/Models/Socket/HTXUsdtMarginSwapOrderUpdate.cs index 3c5efdd6..db3cd943 100644 --- a/HTX.Net/Objects/Models/Socket/HTXUsdtMarginSwapOrderUpdate.cs +++ b/HTX.Net/Objects/Models/Socket/HTXUsdtMarginSwapOrderUpdate.cs @@ -171,7 +171,7 @@ public record HTXUsdtMarginSwapOrderUpdate : HTXOpMessage /// /// Canceled source /// - [JsonPropertyName("canceled_source")] + [JsonPropertyName("canceled_source"), JsonConverter(typeof(NumberStringConverter))] public string? CanceledSource { get; set; } /// /// Trade info diff --git a/HTX.Net/Objects/Models/UsdtMarginSwap/HTXIsolatedMarginOrder.cs b/HTX.Net/Objects/Models/UsdtMarginSwap/HTXIsolatedMarginOrder.cs index 8d622519..ed9b6b26 100644 --- a/HTX.Net/Objects/Models/UsdtMarginSwap/HTXIsolatedMarginOrder.cs +++ b/HTX.Net/Objects/Models/UsdtMarginSwap/HTXIsolatedMarginOrder.cs @@ -184,7 +184,7 @@ internal DateTime CreateTimeInt /// /// Cancel source /// - [JsonPropertyName("canceled_source")] + [JsonPropertyName("canceled_source"), JsonConverter(typeof(NumberStringConverter))] public string? CancelSource { get; set; } /// /// Update time