us-market
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUS Market — 美股市场聚合 Skill
美股市场 — 美股市场聚合 Skill
所有接口均为 V2 版本()。/api/v2/...
所有接口均为 V2 版本()。/api/v2/...
Curl Setup
Curl 配置
bash
BASE="http://43.167.234.49:3101"
AUTH=(-H "X-API-Key: 123456" -H "Content-Type: application/json")bash
BASE="http://43.167.234.49:3101"
AUTH=(-H "X-API-Key: 123456" -H "Content-Type: application/json")下属 Skills
下属 Skills
| Skill | 维度 | 触发场景 |
|---|---|---|
| 实时行情 | "苹果现在多少钱""美股实时" |
| K线 | "苹果日K""特斯拉周线" |
| 基础数据 | "美股列表""美股交易日" |
| 技术指标 | "RSI""MACD"(market= |
| Skill | 维度 | 触发场景 |
|---|---|---|
| 实时行情 | "苹果现在多少钱""美股实时" |
| K线 | "苹果日K""特斯拉周线" |
| 基础数据 | "美股列表""美股交易日" |
| 技术指标 | "RSI""MACD"(market= |
路由规则
路由规则
用户输入
│
├── 实时价格/现价/报价 → us-realtime-quote
│ 参数:codes(Ticker),如 AAPL
│
├── K线/日线/周线/月线 → us-kline
│ 参数:symbol(Ticker),如 AAPL
│
├── 美股列表/交易日 → us-fundamental
│
└── 技术指标/RSI/MACD... → cross-market-indicators
参数:market=us, symbol(Ticker)用户输入
│
├── 实时价格/现价/报价 → us-realtime-quote
│ 参数:codes(Ticker),如 AAPL
│
├── K线/日线/周线/月线 → us-kline
│ 参数:symbol(Ticker),如 AAPL
│
├── 美股列表/交易日 → us-fundamental
│
└── 技术指标/RSI/MACD... → cross-market-indicators
参数:market=us, symbol(Ticker)代码格式速查
代码格式速查
美股代码格式统一,无歧义:
| 接口类型 | 参数名 | 格式 |
|---|---|---|
| securities(实时行情) | | |
| K线(stocks) | | |
| 其他所有接口 | | |
美股代码格式统一,无歧义:
| 接口类型 | 参数名 | 格式 |
|---|---|---|
| securities(实时行情) | | |
| K线(stocks) | | |
| 其他所有接口 | | |
典型 Workflow
典型工作流
个股综合分析
个股综合分析
bash
undefinedbash
undefined并行获取:实时行情 + K线
并行获取:实时行情 + K线
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/securities?codes=AAPL" &
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/stocks?symbol=AAPL&limit=60" &
wait
undefinedcurl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/securities?codes=AAPL" &
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/stocks?symbol=AAPL&limit=60" &
wait
undefined多股对比
多股对比
bash
undefinedbash
undefined并行获取:多只股票实时行情 + K线
并行获取:多只股票实时行情 + K线
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/securities?codes=AAPL,TSLA,MSFT" &
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/stocks?symbol=AAPL&limit=30" &
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/stocks?symbol=TSLA&limit=30" &
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/stocks?symbol=MSFT&limit=30" &
wait
undefinedcurl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/securities?codes=AAPL,TSLA,MSFT" &
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/stocks?symbol=AAPL&limit=30" &
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/stocks?symbol=TSLA&limit=30" &
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/stocks?symbol=MSFT&limit=30" &
wait
undefined技术分析
技术分析
bash
undefinedbash
undefinedK线 + 批量指标并行
K线 + 批量指标并行
curl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/stocks?symbol=AAPL&limit=100" &
curl -sS "${AUTH[@]}" -X POST "$BASE/api/v2/indicators/batch" -d '{
"market": "us", "symbol": "AAPL", "interval": "1d", "limit": 100,
"indicators": [
{"type": "rsi", "params": [14]},
{"type": "macd", "params": [12, 26, 9]},
{"type": "boll", "params": [20, 2.0]},
{"type": "kdj", "params": [9, 3, 3]}
]
}' &
wait
undefinedcurl -sS "${AUTH[@]}" "$BASE/api/v2/usstock/stocks?symbol=AAPL&limit=100" &
curl -sS "${AUTH[@]}" -X POST "$BASE/api/v2/indicators/batch" -d '{
"market": "us", "symbol": "AAPL", "interval": "1d", "limit": 100,
"indicators": [
{"type": "rsi", "params": [14]},
{"type": "macd", "params": [12, 26, 9]},
{"type": "boll", "params": [20, 2.0]},
{"type": "kdj", "params": [9, 3, 3]}
]
}' &
wait
undefined