|
|
@@ -1098,6 +1098,48 @@ var doc = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "/Ermcp/QueryExposureHedgePosition": {
|
|
|
+ "get": {
|
|
|
+ "security": [
|
|
|
+ {
|
|
|
+ "ApiKeyAuth": []
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "produces": [
|
|
|
+ "application/json"
|
|
|
+ ],
|
|
|
+ "tags": [
|
|
|
+ "企业风险管理(app)"
|
|
|
+ ],
|
|
|
+ "summary": "查询敞口期货头寸(菜单:敞口/期货头寸)",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "type": "integer",
|
|
|
+ "description": "所属机构ID",
|
|
|
+ "name": "areaUserId",
|
|
|
+ "in": "query",
|
|
|
+ "required": true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "OK",
|
|
|
+ "schema": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "$ref": "#/definitions/ermcp.ExposureHedgePositionRsp"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "500": {
|
|
|
+ "description": "Internal Server Error",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/app.Response"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"/Ermcp/QueryExposureSpot": {
|
|
|
"get": {
|
|
|
"security": [
|
|
|
@@ -6256,6 +6298,9 @@ var doc = `{
|
|
|
"ermcp.ExposureDetailRsp": {
|
|
|
"$ref": "#/definitions/models.ErmcpExposureDetailModel"
|
|
|
},
|
|
|
+ "ermcp.ExposureHedgePositionRsp": {
|
|
|
+ "$ref": "#/definitions/models.ErmcpHedgePosition"
|
|
|
+ },
|
|
|
"ermcp.ExposureSpotDetailRsp": {
|
|
|
"$ref": "#/definitions/models.ErmcpAreaSpotDetailModel"
|
|
|
},
|
|
|
@@ -8625,11 +8670,11 @@ var doc = `{
|
|
|
"type": "integer"
|
|
|
},
|
|
|
"diffhedgeqty": {
|
|
|
- "description": "套保品种变动量",
|
|
|
+ "description": "套保品种变动量=持仓变动量*期货合约单位*期货品种系数",
|
|
|
"type": "number"
|
|
|
},
|
|
|
"diffqty": {
|
|
|
- "description": "持仓变动量",
|
|
|
+ "description": "持仓变动量=当前持仓-昨日持仓",
|
|
|
"type": "integer"
|
|
|
},
|
|
|
"goodscode": {
|
|
|
@@ -8768,6 +8813,111 @@ var doc = `{
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ "models.ErmcpHedgePosition": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "accountid": {
|
|
|
+ "description": "资金账号[外部母账户]",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "curbuyposition": {
|
|
|
+ "description": "期末买头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "cursellposition": {
|
|
|
+ "description": "期末卖头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "curtdbuyposition": {
|
|
|
+ "description": "期末今日买头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "curtdsellposition": {
|
|
|
+ "description": "期末今日卖头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "curydbuyposition": {
|
|
|
+ "description": "期末上日买头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "curydsellposition": {
|
|
|
+ "description": "期末上日卖头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "decreaseqty": {
|
|
|
+ "description": "减少数量 = (期末卖头寸 - 期初卖头寸)*-1",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "fretdbuyposition": {
|
|
|
+ "description": "冻结今日买头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "fretdsellposition": {
|
|
|
+ "description": "冻结今日卖头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "freydbuyposition": {
|
|
|
+ "description": "冻结上日买头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "freydsellposition": {
|
|
|
+ "description": "冻结上日卖头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "goodscode": {
|
|
|
+ "description": "商品代码",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "goodsid": {
|
|
|
+ "description": "商品id",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "goodsname": {
|
|
|
+ "description": "商品名称",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "hedgeaccountcode": {
|
|
|
+ "description": "对冲账号",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "hedgegoodsid": {
|
|
|
+ "description": "对冲合约ID",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "increaseqty": {
|
|
|
+ "description": "增加数量 = 期末买头寸 - 期初买头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "marketid": {
|
|
|
+ "description": "市场ID",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "relateduserid": {
|
|
|
+ "description": "关联用户id",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "totalcurqty": {
|
|
|
+ "description": "当前数量(净头寸) = 期末买头寸 - 期末卖头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "totalydqty": {
|
|
|
+ "description": "昨日数量(净头寸) = 期初买头寸 - 期初卖头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "tradedate": {
|
|
|
+ "description": "交易日(yyyyMMdd)",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "ydbuyposition": {
|
|
|
+ "description": "期初买头寸",
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "ydsellposition": {
|
|
|
+ "description": "期初卖头寸",
|
|
|
+ "type": "integer"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
"models.ErmcpHisExposure": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
@@ -9214,7 +9364,7 @@ var doc = `{
|
|
|
"type": "integer"
|
|
|
},
|
|
|
"middleGoodsName": {
|
|
|
- "description": "************以下需计算或非redis数据************//",
|
|
|
+ "description": "套保品种名称",
|
|
|
"type": "string"
|
|
|
},
|
|
|
"needHedgeExposoure": {
|