US Stock Radar
Run a practical US stock workflow in 3 modes:
- -
screener: rank a ticker universe by multi-factor signal score - INLINECODE1 : analyze one ticker with fundamentals + technical proxies
- INLINECODE2 : monitor custom tickers and output alert candidates
This skill is a read-only heuristic market workflow, not a full institutional research terminal. Public free endpoints may be partial, delayed, or rate-limited; surface those gaps explicitly.
Workflow
- 1. Run
scripts/us_stock_radar.py with the appropriate mode. - Read JSON output first; treat it as the source of truth.
- Explain conclusions with explicit caveats, confidence, and data gaps.
- Avoid deterministic predictions; present signal grade, trigger reasons, and partial-data warnings.
- If some endpoints fail, continue with degraded coverage and expose the reduction in confidence.
Quick Audit Path
For a fast review:
- 1. Run INLINECODE4
- Run INLINECODE5
- Confirm the script only performs read-only public HTTP requests.
- Verify that
availability, data_gaps, and degraded_mode are exposed when coverage is partial.
Commands
CODEBLOCK0
Safety / Scope Boundary
- - Read-only skill: query public market endpoints only.
- Use no authentication, cookies, brokerage accounts, or private APIs.
- Place no orders, execute no trades, and mutate no portfolio state.
- Write no files and send no outbound messages as part of normal use.
- Produce analysis only; not investment advice.
Output Policy
- - Default language behavior:
auto. - If
--lang auto and the prompt contains Chinese, switch final narrative to Chinese. - If
--lang auto and no Chinese is detected, use English. - INLINECODE12 output is language-neutral.
- Always include:
-
as_of_utc
-
mode
-
event_mode
-
availability
-
data_gaps
-
degraded_mode
-
confidence
-
sources
- heuristic notes / caveats
-
pro: concise signal summary
-
beginner: plain-language interpretation
-
normal
-
high-alert (stricter thresholds)
Scoring (A/B/C/D)
Signal score combines heuristic checks such as:
- - valuation range (PE)
- RSI health
- volume expansion
- price vs MA50
- revenue growth
- ROE quality
Grades:
- - A: score >= 5
- B: score = 4
- C: score = 2-3
- D: score <= 1
Interpretation Guardrails
- - Grades are heuristic summaries, not price targets.
- Missing fundamentals should lower confidence rather than silently default bullish/bearish.
- Free-market endpoints can be delayed, partially populated, or blocked by region.
- Premarket / scheduled workflows should keep timestamps explicit.
Data Sources
- - Yahoo Finance quote API: INLINECODE25
- Yahoo Finance chart API: INLINECODE26
- Yahoo Finance quoteSummary API: INLINECODE27
- Stooq public fallback: daily quote / history CSV endpoints
美股雷达
以三种模式运行实用的美股工作流程:
- - screener:通过多因子信号评分对股票池进行排名
- deep-dive:结合基本面和技术代理指标分析单只股票
- watchlist:监控自定义股票列表并输出预警候选
该技能是一个只读的启发式市场工作流程,并非完整的机构研究终端。公共免费端点可能存在数据不完整、延迟或速率限制;需明确说明这些差距。
工作流程
- 1. 使用相应模式运行 scripts/usstockradar.py
- 首先读取JSON输出;将其视为数据源
- 在解释结论时明确说明注意事项、置信度和数据缺口
- 避免确定性预测;呈现信号等级、触发原因和部分数据警告
- 如果某些端点失败,以降级覆盖继续运行,并说明置信度降低
快速审计路径
用于快速审查:
- 1. 运行 python3 skills/us-stock-radar/scripts/usstockradar.py --sources
- 运行 python3 skills/us-stock-radar/scripts/usstockradar.py --mode screener --json
- 确认脚本仅执行只读的公共HTTP请求
- 验证当覆盖不完整时,是否暴露了 availability、datagaps 和 degradedmode
命令
bash
python3 skills/us-stock-radar/scripts/usstockradar.py --sources
python3 skills/us-stock-radar/scripts/usstockradar.py --version
python3 skills/us-stock-radar/scripts/usstockradar.py --mode screener --tickers AAPL,MSFT,NVDA,AMZN,GOOGL
python3 skills/us-stock-radar/scripts/usstockradar.py --mode deep-dive --ticker AAPL --audience pro
python3 skills/us-stock-radar/scripts/usstockradar.py --mode deep-dive --ticker TSLA --audience beginner --lang zh
python3 skills/us-stock-radar/scripts/usstockradar.py --mode watchlist --tickers AAPL,NVDA,TSLA --event-mode high-alert
python3 skills/us-stock-radar/scripts/usstockradar.py --mode screener --json
安全/范围边界
- - 只读技能:仅查询公共市场端点
- 不使用任何认证、cookies、经纪账户或私有API
- 不下单、不执行交易、不修改投资组合状态
- 正常使用时不写入文件、不发送出站消息
- 仅提供分析;不构成投资建议
输出策略
- - 默认语言行为:auto
- 如果 --lang auto 且提示包含中文,将最终叙述切换为中文
- 如果 --lang auto 且未检测到中文,使用英文
- --json 输出为语言中立
- 始终包含:
- as
ofutc
- mode
- event_mode
- availability
- data_gaps
- degraded_mode
- confidence
- sources
- 启发式说明/注意事项
- pro:简洁的信号摘要
- beginner:通俗易懂的解释
- normal
- high-alert(更严格的阈值)
评分(A/B/C/D)
信号评分结合启发式检查,例如:
- - 估值范围(市盈率)
- RSI健康度
- 成交量扩张
- 价格与50日均线的关系
- 营收增长
- ROE质量
等级:
- - A:评分 >= 5
- B:评分 = 4
- C:评分 = 2-3
- D:评分 <= 1
解释护栏
- - 等级是启发式摘要,而非价格目标
- 缺失的基本面数据应降低置信度,而非默认为看涨/看跌
- 自由市场端点可能存在延迟、数据不完整或受地区限制
- 盘前/定时工作流程应明确标注时间戳
数据源
- - Yahoo Finance报价API:/v7/finance/quote
- Yahoo Finance图表API:/v8/finance/chart
- Yahoo Finance报价摘要API:/v10/finance/quoteSummary
- Stooq公共备用:每日报价/历史CSV端点