360 Secure SkillHub
360 安全技能中心

Hong Kong Stock Market HKEX

核心功能为查询港交所指定股票的行情数据,需先配置OneKey Gateway API密钥。典型场景是投资者获取港股最新行情,支持CLI命令行和HTTP(curl)两种调用方式。输入为必填的股票代码数组(如["700"]),输出为JSON格式结果,包含请求状态、对应股票行情数据或错误提示信息。

ai-hub-admin
ai-hub-admin
热度 44.40
最近更新 2026-05-11 17:38:22
分类:数据依赖:第三方 API应用场景:财务 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add hk-stock-market-hkex
Metadata
name
hk-stock-market-hkex
description
Get HKEX (Hong Kong Stock Exchange) market data via FinanceAgent on OneKey Gateway.
env
{"DEEPNLP_ONEKEY_ROUTER_ACCESS":{"required":true,"description":"OneKey Gateway API key"}}
dependencies
{"npm":["@aiagenta2z/onekey-gateway"]}
installation
{"npm":"npm -g install @aiagenta2z/onekey-gateway"}

OneKey Gateway

Use one access key to connect to various commercial APIs via the DeepNLP OneKey Agent Router.

Quick Start

Set your OneKey Access Key

export DEEPNLP_ONEKEY_ROUTER_ACCESS=your_access_key

Common settings:

  • unique_id: aiagenta2z/financeagent
  • api_id: get_hk_stock_market_hkex

Tool

get_hk_stock_market_hkex

Get HKEX (Hong Kong Stock Exchange) stock market data.

Parameters:

  • symbol_list (array of string, required): Stock symbols to query.
    • For HKEX, this is typically the numeric stock code as a string (to preserve leading zeros if present), e.g. "700", "1024".
    • Example: ["700", "1024"]

Response (JSON):

  • success (boolean): Whether the request succeeded.
  • data (array): List of stock quote objects (fields depend on the upstream data source).
  • message (string, optional): Error message when success=false.

Usage

CLI Usage

## install onekey agent gateway
npm install @aiagenta2z/onekey-gateway

## CLI to Call API and Symbol List
npx onekey agent aiagenta2z/financeagent get_hk_stock_market_hkex '{"symbol_list": ["700", "1024"]}'

HTTP (curl) Usage

export DEEPNLP_ONEKEY_ROUTER_ACCESS=your_access_key

curl -v -X POST "https://agent.deepnlp.org/agent_router" \
  -H "Content-Type: application/json" \
  -H "X-OneKey: $DEEPNLP_ONEKEY_ROUTER_ACCESS" \
  -d '{
    "unique_id": "aiagenta2z/financeagent",
    "api_id": "get_hk_stock_market_hkex",
    "data": {
      "symbol_list": ["700", "1024"]
    }
  }'