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 063a417 commit 7eba3dc
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion OKX.Net/OKX.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,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 OKX.Net/Objects/Account/OKXAccountBill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public record OKXAccountBill
/// Client order id
/// </summary>
[JsonPropertyName("clOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions OKX.Net/Objects/Trade/OKXAlgoOrder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public record OKXAlgoOrder
/// Client order id
/// </summary>
[JsonPropertyName("clOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }

/// <summary>
Expand Down Expand Up @@ -279,7 +279,7 @@ public record OKXAlgoOrder
/// Client algo order id
/// </summary>
[JsonPropertyName("algoClOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? AlgoClientOrderId { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion OKX.Net/Objects/Trade/OKXAlgoOrderAmendResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public record OKXAlgoOrderAmendResponse
/// Client order id
/// </summary>
[JsonPropertyName("algoClOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions OKX.Net/Objects/Trade/OKXAlgoOrderResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ public record OKXAlgoOrderResponse
/// Client order id
/// </summary>
[JsonPropertyName("clOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }

/// <summary>
/// Algo client order id
/// </summary>
[JsonPropertyName("algoClOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? AgloClientOrderId { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion OKX.Net/Objects/Trade/OKXClosePositionResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public record OKXClosePositionResponse
/// Client order id
/// </summary>
[JsonPropertyName("clOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions OKX.Net/Objects/Trade/OKXOrder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public record OKXOrder
/// Client order id
/// </summary>
[JsonPropertyName("clOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }

/// <summary>
Expand Down Expand Up @@ -216,7 +216,7 @@ public record OKXOrder
/// Client-supplied Algo ID when placing order attaching TP/SL.
/// </summary>
[JsonPropertyName("attachAlgoClOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? AttachAlgoCllientOrderId { get; set; }

/// <summary>
Expand Down Expand Up @@ -268,7 +268,7 @@ public record OKXOrder
/// Client algo order id
/// </summary>
[JsonPropertyName("algoClOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? AlgoClientOrderId { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion OKX.Net/Objects/Trade/OKXOrderAmendResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public record OKXOrderAmendResponse
/// Client order id
/// </summary>
[JsonPropertyName("clOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion OKX.Net/Objects/Trade/OKXOrderCancelResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public record OKXOrderCancelResponse
/// Client order id
/// </summary>
[JsonPropertyName("clOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string ClientOrderId { get; set; } = string.Empty;

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion OKX.Net/Objects/Trade/OKXOrderPlaceResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public record OKXOrderPlaceResponse
/// Client order id
/// </summary>
[JsonPropertyName("clOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion OKX.Net/Objects/Trade/OKXTransaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public record OKXTransaction
/// Client order id
/// </summary>
[JsonPropertyName("clOrdId")]
[JsonConverterCtor<ReplaceConverter>($"{OKXExchange.ClientOrderIdPrefix}->")]
[JsonConverterCtor(typeof(ReplaceConverter), $"{OKXExchange.ClientOrderIdPrefix}->")]
public string? ClientOrderId { get; set; }

/// <summary>
Expand Down

0 comments on commit 7eba3dc

Please sign in to comment.