From ab271747fb67824c80a97989610e6a735b17f311 Mon Sep 17 00:00:00 2001 From: zainali5120 <512061637@qq.com> Date: Sun, 31 May 2020 21:24:45 +0800 Subject: [PATCH] 消息队列提交 --- src/main/java/com/xcong/excoin/modules/contract/entity/ContractHoldOrderEntity.java | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/contract/entity/ContractHoldOrderEntity.java b/src/main/java/com/xcong/excoin/modules/contract/entity/ContractHoldOrderEntity.java index 850b346..c39e3d1 100644 --- a/src/main/java/com/xcong/excoin/modules/contract/entity/ContractHoldOrderEntity.java +++ b/src/main/java/com/xcong/excoin/modules/contract/entity/ContractHoldOrderEntity.java @@ -26,14 +26,24 @@ public static final int ORDER_CAN_CLOSING_N = 0; /** - * 开仓类型 1-开多 + * 开多 */ - public static final int ORDER_OPENING_TYPE_MORE = 1; + public static final int OPENING_TYPE_MORE = 1; /** - * 开仓类型 2-开空 + * 开空 */ - public static final int ORDER_OPENING_TYPE_LESS = 2; + public static final int OPENING_TYPE_LESS = 2; + + /** + * 交易类型 市价 + */ + public static final int TRADE_TYPE_MARK = 1; + + /** + * 交易类型 限价 + */ + public static final int TRADE_TYPE_LIMIT = 2; /** * 会员Id @@ -73,7 +83,7 @@ /** * 币种规格 */ - private Long symbolSku; + private BigDecimal symbolSku; /** * 开仓价 @@ -81,7 +91,7 @@ private BigDecimal openingPrice; /** - * 开仓类型 1-开多2-开空 + * 开仓类型 1-开多 2-开空 */ private int openingType; @@ -93,7 +103,7 @@ /** * 保证金 */ - private BigDecimal bondPrice; + private BigDecimal bondAmount; /** * 杠杆倍率 -- Gitblit v1.9.1