package com.muchinfo.mtp3pojos.vo.marketrun;

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

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "MarketRunAccPageResult对象", description = "账户持仓汇总监控")
public class AccPosInfoVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品ID")
    private Long goodsid;

    @ApiModelProperty(value = "占用保证金")
    private Double margin;

    @ApiModelProperty(value = "持仓头寸(买)")
    private Integer buy_hold_qty;

    @ApiModelProperty(value = "持仓金额(买)")
    private Double buy_hold_value;

    @ApiModelProperty(value = "持仓均价(买)")
    private Double buy_avg_price;

    @ApiModelProperty(value = "浮动盈亏(买)")
    private Double buy_float_pl;

    @ApiModelProperty(value = "持仓头寸(卖)")
    private Integer sell_hold_qty;

    @ApiModelProperty(value = "持仓金额(卖)")
    private Double sell_hold_value;

    @ApiModelProperty(value = "持仓均价(卖)")
    private Double sell_avg_price;

    @ApiModelProperty(value = "浮动盈亏(卖)")
    private Double sell_float_pl;

    @ApiModelProperty(value = "浮动盈亏(总)")
    private Double total_float_pl;

    @ApiModelProperty(value = "实时行情(买)")
    private Double quote_price_buy;

    @ApiModelProperty(value = "实时行情(卖)")
    private Double quote_price_sell;

    @ApiModelProperty(value = "实时行情")
    private Double quote_price_last;

    private String goodsname;

    @ApiModelProperty(value = "报价小数位")
    private Integer decimalplace;

    @ApiModelProperty(value = "交易模式")
    private Integer trademode;

    @ApiModelProperty(value = "用户名称 --查询条件")
    private String username;

    @ApiModelProperty(value = "上级机构 --查询条件")
    private String parentname;

    @ApiModelProperty(value = "账户ID 查询条件 --查询条件")
    private Long accountid;

    @ApiModelProperty(value = "排除账户ID --查询条件")
    private String excludeaccountids;

    private Integer pageNo;
    private Integer pageSize;

    @ApiModelProperty(value = "排序方式： 1-总损益顺序 2-总损益倒序 --查询条件")
    private Integer orderby;
}
