burakoner/OKEx.Net

OkexAccountPositionRiskPositionData.MarginMode owned a wrong json property name.

Tendx opened this issue · 1 comments

Tendx commented
    public class OkexAccountPositionRiskPositionData
    {
        [JsonProperty("ccy")]
        public string Currency { get; set; }

        [JsonProperty("instId")]
        public string Instrument { get; set; }

        [JsonProperty("instType"), JsonConverter(typeof(InstrumentTypeConverter))]
        public OkexInstrumentType InstrumentType { get; set; }

        [JsonProperty("instType"), JsonConverter(typeof(MarginModeConverter))]
        public OkexMarginMode MarginMode { get; set; }

        [JsonProperty("notionalCcy")]
        public decimal? NotionalCcy { get; set; }

        [JsonProperty("notionalUsd")]
        public decimal? NotionalUsd { get; set; }

        [JsonProperty("pos")]
        public decimal? Quantity { get; set; }

        [JsonProperty("posCcy")]
        public string PositionCurrency { get; set; }

        [JsonProperty("posId")]
        public long PositionId { get; set; }

        [JsonProperty("posSide"), JsonConverter(typeof(PositionSideConverter))]
        public OkexPositionSide PositionSide { get; set; }
    }

MarginMode got a wrong JsonPropertyAttribute named "instType" which should be "mgnMode".

Thank you for feedback. I'm fixing it now