库存数据
<p><strong>简要描述:</strong> </p>
<ul>
<li>库存数据接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li>参数1: <code>https://api.qhkch.com/inventory/{variety}/{date}</code></li>
<li>参数2: <code>https://api.qhkch.com/inventory/{variety}/{year}/{week_number}</code></li>
<li>参数3: <code>https://api.qhkch.com/inventory_all/{date}</code></li>
<li>参数4: <code>https://api.qhkch.com/inventory_all/{year}/{week_number}</code></li>
<li>参数5: <code>https://api.qhkch.com/inventory_new</code></li>
</ul>
<p><strong>请求参数说明</strong>
参数1</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;">variety</td>
<td style="text-align: left;">品种编码</td>
<td>RB</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>参数2</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;">variety</td>
<td style="text-align: left;">品种编码</td>
<td>RB</td>
</tr>
<tr>
<td style="text-align: left;">year</td>
<td style="text-align: left;">查询年份</td>
<td>2019</td>
</tr>
<tr>
<td style="text-align: left;">week_number</td>
<td style="text-align: left;">该年份第几周</td>
<td>10</td>
</tr>
</tbody>
</table>
<p>参数3</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;">date</td>
<td style="text-align: left;">查询日期</td>
<td>2018-08-08</td>
</tr>
</tbody>
</table>
<p>参数4</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;">year</td>
<td style="text-align: left;">查询年份</td>
<td>2019</td>
</tr>
<tr>
<td style="text-align: left;">week_number</td>
<td style="text-align: left;">该年份第几周</td>
<td>10</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>返回示例(参数1、参数2)</strong></p>
<pre><code>{
&quot;trans_date&quot;: &quot;2018-08-08&quot;,
&quot;vol&quot;: 605.76
}
</code></pre>
<p><strong>返回示例(参数3、参数4、参数5)</strong></p>
<pre><code>{
&quot;RB&quot;: {
&quot;trans_date&quot;: &quot;2020-04-09&quot;,
&quot;vol&quot;: 1732.55
},
&quot;HC&quot;: {
&quot;trans_date&quot;: &quot;2020-04-09&quot;,
&quot;vol&quot;: 516.61
},
&quot;WR&quot;: {
&quot;trans_date&quot;: &quot;2020-04-09&quot;,
&quot;vol&quot;: 515.42
}
}</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;">trans_date</td>
<td style="text-align: left;">date</td>
<td>查询日期</td>
</tr>
<tr>
<td style="text-align: left;">vol</td>
<td style="text-align: left;">float</td>
<td>库存数据量</td>
</tr>
</tbody>
</table>