扫描报告
5 /100
tradingview-screener
Screen markets across 6 asset classes using TradingView data. API pre-filters + pandas computed signals. YAML-driven strategies.
TradingView Screener 技能功能清晰,无恶意行为,依赖官方 tvscreener 库进行市场数据筛选,代码结构规范。
可以安装
可直接使用。该技能符合声明功能,无敏感操作或数据外泄行为。
安全发现 2 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 低危 | 依赖版本使用宽松约束 供应链 | scripts/requirements.txt:1 |
| 提示 | 表达式验证机制理论风险 代码混淆 | scripts/signal_types.py:17 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 文件系统 | READ | READ | ✓ 一致 | scripts/screen.py:1 仅读取本地脚本和 YAML 配置 |
| 网络访问 | READ | READ | ✓ 一致 | tvscreener 库调用 TradingView API 获取市场数据,行为符合声明 |
| 命令执行 | WRITE | WRITE | ✓ 一致 | install.sh 仅用于创建 venv 和 pip install,属于正常安装流程 |
| 环境变量 | NONE | NONE | — | 代码未访问 os.environ |
| 数据库 | NONE | NONE | — | 无数据库操作 |
目录结构
19 文件 · 59.6 KB · 2145 行 Markdown 5f · 1032L
Python 7f · 881L
YAML 4f · 166L
Shell 1f · 51L
JSON 1f · 11L
Text 1f · 4L
├─
▾
assets
│ └─
signal-template.yaml
YAML
├─
▾
references
│ ├─
computed-signals-guide.md
Markdown
│ ├─
field-presets.md
Markdown
│ ├─
strategy-templates.md
Markdown
│ └─
tvscreener-api-guide.md
Markdown
├─
▾
scripts
│ ├─
▾
tests
│ │ ├─
__init__.py
Python
│ │ ├─
test_screen.py
Python
│ │ └─
test_signal_engine.py
Python
│ ├─
requirements.txt
Text
│ ├─
screen.py
Python
│ ├─
screener_constants.py
Python
│ ├─
signal_engine.py
Python
│ └─
signal_types.py
Python
├─
▾
state
│ └─
▾
signals
│ ├─
golden-cross.yaml
YAML
│ ├─
oversold-bounce.yaml
YAML
│ └─
volume-breakout.yaml
YAML
├─
_meta.json
JSON
├─
install.sh
Shell
└─
SKILL.md
Markdown
依赖分析 4 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
tvscreener | >=0.2.0 | pip | 否 | 无版本锁定,使用宽松约束 |
pandas | >=2.0.0 | pip | 否 | 官方库 |
pyyaml | >=6.0 | pip | 否 | 官方库 |
pytest | >=7.0.0 | pip | 否 | 开发依赖 |
安全亮点
✓ 功能声明清晰,与实际代码完全对应
✓ 无凭证收割、远程代码执行或数据外泄行为
✓ 表达式验证机制(即使使用黑名单)增加了防护层
✓ 测试覆盖率完整,包含单元测试和集成测试
✓ 使用官方 tvscreener 库而非自实现 API 调用
✓ YAML 配置文件验证严格,确保必需字段存在
✓ 文档详尽,包含 API 指南、信号指南和策略模板