360 Secure SkillHub
360 安全技能中心

Hong Kong Stock Market HKEX

封装 DeepNLP OneKey Gateway 的 FinanceAgent 接口,调用 get_hk_stock_market_hkex,按股票代码列表获取 HKEX 行情数据并返回 JSON;需提供 OneKey 访问密钥,可通过 npx 命令行或 curl 调用。

ai-hub-admin
ai-hub-admin
热度 44.35
最近更新 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"]
    }
  }'