- name
- cn-stock-market-shanghai-shenzhen
- description
- Get China A-share market data (Shanghai/SH and Shenzhen/SZ) via FinanceAgent on OneKey Gateway.
- env
- DEEPNLP_ONEKEY_ROUTER_ACCESS
- required
- true
- description
- OneKey Gateway API key
- dependencies
- npm
- 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_keyCommon 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 / SZ prefixes, e.g. "SH600519", "SH600036". - Example: ["SH600519", "SH600036"]
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
## 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
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_cn_stock_market_shanghai_shenzhen",
"data": {
"symbol_list": ["SH600519", "SH600036"]
}
}'