qhsdk
qhsdk 的介绍
qhsdk 主要是为 https://qhkch.com/ 提供 SDK 的 Python 库, 您可以通过 奇货可查机构VIP接口文档 了解和查询详细数据接口!
qhsdk 服务于 www.qhkch.com
qhsdk 的特色
qhsdk 主要改进如下:
安装方法
pip install qhsdk
升级方法
pip install qhsdk --upgrade
快速入门
目标数据: 奇货可查-商品-持仓数据接口
示例代码:
import qhsdk as qh
pro = qh.pro_api(token="此处输入您的token, 请联系奇货可查获取!")
variety_positions_df = pro.variety_positions(fields="shorts", code="rb1810", date="2018-08-08")
print(variety_positions_df)
示例结果:
broker short short_chge
0 银河期货 60987 -4228
1 永安期货 57520 -1071
2 中信期货 38120 -620
3 国泰君安 36498 528
4 方正中期 32105 4444
5 海通期货 29638 -2783
6 东海期货 29250 450
7 光大期货 28458 -84
8 南华期货 27853 -144
9 中辉期货 26101 -553
10 中大期货 23761 1572
11 鲁证期货 22501 -598
12 兴证期货 22262 -842
13 东证期货 21675 -686
14 徽商期货 18966 -607
15 中信建投 18583 -625
16 华泰期货 17076 -5797
17 国投安信 16808 349
18 申银万国 14876 376
19 广发期货 14588 -2196
20 大地期货 0 -14603
特别说明
致谢
特别感谢 AkShare 项目提供借鉴学习的机会;
声明
- qhsdk 提供的数据仅供参考, 不构成任何投资建议;
- 任何基于 qhsdk 进行研究的投资者请注意数据风险;
- qhsdk 的使用请遵循奇货可查网站的用户协议;
- qhsdk 使用产生的所有问题的最终解释权归奇货可查网站所有;
版本更新说明
0.0.1
发布测试版本
0.0.2
调试接口
0.0.3
增加lxml=4.4.1
0.0.4
更新说明文档
0.0.5
新增通过用户名和密码登录并访问VIP资源功能
0.0.6
修正导入问题
0.0.7
更新 README 文档
0.0.8
第二版接口测试
0.0.9
更新说明文档
0.1.0
更新测试文件
0.1.1
预览版
0.1.2
增加 token 使用说明
0.1.3
增加 inventory 参数类型二
0.1.4
新增: 合约持仓数据接口, 商品持仓数据接口, 修复部分接口与文档一致
0.1.5
新增: 增加 broker_positions_process 中 start_date 和 end_date 可选参数
0.1.6
新增: 增加 variety_calc_positions 接口
0.1.7
修改: 修改 variety_all 接口, 新增 3 个字段
0.1.8
新增: 新增 variety_net_position_list 接口
0.1.9
新增: 同步文档 2021年11月25日 版本
0.1.10
新增: inventory_new 接口
修复:返回空值
0.1.11
修复: 修改 url 地址
文档构建
cd docs
pip install -r requirements.txt
sphinx-build -b html . _build
Metadata
Release files for qhsdk 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| qhsdk-0.1.11.tar.gz | 10.7 kB | Without provenance | Details |
Release files / qhsdk-0.1.11.tar.gz
| Download URL | qhsdk-0.1.11.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5c089f8d995df01e153e35ee7da57a4d9ed3994f54977c29cbfb94d35bb78f4
|
|
BLAKE2b-256 checksum How to use checksums |
5c20ad9912b50b563a6abf0e42547ed1b7d1631aad2920f3f189d4f80657fa13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for qhsdk 0.1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.