From c86848ad0a97033f7a8bdcdf901b46bf866d9fb7 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 03 Jun 2020 19:00:05 +0800
Subject: [PATCH] modify
---
src/main/java/com/xcong/excoin/modules/contract/entity/ContractOrderEntity.java | 31 +++++++++++++++++++++++++++++--
1 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/contract/entity/ContractOrderEntity.java b/src/main/java/com/xcong/excoin/modules/contract/entity/ContractOrderEntity.java
index e0f996b..680ca35 100644
--- a/src/main/java/com/xcong/excoin/modules/contract/entity/ContractOrderEntity.java
+++ b/src/main/java/com/xcong/excoin/modules/contract/entity/ContractOrderEntity.java
@@ -33,6 +33,26 @@
*/
public static final int ORDER_TYPE_CANCEL = -1;
+ /**
+ * 订单类型 开多
+ */
+ public static final int ORDER_TYPE_OPEN_MORE = 1;
+
+ /**
+ * 订单类型 开空
+ */
+ public static final int ORDER_TYPE_OPEN_LESS = 2;
+
+ /**
+ * 订单类型 平多
+ */
+ public static final int ORDER_TYPE_CLOSE_MORE = 3;
+
+ /**
+ * 订单类型 平空
+ */
+ public static final int ORDER_TYPE_CLOSE_LESS = 4;
+
/**
* 会员Id
@@ -47,7 +67,7 @@
/**
* 仓位类型 1-逐仓 2-全仓
*/
- private int potionType;
+ private int positionType;
/**
* 交易类型 1-市价 2-限价
@@ -55,7 +75,7 @@
private int tradeType;
/**
- * 订单类型 - 0撤单,1开多,2开空,3平多,4平空,5委托开多,6委托开空,7委托平多,8委托平空,9爆仓平多,10爆仓平空
+ * 订单类型 - 0撤单,1开多,2开空,3平多,4平空
*/
private int orderType;
@@ -100,6 +120,11 @@
private Date closingTime;
/**
+ * 平仓类型 2平多3平空4爆仓平多5爆仓平空6止盈平多7止盈平空8止损平多9止损平空
+ */
+ private int closingType;
+
+ /**
* 杠杆倍率
*/
private int leverRatio;
@@ -134,6 +159,8 @@
*/
private BigDecimal openingFeeAmount;
+ private Date openingTime;
+
/**
* 预付款金额
*/
--
Gitblit v1.9.1