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;

/**
 * @Author: houn
 * @Date: 2020/9/7 19:45
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TradeHistoryExportEnDto extends BaseRowModel {

    @ExcelProperty(value = "Order Number", index = 0)
    private Long order;
    @ExcelProperty(value = "Affiliation Code", index = 1)
    private String ibNo;
    @ExcelProperty(value = "Trading Account", index = 2)
    private Long login;
    @ExcelProperty(value = "Varieties", index = 3)
    private String symbol;
    @ExcelProperty(value = "Type", index = 4)
    private String cmdName;
    @ExcelProperty(value = "Lots", index = 5)
    private Float volume;
    @ExcelProperty(value = "Opening Time", index = 6, format = "yyyy-MM-dd HH:mm:ss")
    private Date openTime;
    @ExcelProperty(value = "Opening Price", index = 7)
    private Float openPrice;
    @ExcelProperty(value = "Closing Time", index = 8, format = "yyyy-MM-dd HH:mm:ss")
    private Date closeTime;
    @ExcelProperty(value = "Closing Price", index = 9)
    private Float closePrice;
    @ExcelProperty(value = "Stop Loss", index = 10)
    private Float sl;
    @ExcelProperty(value = "Take Profit", index = 11)
    private Float tp;
    @ExcelProperty(value = "Profit/Loss", index = 12)
    private Float profit;
    @ExcelProperty(value = "Commission", index = 13)
    private Float commission;
    @ExcelProperty(value = "Storage", index = 14)
    private Float storage;
    @ExcelProperty(value = "Total Profit/Loss", index = 15)
    private Float totalProfit;
    @ExcelProperty(value = "Trading Platform", index = 16)
    private String platform;

}
