← 返回
未分类 Key 中文

Gangtise Kb

Query Gangtise knowledge base API to search and retrieve financial/market information. Use when the user asks about stocks, companies, market concepts, finan...
查询 Gangtise 知识库 API,搜索并获取金融/市场信息。用于用户询问股票、公司、市场概念、金融等相关信息。
hmaya hmaya 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 663
下载
💾 2
安装
1
版本
#latest

概述

Gangtise Knowledge Base Skill

This skill provides access to Gangtise's knowledge base API for querying financial and market information.

First Time Setup

Before using this skill, you need to configure your API credentials:

python3 scripts/configure.py

You will be prompted to enter your Access Key and Secret Key, which can be obtained from: https://open.gangtise.com

Authentication

The API uses OAuth2-style authentication:

  1. Use Access Key + Secret Access Key to get an access token via loginV2
  2. V2 接口返回的 accessToken 已经携带了 Bearer 前缀,后续接口调用不需要再拼接

Auth Request

{
  "accessKey": "your-access-key",
  "secretAccessKey": "your-secret-key"
}

Auth Response

{
  "code": "000000",
  "data": {
    "accessToken": "Bearer xxxx-xxxx-xxxx-xxxx",
    "expiresIn": 3600,
    "uid": 123,
    "userName": "your-name",
    "tenantId": 1,
    "time": 1704067200
  }
}

Base URL

  • Base URL: https://open.gangtise.com

Available Scripts

Configuration (First Time Setup)

python3 scripts/configure.py

Interactive setup for API credentials. Run this first before using any other scripts.

Get Access Token

python3 scripts/get_token.py

Returns a valid access token for API calls.

Query Knowledge Base

# Basic query
python3 scripts/query_kb.py "比亚迪最新消息"

# With options
python3 scripts/query_kb.py "特斯拉" --type 10,40 --top 5 --days 180

# With explicit token
python3 scripts/query_kb.py "宁德时代" --token YOUR_TOKEN

API Endpoints

Authentication

  • POST /application/auth/oauth/open/loginV2
  • Body: { "accessKey": "...", "secretAccessKey": "..." }
  • Returns: { "code": "000000", "data": { "accessToken": "..." } }
  • Note: V2接口返回的accessToken已经携带了Bearer前缀

Knowledge Base Query

  • POST /application/open-data/ai/search/knowledge/batch
  • Header: Authorization: Bearer {token}
  • Content-Type: application/json

Request Parameters

参数名必选类型说明
--------------------------
queriesList查询条件列表,最大支持5个查询条件
topInteger返回文档数量,默认10,最大支持20
resourceTypesList知识库资源类型列表
knowledgeNamesList知识库类型(默认只使用系统库)
startTimeLong数据查询开始时间(13位时间戳)
endTimeLong数据查询结束时间(13位时间戳)

Resource Types

代码类型说明
------------------
10券商研究报告证券公司发布的研究报告
20内部研究报告机构内部研究报告
40首席分析师观点分析师观点文章
50公司公告上市公司公告
60会议平台纪要会议纪要
70调研纪要公告调研纪要
80网络资源纪要网络资源
90产业公众号产业相关公众号文章

Knowledge Names

  • system_knowledge_doc - 系统库(默认)
  • tenant_knowledge_doc - 租户库

Response Format

{
  "code": "000000",
  "msg": "操作成功",
  "status": true,
  "data": [
    {
      "query": "查询问题",
      "data": [
        {
          "content": "文本切片内容",
          "resourceType": 10,
          "title": "文件标题",
          "company": "公司",
          "industry": "行业",
          "time": 1746506803000,
          "sourceId": "溯源id",
          "knowledgeName": "知识库名称",
          "extraInfo": {
            "position": {
              "page": [1],
              "totalPages": 14,
              "polygon": []
            }
          }
        }
      ]
    }
  ]
}

HTTP Status Codes

状态码说明
--------------
200操作成功
429接口繁忙,请稍后再试

Usage Examples

Query single topic

python3 scripts/query_kb.py "比亚迪" --top 3

Query with specific resource types

python3 scripts/query_kb.py "新能源" --type 10,50 --top 5

Query with time range (last 30 days)

python3 scripts/query_kb.py "AI芯片" --days 30 --top 10

Raw JSON output

python3 scripts/query_kb.py "宁德时代" --json

Configuration File

Credentials are stored in config.json (created automatically by configure.py):

{
  "ACCESS_KEY": "your-access-key",
  "SECRET_KEY": "your-secret-key",
  "BASE_URL": "https://open.gangtise.com"
}

Note: The configuration file has restricted permissions (600) to protect your credentials.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-02 01:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 187 📥 62,148
professional

Stock Market Pro

kys42
Yahoo Finance (yfinance) 驱动的股票分析技能:行情报价、基本面、ASCII 趋势图、高分辨率图表(RSI/MACD/BB/VWAP/ATR),以及可选的网络...
★ 162 📥 40,054
professional

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 122 📥 41,495