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
shellexport DEEPNLP_ONEKEY_ROUTER_ACCESS=your_access_key
Common settings:
unique_id:aiagenta2z/financeagentapi_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"]
- For HKEX, this is typically the numeric stock code as a string (to preserve leading zeros if present), e.g.
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 whensuccess=false.
Usage
CLI Usage
shell## 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
shellexport 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"] } }'


