EasyFut
介绍
简单期货行情&交易HTTP接口API,基于TqSdk。
安装&启动教程
1.pip install easyfut
2.创建配置文件 easyfut -n easyfut.conf
3.修改 easyfut.conf 配置文件内容
4.命令行启动 easyfut -c easyfut.conf
使用说明(curl演示)
#获取账户信息
curl http://127.0.0.1:8888/account
#获取当前持仓
curl http://127.0.0.1:8888/position
#获取实时行情
curl http://127.0.0.1:8888/quote/SHFE.rb2210
#获取K线行情
curl http://127.0.0.1:8888/klines/SHFE.rb2210_60_20
#获取Tick序列
curl http://127.0.0.1:8888/ticks/SHFE.rb2210_20
#委托下单
curl -X POST -H "Content-type: application/json" -d '{"symbol":"SHFE.rb2210", "direction":"BUY","offset":"OPEN","volume":1,"limit_price":"UPPER_LIMIT"}' http://127.0.0.1:8888/order
#取消委托单
curl -X POST -H "Content-type: application/json" -d '{"order_id":"f1786bea1ad045199925deea3cd6f1c7"}' http://127.0.0.1:8888/order/cancel
#获取委托单信息
curl http://127.0.0.1:8888/order/fbcce9326a3a4f8c80295b0e6e07434a
#获取当日可撤委托
curl http://127.0.0.1:8888/order/alive
#更多详见官方文档 https://easyfut.iweiai.com/doc
Metadata
Release files for easyfut 1.0.4
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 | Actions |
|---|---|---|---|---|
| easyfut-1.0.4.tar.gz | 10.1 kB | Without provenance | Details for easyfut-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easyfut-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for easyfut-1.0.4-py3-none-any.whl |
Total release size: 28.4 kB
Release files / easyfut-1.0.4.tar.gz
| Download URL | easyfut-1.0.4.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf54e8c9892bc16cab378528f4a14e53e1ed1db9128f0d569f442ddd3f121f03
|
|
BLAKE2b-256 checksum How to use checksums |
8472957f923d58e4e0818047b61676225e1f6697ace1fcbd3ca44dd3ef6bc22b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.3
|
Release files / easyfut-1.0.4-py3-none-any.whl
| Download URL | easyfut-1.0.4-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1daaed712b1edf5516c8e82495d460ef0859e1691875d62ccab00034a04c75a
|
|
BLAKE2b-256 checksum How to use checksums |
2db48ef01a73b003f51c78ebb9e323898e77e1b2a80f9329afbf8ebffa20560e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.3
|
Security for easyfut 1.0.4
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.