Gangtesi Open Platform investment research data skill, providing functions such as knowledge base search, earnings forecasts, economic indicator queries, conference calls, and research report traceability downloads.
Credential Configuration
Credential loading priority (from high to low):
-
Environment variables(recommended)
export GANGTISE_ACCESS_KEY="your-access-key" export GANGTISE_SECRET_KEY="your-secret-key" -
.envfile(project root directory)GANGTISE_ACCESS_KEY=your-access-key GANGTISE_SECRET_KEY=your-secret-key
config.json(compatible with old configuration, not recommended)
Interactive configuration (automatically written to .env):
python3 scripts/configure.py
API credential acquisition address: https://open.gangtise.com
Authentication
- OAuth2 authentication: Access Key + Secret Key →
loginV2→ accessToken - accessToken returned by the V2 interface already carries the Bearer prefix
- Token validity period is 3600 seconds; the script automatically caches it to
.token_cache, reused within 1 hour
Available Scripts
Knowledge base search (query_kb.py)
python3 scripts/query_kb.py "比亚迪最新消息"
python3 scripts/query_kb.py "特斯拉" --type 10,40 --top 5 --days 180
python3 scripts/query_kb.py "宁德时代" --json
Parameters:--type resource type | --top number returned (default 20, maximum 20) | --days search days | --json raw output
Earnings forecast (forecast.py)
python3 scripts/forecast.py 600519.SH
python3 scripts/forecast.py 000858.SZ --json
Returns historical actual values (A) + future forecast values (E), including net profit attributable to the parent company, EPS, PE, ROE, gross margin, etc.
Economic data indicators (indicator.py)
python3 scripts/indicator.py "比亚迪仰望销量"
python3 scripts/indicator.py "2024年GDP增速" --stream
python3 scripts/indicator.py "光伏行业产能" --json
AI Agent queries industry data, macroeconomic data, and company operating indicators. Non-streaming takes about 10 seconds.
Conference call list (meeting_list.py)
python3 scripts/meeting_list.py
python3 scripts/meeting_list.py --stock 600519.SH
python3 scripts/meeting_list.py --topic 银行 --size 20 --days 30
Parameters:--stock stock filter | --topic topic filter | --days days | --page/--size pagination
Traceability download (download_resource.py)
python3 scripts/download_resource.py --type 10 --id SOURCE_ID
python3 scripts/download_resource.py --type 10 --id SOURCE_ID --output report.pdf
Download the original research report PDF or obtain a third-party link via sourceId. type 40 is not supported.
Token acquisition (get_token.py)
python3 scripts/get_token.py
API Endpoints
| Function | Method | Path |
|---|---|---|
| Authentication | POST | /application/auth/oauth/open/loginV2 |
| Knowledge base search | POST | /application/open-data/ai/search/knowledge/batch |
| Earnings forecast | POST | /application/open-data/report/forecast/info |
| Indicator query | POST | /application/open-ai/ai/search/indicator |
| Meeting list | POST | /application/open-meeting/cnfr/getList |
| Traceability download | GET | /application/open-data/ai/resource/download |
Resource Types
| Code | Type | Search | Traceability download |
|---|---|---|---|
| 10 | Brokerage research reports | ✅ | ✅ (some brokerages have whitelist restrictions) |
| 20 | Internal research reports | ✅ | ✅ |
| 40 | Chief analyst views | ✅ | ❌ |
| 50 | Company announcements | ✅ | ✅ |
| 60 | Conference platform minutes | ✅ | ✅ |
| 70 | Research meeting minutes announcements | ✅ | ✅ |
| 80 | Online resource minutes | ✅ | ✅ (returns URL) |
| 90 | Industry WeChat public accounts | ✅ | ✅ (returns URL) |
Knowledge Names
system_knowledge_doc— system library (default)tenant_knowledge_doc— tenant library
Security notes
.env、config.json、.token_cachepermissions are automatically set to 600- Do not commit the above files to version control