// Path: src/main/java/com/github/sbouclier/result/common/OrderDirection.java
// public enum OrderDirection {
// 
//     BUY("buy"),
//     SELL("sell");
// 
//     private String value;
// 
//     OrderDirection(String value) {
//         this.value = value;
//     }
// 
//     @JsonValue
//     public String getValue() {
//         return value;
//     }
// }
// 
// Path: src/main/java/com/github/sbouclier/result/common/OrderType.java
// public enum OrderType {
//     MARKET("market"),
//     LIMIT("limit"),
//     STOP_LOSS("stop-loss"),
//     TAKE_PROFIT("take-profit"),
//     STOP_LOSS_PROFIT("stop-loss-profit"),
//     STOP_LOSS_PROFIT_LIMIT("stop-loss-profit-limit"),
//     STOP_LOSS_LIMIT("stop-loss-limit"),
//     TAKE_PROFIT_LIMIT("take-profit-limit"),
//     TRAILING_STOP("trailing-stop"),
//     TRAILING_STOP_LIMIT("trailing-stop-limit"),
//     STOP_LOSS_AND_LIMIT("stop-loss-and-limit"),
//     SETTLE_POSITION("settle-position");
// 
//     private String value;
// 
//     OrderType(String value) {
//         this.value = value;
//     }
// 
//     @JsonValue
//     public String getValue() {
//         return value;
//     }
// }


import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.github.sbouclier.result.common.OrderDirection;
import com.github.sbouclier.result.common.OrderType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Map;
        @JsonProperty("expiretm")
        public Long orderEndTimestamp;

        @JsonProperty("descr")
        public Description description;

        @JsonProperty("vol")
        public BigDecimal volumeOrder;

        @JsonProperty("vol_exec")
        public BigDecimal volumeExecuted;

        public BigDecimal cost;

        public BigDecimal fee;

        @JsonProperty("price")
        public BigDecimal averagePrice;

        @JsonProperty("stopprice")
        public BigDecimal stopPrice;

        @JsonProperty("misc")
        public String miscellaneous;

        @JsonProperty("oflags")
        public String orderFlags;

        public String reason;

// Path: src/main/java/com/github/sbouclier/result/common/OrderDirection.java
// public enum OrderDirection {
// 
//     BUY("buy"),
//     SELL("sell");
// 
//     private String value;
// 
//     OrderDirection(String value) {
//         this.value = value;
//     }
// 
//     @JsonValue
//     public String getValue() {
//         return value;
//     }
// }
// 
// Path: src/main/java/com/github/sbouclier/result/common/OrderType.java
// public enum OrderType {
//     MARKET("market"),
//     LIMIT("limit"),
//     STOP_LOSS("stop-loss"),
//     TAKE_PROFIT("take-profit"),
//     STOP_LOSS_PROFIT("stop-loss-profit"),
//     STOP_LOSS_PROFIT_LIMIT("stop-loss-profit-limit"),
//     STOP_LOSS_LIMIT("stop-loss-limit"),
//     TAKE_PROFIT_LIMIT("take-profit-limit"),
//     TRAILING_STOP("trailing-stop"),
//     TRAILING_STOP_LIMIT("trailing-stop-limit"),
//     STOP_LOSS_AND_LIMIT("stop-loss-and-limit"),
//     SETTLE_POSITION("settle-position");
// 
//     private String value;
// 
//     OrderType(String value) {
//         this.value = value;
//     }
// 
//     @JsonValue
//     public String getValue() {
//         return value;
//     }
// }


// Path: src/main/java/com/github/sbouclier/result/ClosedOrdersResult.java
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.github.sbouclier.result.common.OrderDirection;
import com.github.sbouclier.result.common.OrderType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Map;

        @JsonProperty("expiretm")
        public Long orderEndTimestamp;

        @JsonProperty("descr")
        public Description description;

        @JsonProperty("vol")
        public BigDecimal volumeOrder;

        @JsonProperty("vol_exec")
        public BigDecimal volumeExecuted;

        public BigDecimal cost;

        public BigDecimal fee;

        @JsonProperty("price")
        public BigDecimal averagePrice;

        @JsonProperty("stopprice")
        public BigDecimal stopPrice;

        @JsonProperty("misc")
        public String miscellaneous;

        @JsonProperty("oflags")
        public String orderFlags;

        public String reason;

        @JsonProperty("closetm")