package com.muchinfo.mtp3pojos.vo.query.position;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "PositionSheetResultDetail对象", description = "持仓单查询详情响应")
public class PositionSheetResultDetail {

    @ApiModelProperty(value = "成交单号")
    private String tradeid;

    @ApiModelProperty(value = "交易日")
    private String tradedate;

    @ApiModelProperty(value = "账户名称")
    private String accountname;

    @ApiModelProperty(value = "账户id")
    private Long accountid;

    @ApiModelProperty(value = "所属上级/所属营销中心 trademode = 18、26")
    private String parentusername;

    @ApiModelProperty(value = "所属会员")
    private String memberusername;

    @ApiModelProperty(value = "市场")
    private String marketname;

    @ApiModelProperty(value = "商品代码")
    private String goodscode;

    @ApiModelProperty(value = "商品名称")
    private String goodsname;

    @ApiModelProperty(value = "期权类型 trademode = 18、26")
    private Integer optiontype;

    @ApiModelProperty(value = "方向")
    private Integer buyorsell;

    @ApiModelProperty(value = "T+N")
    private Integer holderdays;

    @ApiModelProperty(value = "交易时间")
    private Date tradetime;

    @ApiModelProperty(value = "订立价格/行权价")
    private BigDecimal openprice;

    @ApiModelProperty(value = "持仓价格")
    private BigDecimal holderprice;

    @ApiModelProperty(value = "定货金 trademode = 18、26")
    private BigDecimal premium;

    @ApiModelProperty(value = "订立数量")
    private Integer openqty;

    @ApiModelProperty(value = "持仓数量")
    private Integer holderqty;

    @ApiModelProperty(value = "行权日类型 trademode = 18、26")
    private Integer expiretype;

    @ApiModelProperty(value = "行权周期 trademode = 18、26")
    private Integer expirecycle;

    @ApiModelProperty(value = "行权日  trademode = 18、26")
    private String expiredate;

    @ApiModelProperty(value = "参考商品 trademode = 46")
    private String refgoodsid;

    @ApiModelProperty(value = "掉期天数")
    private Integer swapdays;

    private Integer trademode;

}
