Skip to content

Commit

Permalink
Updated CryptoExchange.Net to version 8.4.4 to fix deserialization er…
Browse files Browse the repository at this point in the history
…ror in .net framework
  • Loading branch information
JKorf committed Dec 8, 2024
1 parent dfac806 commit 0b9f25e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion HTX.Net/HTX.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="CryptoExchange.Net" Version="8.4.3" />
<PackageReference Include="CryptoExchange.Net" Version="8.4.4" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/Objects/Models/HTXBatchCancelResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public record HTXFailedCancelResult
/// The id of the failed order
/// </summary>
[JsonPropertyName("client-order-id")]
[JsonConverterCtor<ReplaceConverter>($"{HTXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }
}
}
2 changes: 1 addition & 1 deletion HTX.Net/Objects/Models/HTXBatchPlaceResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public record HTXBatchPlaceResult
/// Client order id
/// </summary>
[JsonPropertyName("client-order-id")]
[JsonConverterCtor<ReplaceConverter>($"{HTXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }
/// <summary>
/// Whether the placement was successful
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/Objects/Models/HTXConditionalOrder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public record HTXConditionalOrder
/// Client order id
/// </summary>
[JsonPropertyName("clientOrderId")]
[JsonConverterCtor<ReplaceConverter>($"{HTXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")]
public string ClientOrderId { get; set; } = string.Empty;
/// <summary>
/// Symbol
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/Objects/Models/HTXOpenOrder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public record HTXOpenOrder
/// The order id as specified by the client
/// </summary>
[JsonPropertyName("client-order-id")]
[JsonConverterCtor<ReplaceConverter>($"{HTXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/Objects/Models/HTXOrder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public record HTXOrder
/// The order id as specified by the client
/// </summary>
[JsonPropertyName("client-order-id")]
[JsonConverterCtor<ReplaceConverter>($"{HTXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")]
public string ClientOrderId { get; set; } = string.Empty;

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/Objects/Models/HTXPlacedConditionalOrder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public record HTXPlacedConditionalOrder
/// The id
/// </summary>
[JsonPropertyName("clientOrderId")]
[JsonConverterCtor<ReplaceConverter>($"{HTXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")]
public string ClientOrderId { get; set; } = string.Empty;
}
}
2 changes: 1 addition & 1 deletion HTX.Net/Objects/Models/Socket/HTXOrderCancelationUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public record HTXOrderCancelationUpdate
/// Client order id
/// </summary>
[JsonPropertyName("clientOrderId")]
[JsonConverterCtor<ReplaceConverter>($"{HTXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }
/// <summary>
/// Stop price
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/Objects/Models/Socket/HTXOrderUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public record HTXOrderUpdate
/// Client order id
/// </summary>
[JsonPropertyName("clientOrderId")]
[JsonConverterCtor<ReplaceConverter>($"{HTXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }
/// <summary>
/// Order status
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/Objects/Models/Socket/HTXTradeUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public record HTXTradeUpdate
/// Client order id
/// </summary>
[JsonPropertyName("clientOrderId")]
[JsonConverterCtor<ReplaceConverter>($"{HTXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{HTXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }
/// <summary>
/// Stop price
Expand Down

0 comments on commit 0b9f25e

Please sign in to comment.