package com.crm.manager.dto.export;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Created by max on 2020/9/8.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TradePendingExportDto extends BaseRowModel {

    @ExcelProperty(value = "订单号", index = 0)
    private Long order;
    @ExcelProperty(value = "代理编号", index = 1)
    private String ibNo;
    @ExcelProperty(value = "交易账号", index = 2)
    private Long login;
    @ExcelProperty(value = "品种", index = 3)
    private String symbol;
    @ExcelProperty(value = "交易类型", index = 4)
    private String cmdName;
    @ExcelProperty(value = "手数", index = 5)
    private Float volume;
    @ExcelProperty(value = "开仓时间", index = 6, format = "yyyy-MM-dd HH:mm:ss")
    private Date openTime;
    @ExcelProperty(value = "开仓价", index = 7)
    private Float openPrice;
    @ExcelProperty(value = "平仓时间", index = 8, format = "yyyy-MM-dd HH:mm:ss")
    private Date closeTime;
    @ExcelProperty(value = "平仓价", index = 9)
    private Float closePrice;
    @ExcelProperty(value = "止损", index = 10)
    private Float sl;
    @ExcelProperty(value = "止盈", index = 11)
    private Float tp;
    @ExcelProperty(value = "盈利", index = 12)
    private Float profit;
    @ExcelProperty(value = "库存费", index = 13)
    private Float storage;
    @ExcelProperty(value = "总盈利", index = 14)
    private Float totalProfit;
    @ExcelProperty(value = "交易平台", index = 15)
    private String platform;

}
