Skip to main content

maoxianyong

A 股、港股和美股统一行情数据的只读 Python 包。

from maoxianyong.quant import DailyReader, daily_reader

reader = DailyReader()
history = reader.get("AAPL.US", start="2024-01-01")
symbols = reader.list_symbols()

# 也可以直接复用包内单例
history = daily_reader.get("AAPL.US", start="2024-01-01")

该包默认从阿里云 OSS 读取 Parquet 数据;本地 ETL 与分析工具位于仓库的 pipelines/stock/。 股票元信息和可用代码清单统一保存在公开的 quant/daily.json 中; list_symbols() 读取该文件,因此不需要 OSS 的目录枚举权限。

发布

在仓库根目录执行发布脚本。默认升级补丁版本,随后构建、隔离验证并上传到 PyPI:

scripts/publish_maoxianyong.sh

也可以指定版本升级类型:

scripts/publish_maoxianyong.sh minor
scripts/publish_maoxianyong.sh major

如果上传失败但版本号已经升级,使用当前版本重试,避免再次增加版本号:

scripts/publish_maoxianyong.sh current

脚本会在发布前请求确认,并隐蔽读取以 pypi- 开头的 PyPI API Token。脚本不会自动提交 Git。

Metadata

Release files for maoxianyong 0.1.10

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

Source distribution (sdist)

Source distribution for maoxianyong 0.1.10
File Size Uploaded Provenance Actions
maoxianyong-0.1.10.tar.gz 4.4 kB Without provenance Details for maoxianyong-0.1.10.tar.gz

Built distribution (wheel)

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

Total release size: 8.9 kB

Release files / maoxianyong-0.1.10.tar.gz

Download URL maoxianyong-0.1.10.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c55ff1df006ce6fcfd8182407fdc252fd512647b8c28da0b0b0fb725e8060e26
BLAKE2b-256 checksum
How to use checksums
bdc1804fe5edb0d93c80d58314e582fdb0300d6d8ad8302af162525926393fe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.12

Release files / maoxianyong-0.1.10-py3-none-any.whl

Download URL maoxianyong-0.1.10-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
577037d4aed755275040d8bef9bd8c20c489fd92892cfb184d83b85ac4403110
BLAKE2b-256 checksum
How to use checksums
8bb1cd4ac0b67e2e4e1be7807216e5c8fd6af09e174c08c5627e455f1c9c7857
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.12

Security for maoxianyong 0.1.10

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