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_cn_stock_market_shanghai_shenzhen
Tool
get_cn_stock_market_shanghai_shenzhen
Get China stock market data for Shanghai (SH) and Shenzhen (SZ).
Parameters:
symbol_list(array of string, required): Stock symbols to query.- Use
SH/SZprefixes, e.g."SH600519","SH600036". - Example:
["SH600519", "SH600036"]
- Use
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_cn_stock_market_shanghai_shenzhen '{"symbol_list": ["SH600519", "SH600036"]}'
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_cn_stock_market_shanghai_shenzhen", "data": { "symbol_list": ["SH600519", "SH600036"] } }'


