package com.copy.trade.entity.vo;

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

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("跟单记录")
public class PositionVo {

	private Long id;
	
	@ApiModelProperty("学生会员ID")
	private Long customerMemberId;

	@ApiModelProperty("交易员会员ID")
	private Long traderMemberId;

	@ApiModelProperty("学生昵称")
	private String customerName;

	@ApiModelProperty("老师昵称")
	private String traderName;

	@ApiModelProperty("用户ID")
	private Long customerId;

	@ApiModelProperty("仓位ID")
	private Long positionId;

	@ApiModelProperty("交易员ID")
	private Long traderId;

	@ApiModelProperty("交易对")
	private String symbol;

	@ApiModelProperty("方向(10多 20空)")
	private Integer direction;

	@ApiModelProperty("杠杆倍数")
	private Integer leverage;

	@ApiModelProperty("开仓价格")
	private BigDecimal openPrice;

	@ApiModelProperty("总持仓张数")
	private BigDecimal totalPosition;

	@ApiModelProperty("总本金")
	private BigDecimal totalPrincipalAmount;

	@ApiModelProperty("当前可平张数")
	private BigDecimal availablePosition;

	@ApiModelProperty("当前持仓张数")
	private BigDecimal currentPosition;

	@ApiModelProperty("保证金")
	private BigDecimal principalAmount;

	@ApiModelProperty("合约委托单号")
	private String contractOrderEntrustId;

	@ApiModelProperty("持仓状态(10未平仓 20部分平仓 30全部平仓)")
	private Integer status;

	@ApiModelProperty("交易手续费")
	private BigDecimal transactionFee;

	@ApiModelProperty("开仓时间")
	private Long openTime;

	@ApiModelProperty("平仓时间")
	private Long closeTime;

	@ApiModelProperty("平仓均价")
	private BigDecimal closePrice;

	@ApiModelProperty("盈亏金额")
	private BigDecimal profitAndLoss;

	@ApiModelProperty("分润金额")
	private BigDecimal dividendFee;

	@ApiModelProperty("老师仓位ID")
	private Long traderPositionId;

	@ApiModelProperty("创建时间")
	private Date createdTime;

	@ApiModelProperty("更新时间")
	private Date updatedTime;

}
