一个股票行情工具包,可以用来获取股票历史k线数据
Project description
A util for stock market
简介
一个股票行情工具包,可以用来获取股票历史k线数据。
环境
python 3.x
安装
pip install openstock
使用
- 初始化
from openstock.stock.client import StockClient
stock_client = StockClient()
- 获取历史行情数据
stock_bars = stock_client.get_stock_bars(symbol="sz000002")
print(stock_bars)
Thanks
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openstock-0.0.8.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openstock-0.0.8.tar.gz.
File metadata
- Download URL: openstock-0.0.8.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b24e6216be7cdcd769f919402c4178aa05d1d30ef1b0cbf13a8848132093c21e
|
|
| MD5 |
1d74cd5f3837ff868ebe288f27174f2e
|
|
| BLAKE2b-256 |
c8f264f1592e43b954025f9154990f0f43fff5c68ec3625f0d55d71eefa4c338
|
File details
Details for the file openstock-0.0.8-py3-none-any.whl.
File metadata
- Download URL: openstock-0.0.8-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2e6d11d4d36d0e616614abfff3f6964d232fde6aac1eb4f52bf4652aaf50b2f
|
|
| MD5 |
5b0ff2a2acf8ad590ad5bf674151e011
|
|
| BLAKE2b-256 |
06187eac05debbecba7f7d29dc7f776e7464e289e49fe60c4615d840998ad1df
|