Skip to content

Commit

Permalink
Fix deserialization canceled-source field
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Aug 18, 2024
1 parent 3eea5d5 commit 703fda3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HTX.Net/Objects/Models/HTXOrder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public record HTXOrder
/// <summary>
/// Source of cancelation
/// </summary>
[JsonPropertyName("canceled-source")]
[JsonPropertyName("canceled-source"), JsonConverter(typeof(NumberStringConverter))]
public string? CancelSource { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public record HTXUsdtMarginSwapOrderUpdate : HTXOpMessage
/// <summary>
/// Canceled source
/// </summary>
[JsonPropertyName("canceled_source")]
[JsonPropertyName("canceled_source"), JsonConverter(typeof(NumberStringConverter))]
public string? CanceledSource { get; set; }
/// <summary>
/// Trade info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ internal DateTime CreateTimeInt
/// <summary>
/// Cancel source
/// </summary>
[JsonPropertyName("canceled_source")]
[JsonPropertyName("canceled_source"), JsonConverter(typeof(NumberStringConverter))]
public string? CancelSource { get; set; }
/// <summary>
/// Update time
Expand Down

0 comments on commit 703fda3

Please sign in to comment.