estonlabs.cxtl.exchanges.gateio.api.v4.domain.FuturesWSOrder Maven / Gradle / Ivy
package estonlabs.cxtl.exchanges.gateio.api.v4.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import estonlabs.cxtl.exchanges.gateio.api.v4.domain.enums.*;
import estonlabs.cxtl.exchanges.gateio.api.v4.domain.enums.deserializers.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import java.util.List;
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class FuturesWSOrder extends StreamMessage> {
@Override
public MessageType getMessageType() {
return MessageType.DATA;
}
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public static class FuturesOrderResult {
@JsonProperty("create_time_ms")
private Long createTimeMs;
@JsonProperty("fill_price")
private Float fillPrice;
@JsonDeserialize(using = OrderCompletionStatusDeserializer.class)
@JsonProperty("finish_as")
private OrderCompletionStatus finishAs;
@JsonProperty("iceberg")
private Long iceberg;
@JsonProperty("id")
private Long id;
@JsonProperty("is_close")
private Boolean isClose;
@JsonProperty("is_liq")
private Boolean isLiq;
@JsonProperty("left")
private Long left;
@JsonProperty("mkfr")
private Float makerFee;
@JsonProperty("is_reduce_only")
private Boolean isReduceOnly;
@JsonDeserialize(using = FuturesOrderStatusDeserializer.class)
@JsonProperty("status")
private FuturesOrderStatus status;
@JsonProperty("tkfr")
private Float takerFee;
@JsonProperty("price")
private Float price;
@JsonProperty("refu")
private Long refUserId;
@JsonProperty("refr")
private Float refr;
@JsonProperty("size")
private Long size;
@JsonProperty("text")
private String text;
@JsonDeserialize(using = TimeInForceDeserializer.class)
@JsonProperty("tif")
private TimeInForce tif;
@JsonProperty("finish_time_ms")
private Long finishTimeMs;
@JsonProperty("user")
private String userId;
@JsonProperty("contract")
private String contract;
@JsonProperty("stp_id")
private String stpId;
@JsonProperty("stp_act")
private StpAct stpAction;
@JsonProperty("amend_text")
private String amendText;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy