A CLI for Stock (Red) — search, read, interact via reverse-engineered API
Project description
agent-stock
股市数据命令行工具,支持个股行情、相关板块涨跌幅与最新资讯查询。
功能特性
- 🎯 个股行情:按股票代码查询实时价格、涨跌幅、成交额、K 线
- 🧭 相关板块涨跌幅:按股票代码查看地域、行业、概念板块表现
- 📰 个股最新资讯:按股票代码查看最新资讯摘要
安装
# 推荐:uv tool(快速、隔离环境)
uv tool install agent-stock
# 或者:pipx
pipx install agent-stock
升级到最新版本:
uv tool upgrade agent-stock
# 或:pipx upgrade agent-stock
快速开始
stock quote 000001
stock plate 000001
stock news 000001
开发
# 安装依赖
uv sync
# 运行测试
uv run pytest tests/ -v
# Lint
uv run ruff check .
# 安装当前目录源码,并暴露 `stock` 命令
uv tool install --from . agent-stock
# 强制升级
uv tool install --from . agent-stock --force --reinstall --refresh --no-cache
# 卸载
uv tool uninstall agent-stock
# 调试
uv run python -m stock quote 000001
uv run python -m stock plate 000001
uv run python -m stock news 000001
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 agent_stock-0.1.0.tar.gz.
File metadata
- Download URL: agent_stock-0.1.0.tar.gz
- Upload date:
- Size: 44.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65523075696cf8d6ce266139ba92e37e380756e4a3167d210a316fe613be1391
|
|
| MD5 |
4bb4f4895872c10e45ce2569cb3c29ac
|
|
| BLAKE2b-256 |
d452e561ee3188a96c3f6a3af1e8b475a5ad573fea475481cdfce243ed20e5e7
|
Provenance
The following attestation bundles were made for agent_stock-0.1.0.tar.gz:
Publisher:
publish.yml on AnoyiX/agent-stock
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_stock-0.1.0.tar.gz -
Subject digest:
65523075696cf8d6ce266139ba92e37e380756e4a3167d210a316fe613be1391 - Sigstore transparency entry: 1109322441
- Sigstore integration time:
-
Permalink:
AnoyiX/agent-stock@508d320524cfbf04cc37e92dd9b00dc64cceec8d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/AnoyiX
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@508d320524cfbf04cc37e92dd9b00dc64cceec8d -
Trigger Event:
push
-
Statement type:
File details
Details for the file agent_stock-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agent_stock-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a69b53f254aac58e7355325121f88aea2c0c7095c8cdf88edf6d449e36866870
|
|
| MD5 |
38c0c48a1cf4c6ef884e603216c11381
|
|
| BLAKE2b-256 |
86ca4a0f10bcadbb4cd4c1e4aa1f237248011bfc9347901ef09568a043c477fa
|
Provenance
The following attestation bundles were made for agent_stock-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on AnoyiX/agent-stock
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_stock-0.1.0-py3-none-any.whl -
Subject digest:
a69b53f254aac58e7355325121f88aea2c0c7095c8cdf88edf6d449e36866870 - Sigstore transparency entry: 1109322444
- Sigstore integration time:
-
Permalink:
AnoyiX/agent-stock@508d320524cfbf04cc37e92dd9b00dc64cceec8d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/AnoyiX
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@508d320524cfbf04cc37e92dd9b00dc64cceec8d -
Trigger Event:
push
-
Statement type: