All Downloads are FREE. Search and download functionalities are using the official Maven repository.

estonlabs.cxtl.exchanges.mexc.spot.v3.domain.AccountUpdate Maven / Gradle / Ivy

There is a newer version: 1.4.14
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy