奇货可查接口文档

奇货可查机构VIP接口文档


席位持仓数据

<p><strong>简要描述:</strong> </p> <ul> <li>席位持仓数据接口</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>https://api.qhkch.com/broker_positions/{broker}/{date}</code></li> </ul> <p><strong>请求参数说明</strong> </p> <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;">broker</td> <td style="text-align: left;">席位</td> <td>永安期货</td> </tr> <tr> <td style="text-align: left;">date</td> <td style="text-align: left;">查询日期</td> <td>2018-08-08</td> </tr> </tbody> </table> <p><strong>请求方式:</strong></p> <ul> <li>GET </li> </ul> <p><strong>Header:</strong></p> <pre><code>X-Token:{token} </code></pre> <p><strong>返回示例</strong></p> <pre><code>[ { "code": "a1809", "long": 2354, "short": 0, "long_chge": -175, "short_chge": 0, "symbol": "A" }, { "code": "a1901", "long": 4247, "short": 5159, "long_chge": 426, "short_chge": 493, "symbol": "A" }, { "code": "ag1812", "long": 6155, "short": 13692, "long_chge": 212, "short_chge": 99, "symbol": "AG" }, { "code": "al1808", "long": 455, "short": 0, "long_chge": -5, "short_chge": 0, "symbol": "AL" }, { "code": "al1809", "long": 2284, "short": 0, "long_chge": -181, "short_chge": 0, "symbol": "AL" }, { "code": "al1810", "long": 2451, "short": 0, "long_chge": 158, "short_chge": 0, "symbol": "AL" }, { "code": "al1811", "long": 633, "short": 544, "long_chge": 0, "short_chge": 544, "symbol": "AL" }, { "code": "al1812", "long": 419, "short": 0, "long_chge": 8, "short_chge": 0, "symbol": "AL" }, { "code": "ap1810", "long": 1311, "short": 1506, "long_chge": -38, "short_chge": -205, "symbol": "AP" }, { "code": "ap1811", "long": 0, "short": 194, "long_chge": 0, "short_chge": -14, "symbol": "AP" }, { "code": "ap1901", "long": 4090, "short": 4735, "long_chge": 58, "short_chge": 233, "symbol": "AP" }, { "code": "ap1905", "long": 4017, "short": 2386, "long_chge": 65, "short_chge": -17, "symbol": "AP" }, { "code": "au1812", "long": 2381, "short": 837, "long_chge": -226, "short_chge": 98, "symbol": "AU" }, { "code": "b1809", "long": 0, "short": 0, "long_chge": -1153, "short_chge": 0, "symbol": "B" }, { "code": "b1901", "long": 0, "short": 175, "long_chge": 0, "short_chge": 175, "symbol": "B" }, { "code": "bu1812", "long": 18412, "short": 24973, "long_chge": -654, "short_chge": -689, "symbol": "BU" }, { "code": "c1809", "long": 9137, "short": 11309, "long_chge": 966, "short_chge": -613, "symbol": "C" }, { "code": "c1811", "long": 23, "short": 0, "long_chge": 16, "short_chge": 0, "symbol": "C" }, { "code": "c1901", "long": 13987, "short": 47226, "long_chge": -12150, "short_chge": 5144, "symbol": "C" }, { "code": "c1905", "long": 1928, "short": 6739, "long_chge": 429, "short_chge": 15, "symbol": "C" }, { "code": "cf1809", "long": 7983, "short": 2337, "long_chge": 729, "short_chge": -40, "symbol": "CF" }, { "code": "cf1901", "long": 10338, "short": 35354, "long_chge": -336, "short_chge": -798, "symbol": "CF" }, { "code": "cf1905", "long": 14971, "short": 9244, "long_chge": 1429, "short_chge": 2901, "symbol": "CF" } ]</code></pre> <p><strong>返回参数说明</strong> </p> <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;">string</td> <td>合约代号</td> </tr> <tr> <td style="text-align: left;">long</td> <td style="text-align: left;">int</td> <td>多头持仓</td> </tr> <tr> <td style="text-align: left;">short</td> <td style="text-align: left;">int</td> <td>空头持仓</td> </tr> <tr> <td style="text-align: left;">long_chge</td> <td style="text-align: left;">int</td> <td>多头持仓变化量</td> </tr> <tr> <td style="text-align: left;">short_chge</td> <td style="text-align: left;">int</td> <td>空头持仓变化量</td> </tr> <tr> <td style="text-align: left;">symbol</td> <td style="text-align: left;">string</td> <td>品种编码</td> </tr> </tbody> </table>

页面列表

ITEM_HTML