estonlabs.cxtl.exchanges.mexc.spot.v3.domain.AccountUpdate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cxtl Show documentation
Show all versions of cxtl Show documentation
CXTL – Crypto eXchange Trading Library
package estonlabs.cxtl.exchanges.mexc.spot.v3.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import estonlabs.cxtl.common.stream.managed.InboundMessage;
import estonlabs.cxtl.exchanges.mexc.spot.v3.domain.enums.ChangedType;
import lombok.Data;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AccountUpdate implements InboundMessage {
@JsonProperty("c")
private String channel;
@JsonProperty("d")
private AccountUpdateInfo accountUpdates;
@JsonProperty("t")
private long eventTime;
@Override
public MessageType getMessageType() {
return MessageType.DATA;
}
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public static class AccountUpdateInfo {
@JsonProperty("a")
private String asset;
@JsonProperty("c")
private long changeTime;
@JsonProperty("f")
private String freeBalance;
@JsonProperty("fd")
private String freeChangedAmount;
@JsonProperty("l")
private String frozenAmount;
@JsonProperty("ld")
private String frozenChangedAmount;
@JsonProperty("o")
private ChangedType changedType;
}
}