量化交易-彻悟科技

量化交易-彻悟科技


交易平台-查询指标结果接口

<h5>简要描述</h5> <ul> <li>查询指标结果接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>/lh/deal/query_indicator.htm</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST</li> <li>RequestBody JSON</li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">orderNo</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string(变长32位)</td> <td>流水号,qilhus开头</td> </tr> <tr> <td style="text-align: left;">pruductCode</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>产品代码</td> </tr> <tr> <td style="text-align: left;">symbol</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>个股代码</td> </tr> </tbody> </table> <h5>返回示例</h5> <p>成功</p> <pre><code>{ "code": 200, "msg": "操作成功", "resultObject": { "currentPositionCnt": 15, //当前持仓量 "currentPositionAvgPrice": 501.25, //当前持仓均价 "currentValidCreateCnt": 1, //有效建仓单数量 "currentValidCreateAvgPrice": 508.5, //最新建仓单成交均价 "currentValidCreatePositionCnt": 10, //当前建仓单持仓量 "currentValidSuppCnt": 1, //有效补仓单数量 "currentLastSuppAvgPrice": 508.5, //最新补仓单成交均价 "currentLastSuppPositionCnt": 10, //最新补仓单持仓量 "currentValidSupp2Cnt": 1, //有效补仓单2数量 "currentLastSupp2AvgPrice": 508.5, //最新补仓单2成交均价 "currentLastSupp2PositionCnt": 10, //最新补仓单2持仓量 "currentValidSupp3Cnt": 1, //有效补仓单3数量 "currentLastSupp3AvgPrice": 508.5, //最新补仓单3成交均价 "currentLastSupp3PositionCnt": 10, //最新补仓单3持仓量 "currentValidCreateFlag": 0, //最新有效建仓单做多做空类型【0:买入做多/1:卖出做空】 "currentValidStopCnt": 1, //有效止盈单数量【建仓】 "currentValidStopSupp1Cnt": 1, //有效止盈单数量【补仓1】 "currentValidStopSupp2Cnt": 1, //有效止盈单数量【补仓2】 "currentValidStopSupp3Cnt": 1, //有效止盈单数量【补仓3】 "currentValidStopLossCnt": 1, //有效止损单数量 "singlePosintionCnt": 1000, //当前单倍仓数量 "currentTotalCash":50000.5885, //当前产品可用现金 "currentTotalBuyPower":200000.6868, //当前产品可用购买力 "currentAllotTotalCash":1000000, //当前产品分配总资金 "lastCreatePrice":96.7, //当前产品最新建仓单成交均价 "todayCreatePrice":96.7 //当前产品今日建仓单成交均价 } }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">int</td> <td>返回结果代码<br/>【200:成功,其它失败】</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">string</td> <td>返回结果消息</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML