package com.nq.vo.stock.ai;
|
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
@Data
|
public class StockAIOrderPositionVO {
|
|
|
private Integer id;
|
|
//ai交易产品订单id
|
private Integer stockAiOrderId;
|
|
//建仓股票id
|
private Integer stockId;
|
|
/**
|
* 建仓股票数量
|
*/
|
private Long stockNum;
|
|
/**
|
* 建仓股票单价
|
*/
|
private BigDecimal stockPrice;
|
|
/**
|
* 建仓时间
|
*/
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date creatDate;
|
|
/**
|
* 平仓单价
|
*/
|
private BigDecimal coverPrice;
|
|
/**
|
* 平仓时间
|
*/
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date coverDate;
|
|
/**
|
* 收益 (平仓单价-建仓股票单价)*建仓股票数量
|
*/
|
private BigDecimal earnings;
|
|
/**
|
* 建仓状态 0持仓 1已平仓
|
*/
|
private Integer status;
|
|
//股票名称
|
private String stockName;
|
//code
|
private String stockCode;
|
//股票名称缩写
|
private String stockSpell;
|
//类型
|
private String stockType;
|
}
|