package com.market.model.binance;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 币安现货逐笔成交流消息
 *
 * @author system
 * @date 2026-05-07
 */
public class SpotTradeMessage extends SpotStreamMessage {

    /** 成交 ID */
    @JsonProperty("t") private Long tradeId;
    /** 成交价格 */
    @JsonProperty("p") private String price;
    /** 成交数量 */
    @JsonProperty("q") private String quantity;
    /** 成交时间 */
    @JsonProperty("T") private Long tradeTime;
    /** 是否是买方做市（true=卖单成交） */
    @JsonProperty("m") private Boolean isBuyerMaker;

    public Long getTradeId() { return tradeId; }
    public void setTradeId(Long tradeId) { this.tradeId = tradeId; }
    public String getPrice() { return price; }
    public void setPrice(String price) { this.price = price; }
    public String getQuantity() { return quantity; }
    public void setQuantity(String quantity) { this.quantity = quantity; }
    public Long getTradeTime() { return tradeTime; }
    public void setTradeTime(Long tradeTime) { this.tradeTime = tradeTime; }
    public Boolean getIsBuyerMaker() { return isBuyerMaker; }
    public void setIsBuyerMaker(Boolean isBuyerMaker) { this.isBuyerMaker = isBuyerMaker; }
}
