package com.yingpai.stock.domain;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;

import java.math.BigDecimal;

/**
 * 股票实时行情数据
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class StockQuoteData {

    /**
     * 股票代码
     */
    private String stockCode;

    /**
     * 当前价格
     */
    private BigDecimal currentPrice;

    /**
     * 昨收价
     */
    private BigDecimal yesterdayClose;

    /**
     * 涨跌额
     */
    private BigDecimal changeAmount;

    /**
     * 涨跌幅(%)
     */
    private BigDecimal changePercent;

    /**
     * 换手率(%)
     */
    private BigDecimal turnoverRate;

    /**
     * 成交额(亿)
     */
    private BigDecimal tradeAmount;
}
