Skip to content

Commit

Permalink
Fix for Symbol deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Sep 30, 2023
1 parent 3bfb493 commit 4dea2c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions OKX.Net/Converters/InstrumentStateConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ public InstrumentStateConverter(bool quotes) : base(quotes) { }
new KeyValuePair<OKXInstrumentState, string>(OKXInstrumentState.Live, "live"),
new KeyValuePair<OKXInstrumentState, string>(OKXInstrumentState.Suspend, "suspend"),
new KeyValuePair<OKXInstrumentState, string>(OKXInstrumentState.PreOpen, "preopen"),
new KeyValuePair<OKXInstrumentState, string>(OKXInstrumentState.Test, "test"),
};
}
1 change: 1 addition & 0 deletions OKX.Net/Enums/OKXInstrumentState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ public enum OKXInstrumentState
Live,
Suspend,
PreOpen,
Test,
}
12 changes: 6 additions & 6 deletions OKX.Net/Objects/Public/OKXInstrument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,30 +144,30 @@ public class OKXInstrument
/// The maximum order quantity of the contract or spot limit order.
/// </summary>
[JsonProperty("maxLmtSz")]
public decimal MaxLimitQuantity { get; set; }
public decimal? MaxLimitQuantity { get; set; }
/// <summary>
/// The maximum order quantity of the contract or spot market order.
/// </summary>
[JsonProperty("maxMktSz")]
public decimal MaxMarketQuantity { get; set; }
public decimal? MaxMarketQuantity { get; set; }
/// <summary>
/// The maximum order quantity of the contract or spot twap order.
/// </summary>
[JsonProperty("maxTwapSz")]
public decimal MaxTwapQuantity { get; set; }
public decimal? MaxTwapQuantity { get; set; }
/// <summary>
/// The maximum order quantity of the contract or spot iceBerg order.
/// </summary>
[JsonProperty("maxIcebergSz")]
public decimal MaxIcebergQuantity { get; set; }
public decimal? MaxIcebergQuantity { get; set; }
/// <summary>
/// The maximum order quantity of the contract or spot trigger order.
/// </summary>
[JsonProperty("maxTriggerSz")]
public decimal MaxTriggerQuantity { get; set; }
public decimal? MaxTriggerQuantity { get; set; }
/// <summary>
/// The maximum order quantity of the contract or spot stop market order.
/// </summary>
[JsonProperty("maxStopSz")]
public decimal MaxStopQuantity { get; set; }
public decimal? MaxStopQuantity { get; set; }
}

0 comments on commit 4dea2c5

Please sign in to comment.