Skip to main content

A CLI for Stock (Red) — search, read, interact via reverse-engineered API

Project description

agent-stock

CI PyPI version Python

股市数据命令行工具,支持个股行情、相关板块涨跌幅与最新资讯查询。

功能特性

  • 🎯 个股行情:按股票代码查询实时价格、涨跌幅、成交额、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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_stock-0.1.0.tar.gz (44.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_stock-0.1.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

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

Hashes for agent_stock-0.1.0.tar.gz
Algorithm Hash digest
SHA256 65523075696cf8d6ce266139ba92e37e380756e4a3167d210a316fe613be1391
MD5 4bb4f4895872c10e45ce2569cb3c29ac
BLAKE2b-256 d452e561ee3188a96c3f6a3af1e8b475a5ad573fea475481cdfce243ed20e5e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_stock-0.1.0.tar.gz:

Publisher: publish.yml on AnoyiX/agent-stock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for agent_stock-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a69b53f254aac58e7355325121f88aea2c0c7095c8cdf88edf6d449e36866870
MD5 38c0c48a1cf4c6ef884e603216c11381
BLAKE2b-256 86ca4a0f10bcadbb4cd4c1e4aa1f237248011bfc9347901ef09568a043c477fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_stock-0.1.0-py3-none-any.whl:

Publisher: publish.yml on AnoyiX/agent-stock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page