Skip to main content

GroundAPI CLI

专为 AI Agent 设计的实时数据命令行工具。一个 API Key,在终端查询 A 股行情、股票筛选、大盘数据、基金、天气、快递、搜索、网页抓取、新闻、IP 定位。

安装

pip install groundapi-cli

配置

groundapi config set-key sk_gapi_你的密钥

或使用环境变量:

export GROUNDAPI_API_KEY=sk_gapi_你的密钥

使用

金融

# A 股行情
groundapi stock --symbol 600519                          # 实时行情
groundapi stock --keyword 贵州茅台                        # 搜索股票
groundapi stock --symbol 600519 --date 2024-12-31        # 指定日期日K
groundapi stock --symbol 600519 --days 30                # 最近30天历史
groundapi stock --symbol 600519 --days 30 --include technicals  # 历史+技术指标

# 股票筛选与排行
groundapi screen                                         # 默认排行 (涨跌幅)
groundapi screen --industry 白酒 --pe-max 30             # 按行业+PE筛选
groundapi screen --sort-by total_market_cap --limit 10   # 市值前10

# 大盘总览
groundapi market                                         # 大盘+宏观
groundapi market --include sectors,valuation             # 附带板块+估值
groundapi market --sector 半导体 --type industry         # 板块详情

# 基金
groundapi fund                                           # 基金排行
groundapi fund --keyword 沪深300                          # 搜索基金
groundapi fund --code 110011                             # 基金详情

资讯

groundapi search "AI Agent"                              # 网络搜索
groundapi search "AI Agent" --count 20 --recency oneWeek # 限定时间范围
groundapi scrape https://example.com                     # 网页抓取
groundapi news                                           # 财经新闻
groundapi news --category tech --limit 10                # 科技新闻

生活

groundapi weather --city 北京                             # 实时天气
groundapi weather --city 北京 --forecast                  # 含7天预报
groundapi weather --location 39.9,116.4                  # 经纬度查询
groundapi logistics SF1234567890                         # 快递追踪
groundapi ip 8.8.8.8                                     # IP 定位

获取 API Key

前往 groundapi.net 注册,每月 500 次免费调用。

Download files

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

Source Distribution

groundapi_cli-3.3.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

groundapi_cli-3.3.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file groundapi_cli-3.3.0.tar.gz.

File metadata

  • Download URL: groundapi_cli-3.3.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for groundapi_cli-3.3.0.tar.gz
Algorithm Hash digest
SHA256 e39c520b8c1d9025ab5637547d5335c291f4a18fb9d577ebd3a9c669de74de82
MD5 da3f15d7bc127acf44234cbdbecc66f1
BLAKE2b-256 8275f9a6816067138b79d132b0c4d3ceaa1dbb0935edde31b4ad9c40ae74a320

See more details on using hashes here.

Provenance

The following attestation bundles were made for groundapi_cli-3.3.0.tar.gz:

Publisher: deploy.yml on qingkongzhiqian/GroundAPI-private

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

File details

Details for the file groundapi_cli-3.3.0-py3-none-any.whl.

File metadata

  • Download URL: groundapi_cli-3.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for groundapi_cli-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00ddc8caf00b9d6ae086c5436cda69125f82987f6723a433056c2b2097b98dfe
MD5 b7978112922f136262d9b0cc6add62df
BLAKE2b-256 c522916c71f4d53d960825645744ad6be653cc3adcb12ae26536a642fb3c9d66

See more details on using hashes here.

Provenance

The following attestation bundles were made for groundapi_cli-3.3.0-py3-none-any.whl:

Publisher: deploy.yml on qingkongzhiqian/GroundAPI-private

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

Release history Release notifications | RSS feed

This release

3.3.0 This release

2 files

3.2.0

2 files

3.0.0

2 files

1.0.0

2 files

Supported by

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