Ver código fonte

"内部未关联成交单查询"接口增加套保品种数量字段

zhou.xiaoning 3 anos atrás
pai
commit
321f6dfcde
4 arquivos alterados com 12 adições e 0 exclusões
  1. 4 0
      docs/docs.go
  2. 4 0
      docs/swagger.json
  3. 3 0
      docs/swagger.yaml
  4. 1 0
      models/ermcp8.go

+ 4 - 0
docs/docs.go

@@ -30605,6 +30605,10 @@ var doc = `{
                     "description": "套保品种ID",
                     "type": "integer"
                 },
+                "middlegoodsqty": {
+                    "description": "套保品种数量 = TradeQty * AgreeUnit * ConvertRatio",
+                    "type": "number"
+                },
                 "relatedlot": {
                     "description": "[数量]关联手数",
                     "type": "number"

+ 4 - 0
docs/swagger.json

@@ -30589,6 +30589,10 @@
                     "description": "套保品种ID",
                     "type": "integer"
                 },
+                "middlegoodsqty": {
+                    "description": "套保品种数量 = TradeQty * AgreeUnit * ConvertRatio",
+                    "type": "number"
+                },
                 "relatedlot": {
                     "description": "[数量]关联手数",
                     "type": "number"

+ 3 - 0
docs/swagger.yaml

@@ -11165,6 +11165,9 @@ definitions:
       middlegoodsid:
         description: 套保品种ID
         type: integer
+      middlegoodsqty:
+        description: 套保品种数量 = TradeQty * AgreeUnit * ConvertRatio
+        type: number
       relatedlot:
         description: '[数量]关联手数'
         type: number

+ 1 - 0
models/ermcp8.go

@@ -807,6 +807,7 @@ type InternalUncorrelatedTradeDetail struct {
 	RETCODE          int32     `json:"retcode"  xorm:"RETCODE"`                      // 返回码
 	ACCOUNTID        int64     `json:"accountid"  xorm:"ACCOUNTID"`                  // 账号ID
 	CHANNELBUILDTYPE int32     `json:"channelbuildtype"  xorm:"CHANNELBUILDTYPE"`    // 委托单据类型 0:无 1:建仓 2:平仓
+	MIDDLEGOODSQTY   float64   `json:"middlegoodsqty"  xorm:"MIDDLEGOODSQTY"`        // 套保品种数量 = TradeQty * AgreeUnit * ConvertRatio
 
 	TRADETIME   string  `json:"tradetime"  xorm:"TRADETIME"`                       // 成交时间
 	ACCOUNTNAME string  `json:"accountname" xorm:"ACCOUNTNAME" form:"accountname"` // 套期主体