package com.market.model.binance;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 币安 aggTrade 实时成交消息
 */
@Data
public class AggTradeMessage implements Serializable {

    @JsonProperty("e")
    private String eventType;

    @JsonProperty("E")
    private Long eventTime;

    @JsonProperty("s")
    private String symbol;

    @JsonProperty("a")
    private Long aggTradeId;

    @JsonProperty("p")
    private String price;

    @JsonProperty("q")
    private String quantity;

    @JsonProperty("f")
    private Long firstTradeId;

    @JsonProperty("l")
    private Long lastTradeId;

    @JsonProperty("T")
    private Long tradeTime;

    @JsonProperty("m")
    private Boolean buyerIsMaker;
}
