package com.copy.trade.entity.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.copy.trade.entity.base.BasePo;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 统计数据表
 * </p>
 *
 * @author wz
 * @since 2022-12-03
 */
@Data
public class StatisticsData extends BasePo {

    private static final long serialVersionUID = 1L;

    /**
     * 时间
     */
    private Date dateTime;

    /**
     * 用户ID
     */
    private Long customerId;

    /**
     * 资产
     */
    private BigDecimal balance;

    /**
     * 订单收益(USDT)
     */
    private BigDecimal earnings;

    /**
     * 总保证金
     */
    private BigDecimal principalAmount;

    /**
     * 开仓笔数
     */
    private Long openPosition;

    /**
     * 盈利订单笔数
     */
    private Long profitOrderCount;

    /**
     * 14日收益率
     */
    @TableField(value="day_yield_14")
    private BigDecimal dayYield14;


}
