GroundAPI CLI — Real-time Data API for AI Agents
Project description
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 次免费调用。
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
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 groundapi_cli-3.2.0.tar.gz.
File metadata
- Download URL: groundapi_cli-3.2.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b439b64ba182734dc98512fac147de9025f16fa5052546267a2c250e67757111
|
|
| MD5 |
033ae722c774a339b9e34a2e211a726f
|
|
| BLAKE2b-256 |
800a06436d999f0d68513079e2a3e5e20efbe9bab8b523a80745405d06978116
|
Provenance
The following attestation bundles were made for groundapi_cli-3.2.0.tar.gz:
Publisher:
deploy.yml on qingkongzhiqian/GroundAPI-private
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
groundapi_cli-3.2.0.tar.gz -
Subject digest:
b439b64ba182734dc98512fac147de9025f16fa5052546267a2c250e67757111 - Sigstore transparency entry: 1280554524
- Sigstore integration time:
-
Permalink:
qingkongzhiqian/GroundAPI-private@0bff61ccb6a46569424982203734bc845047b04f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/qingkongzhiqian
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@0bff61ccb6a46569424982203734bc845047b04f -
Trigger Event:
push
-
Statement type:
File details
Details for the file groundapi_cli-3.2.0-py3-none-any.whl.
File metadata
- Download URL: groundapi_cli-3.2.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a9d9ccee309e9b8a79ced7ac3c7e03f91d276a073843ddbcbfff5770da8ea8a
|
|
| MD5 |
2112e42149de0beec561a0e29ebcd132
|
|
| BLAKE2b-256 |
fde1333d16fb79a01a743172a132b7e0520e33b7510b3a49272d88f142aa2034
|
Provenance
The following attestation bundles were made for groundapi_cli-3.2.0-py3-none-any.whl:
Publisher:
deploy.yml on qingkongzhiqian/GroundAPI-private
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
groundapi_cli-3.2.0-py3-none-any.whl -
Subject digest:
6a9d9ccee309e9b8a79ced7ac3c7e03f91d276a073843ddbcbfff5770da8ea8a - Sigstore transparency entry: 1280554535
- Sigstore integration time:
-
Permalink:
qingkongzhiqian/GroundAPI-private@0bff61ccb6a46569424982203734bc845047b04f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/qingkongzhiqian
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@0bff61ccb6a46569424982203734bc845047b04f -
Trigger Event:
push
-
Statement type: