Skip to main content

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

Metadata

Release files for openstock 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openstock 0.0.8
File Size Uploaded Provenance Actions
openstock-0.0.8.tar.gz 2.7 kB Without provenance Details for openstock-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openstock 0.0.8
File Interpreter ABI Platform Actions
openstock-0.0.8-py3-none-any.whl Python 3 none any Details for openstock-0.0.8-py3-none-any.whl

Total release size: 5.7 kB

Release files / openstock-0.0.8.tar.gz

Download URL openstock-0.0.8.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b24e6216be7cdcd769f919402c4178aa05d1d30ef1b0cbf13a8848132093c21e
BLAKE2b-256 checksum
How to use checksums
c8f264f1592e43b954025f9154990f0f43fff5c68ec3625f0d55d71eefa4c338
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release files / openstock-0.0.8-py3-none-any.whl

Download URL openstock-0.0.8-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2e6d11d4d36d0e616614abfff3f6964d232fde6aac1eb4f52bf4652aaf50b2f
BLAKE2b-256 checksum
How to use checksums
06187eac05debbecba7f7d29dc7f776e7464e289e49fe60c4615d840998ad1df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Security for openstock 0.0.8

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page