Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/match5/thsauto
同花顺自动下单工具
https://github.com/match5/thsauto
Last synced: 14 days ago
JSON representation
同花顺自动下单工具
- Host: GitHub
- URL: https://github.com/match5/thsauto
- Owner: match5
- Created: 2019-10-13T10:03:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-30T10:17:38.000Z (over 1 year ago)
- Last Synced: 2024-08-01T18:37:55.668Z (3 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 361
- Watchers: 18
- Forks: 168
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# thsauto
同花顺自动下单工具```
python .\server.py 192.168.0.116 5000 C:\Users\match\Desktop\THS\xiadan.exe
```
- 查询资金账户
http://192.168.0.116:5000/thsauto/balance
- 查询持仓
http://192.168.0.116:5000/thsauto/position
- 买入下单
http://192.168.0.116:5000/thsauto/buy?stock_no=600000&price=10.00&amount=100
- 卖出下单
http://192.168.0.116:5000/thsauto/sell?stock_no=600000&price=10.00&amount=100
- 科创板买入下单
http://192.168.0.116:5000/thsauto/buy/kc?stock_no=688819&price=40.00&amount=200
- 科创板卖出下单
http://192.168.0.116:5000/thsauto/sell/kc?stock_no=688819&price=40.00&amount=200
- 查询未成订单
http://192.168.0.116:5000/thsauto/orders/active
- 查询已成订单
http://192.168.0.116:5000/thsauto/orders/filled
- 撤单
http://192.168.0.116:5000/thsauto/cancel?entrust_no=2060704404
- 关闭同花顺客户端
http://192.168.0.116:5000/thsauto/client/kill
- 重启同花顺客户端
http://192.168.0.116:5000/thsauto/client/restart