stock-analysis-plugin 0.2.7__tar.gz → 0.2.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/.github/workflows/ci.yml +11 -5
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/.github/workflows/publish.yml +5 -1
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/.gitignore +4 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/AGENTS.md +4 -4
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/PKG-INFO +26 -12
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/README.md +25 -11
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/dsh/README.md +2 -2
- stock_analysis_plugin-0.2.9/dsh/deepseek-search.patch.yml +8 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/dsh/index.ts +241 -5
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/dsh/package.json +10 -4
- stock_analysis_plugin-0.2.9/dsh/research-role.ts +22 -0
- stock_analysis_plugin-0.2.9/dsh/research.patch.yml +90 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/hermes/plugin.yaml +3 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/hermes/schemas.py +159 -4
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/hermes/tools.py +23 -5
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/openclaw/README.md +1 -1
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/openclaw/index.ts +88 -7
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/openclaw/openclaw.plugin.json +4 -1
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/openclaw/package.json +4 -3
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/package-lock.json +209 -175
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/package.json +10 -6
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/pi/index.ts +268 -6
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/pyproject.toml +1 -1
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/scripts/setup-python.mjs +11 -4
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/scripts/venv-python.mjs +7 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/bull-trend/SKILL.md +11 -1
- stock_analysis_plugin-0.2.9/skills/bull-trend/references/monthly-trend-strategy.md +47 -0
- stock_analysis_plugin-0.2.9/skills/bull-trend/references/trend-horizons.md +43 -0
- stock_analysis_plugin-0.2.9/skills/bull-trend/references/trend-temperature.md +57 -0
- stock_analysis_plugin-0.2.9/skills/bull-trend/scripts/market_trend.py +78 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/event-driven/SKILL.md +2 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/market-review/SKILL.md +1 -1
- stock_analysis_plugin-0.2.9/skills/sector-rotation/SKILL.md +57 -0
- stock_analysis_plugin-0.2.9/skills/sector-rotation/references/computation.md +83 -0
- stock_analysis_plugin-0.2.9/skills/sector-rotation/references/strategy_rules.md +62 -0
- stock_analysis_plugin-0.2.9/skills/sector-rotation/scripts/rotation_metrics.py +11 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/stock-analysis/SKILL.md +5 -2
- stock_analysis_plugin-0.2.9/skills/stock-analysis/references/host-workflows.md +45 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/stock-screener/SKILL.md +2 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/strategy-backtest/SKILL.md +12 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/analysis_quality.py +3 -2
- stock_analysis_plugin-0.2.9/tests/e2e/hermes_tool_spy.py +25 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/e2e/host_smoke.mjs +61 -27
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/e2e/test_analysis_quality.py +3 -2
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/e2e/test_dsh_e2e.ts +16 -0
- stock_analysis_plugin-0.2.9/tests/e2e/test_dsh_research.mjs +104 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/e2e/test_openclaw_e2e.ts +16 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/e2e/test_pi_e2e.ts +25 -4
- stock_analysis_plugin-0.2.9/tests/fixtures/rotation.ts +15 -0
- stock_analysis_plugin-0.2.9/tests/fixtures/trend_temperature.json +41 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_analysis_quality.py +16 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_backtest.py +168 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_capabilities.py +7 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_dsh_discovery.ts +2 -2
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_dsh_integration.ts +41 -2
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_hermes_integration.py +107 -0
- stock_analysis_plugin-0.2.9/tests/test_monthly_market_skill.py +73 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_openclaw_integration.ts +53 -3
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_pi_integration.ts +41 -1
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_report_renderer.py +34 -0
- stock_analysis_plugin-0.2.9/tests/test_sector_rotation.py +319 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_setup_python.mjs +8 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_technical.py +180 -0
- stock_analysis_plugin-0.2.9/tests/test_trend_strategy.py +387 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/backtest.py +70 -5
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/capabilities.py +6 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/cli_budgets.json +3 -1
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/report_renderer.py +4 -0
- stock_analysis_plugin-0.2.9/tools/sector_rotation.py +466 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/technical.py +186 -0
- stock_analysis_plugin-0.2.9/tools/trend_strategy.py +365 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/typings/openclaw/index.d.ts +2 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/.github/release.yml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/.github/workflows/autofix.yml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/.npmignore +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/CLAUDE.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/LICENSE +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/docs/hermes-integration.en.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/docs/hermes-integration.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/docs/openclaw-integration.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/docs/pi-integration.en.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/docs/pi-integration.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/dsh/cordis.patch.yml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/dsh/discovery.ts +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/hermes/__init__.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/openclaw/.npmignore +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/requirements-dev.txt +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/ruff.toml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/schemas/market_review_schema.json +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/schemas/report_schema.json +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/scripts/ci-resolve-llm-host.mjs +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/scripts/cli-timeout.mjs +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/scripts/json-input.mjs +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/scripts/sync-version.sh +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/bottom-volume/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/bottom-volume/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/box-oscillation/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/box-oscillation/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/bull-trend/references/fat-tails.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/bull-trend/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/bull-trend/scripts/tail_analysis.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/chan-theory/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/chan-theory/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/dragon-head/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/dragon-head/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/emotion-cycle/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/emotion-cycle/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/event-driven/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/expectation-repricing/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/expectation-repricing/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/growth-quality/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/growth-quality/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/hot-theme/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/hot-theme/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/ma-crossover/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/ma-crossover/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/market-review/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/one-yang-three-yin/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/one-yang-three-yin/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/shrink-pullback/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/shrink-pullback/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/stock-analysis/references/short-term-trading.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/stock-analysis/references/stateless-analysis.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/stock-analysis/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/stock-screener/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/strategy-backtest/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/volume-breakout/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/volume-breakout/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/wave-theory/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/wave-theory/scripts/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/skills/wisburg-research/SKILL.md +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/strategies/examples/bottom_volume.yaml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/strategies/examples/box_oscillation.yaml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/strategies/examples/bull_trend.yaml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/strategies/examples/dragon_head.yaml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/strategies/examples/emotion_cycle.yaml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/strategies/examples/ma_crossover.yaml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/strategies/examples/rsi_oversold.yaml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/strategies/examples/shrink_pullback.yaml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/strategies/examples/volume_breakout.yaml +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/templates/_macros.j2 +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/templates/market_review/full.md.j2 +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/templates/stock_analysis/_evidence.md.j2 +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/templates/stock_analysis/brief.md.j2 +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/templates/stock_analysis/full.md.j2 +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/__init__.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/_stubs/dsh-tools.ts +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/_stubs/openclaw-sdk.ts +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/_stubs/typebox.ts +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/conftest.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/e2e/dsh_tool_spy.mjs +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/e2e/llm-host.ts +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/e2e/test_hermes_llm.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/e2e/test_host_llm.ts +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/e2e/test_host_to_python.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/e2e/test_provider_network.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/fixtures/analysis_quality.json +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/fixtures/stateless_analysis.json +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_alert_rules.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_anomaly_detect.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_backtest_advanced.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_data_cache.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_diagnostics.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_disclosures.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_dsh_sdk_compat.ts +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_hk_lixinger.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_import_parser.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_json_input.ts +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_kline_adjustment.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_llm_hosts.ts +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_market_regime.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_market_review.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_name_resolver.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_pattern.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_position_context.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_provider_network_helpers.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_risk_screening.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_screener.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_search_intel.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_sec_edgar.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_sec_holders.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_sentiment.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_signal_tracker.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_skill_workflows.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_stateless_analysis.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_stock_data.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_stock_data_failover.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_stock_data_margin.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_stock_data_short_term.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_subproc.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_tail_analysis_skill.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_trading_calendar.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_value_data.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_volume_analysis.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_watchlist.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tests/test_watchlist_context.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/__init__.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/_cache.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/_subproc.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/alert_rules.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/anomaly_detect.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/diagnostics.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/gather.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/import_parser.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/lixinger.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/market_regime.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/market_review.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/name_resolver.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/pattern.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/position_context.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/requirements.txt +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/risk_screening.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/screener.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/search_intel.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/sec_edgar.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/sec_holders.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/signal_tracker.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/stateless_analysis.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/stock_data.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/trading_calendar.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/value_data.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/volume_analysis.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/watchlist.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tools/watchlist_context.py +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/tsconfig.json +0 -0
- {stock_analysis_plugin-0.2.7 → stock_analysis_plugin-0.2.9}/typings/pi-agent/index.d.ts +0 -0
|
@@ -256,10 +256,10 @@ jobs:
|
|
|
256
256
|
|
|
257
257
|
- uses: actions/setup-python@v5
|
|
258
258
|
with:
|
|
259
|
-
python-version:
|
|
259
|
+
python-version: ${{ matrix.host == 'hermes' && '3.14' || '3.11' }}
|
|
260
260
|
|
|
261
261
|
- uses: actions/setup-node@v4
|
|
262
|
-
# OpenClaw 2026.
|
|
262
|
+
# OpenClaw 2026.10.5 requires Node >=24.16.
|
|
263
263
|
with:
|
|
264
264
|
node-version: "24.16.0"
|
|
265
265
|
cache: "npm"
|
|
@@ -275,11 +275,17 @@ jobs:
|
|
|
275
275
|
- name: Install host CLIs
|
|
276
276
|
# Pin the current host releases so failures are reproducible.
|
|
277
277
|
run: |
|
|
278
|
-
npm i -g @earendil-works/pi-coding-agent@
|
|
279
|
-
npm i -g openclaw@2026.
|
|
280
|
-
npm i -g @deepseek-ai/dsh@0.2.
|
|
278
|
+
npm i -g @earendil-works/pi-coding-agent@1.3.0
|
|
279
|
+
npm i -g openclaw@2026.10.5
|
|
280
|
+
npm i -g @deepseek-ai/dsh@0.2.1-rc.2
|
|
281
281
|
npm i -g pnpm@10
|
|
282
282
|
|
|
283
|
+
- name: dsh research presets and persistent runtime (offline)
|
|
284
|
+
if: matrix.host == 'dsh'
|
|
285
|
+
run: |
|
|
286
|
+
npm run build:dsh
|
|
287
|
+
node tests/e2e/test_dsh_research.mjs "$(npm root -g)/@deepseek-ai/dsh"
|
|
288
|
+
|
|
283
289
|
- name: Real-host smoke QA (${{ matrix.host }})
|
|
284
290
|
env:
|
|
285
291
|
OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL || vars.OPENAI_BASE_URL }}
|
|
@@ -213,6 +213,10 @@ jobs:
|
|
|
213
213
|
|| { echo "::error::dist/index.js missing from dsh npm tarball — build ran but files whitelist excludes dist/"; exit 1; }
|
|
214
214
|
grep -q "cordis.patch.yml" pack-dry-run.txt \
|
|
215
215
|
|| { echo "::error::cordis.patch.yml missing from dsh npm tarball — dsh bundle manifest would dangle"; exit 1; }
|
|
216
|
+
for file in dist/research-role.js research.patch.yml deepseek-search.patch.yml; do
|
|
217
|
+
grep -q "$file" pack-dry-run.txt \
|
|
218
|
+
|| { echo "::error::$file missing from dsh npm tarball"; exit 1; }
|
|
219
|
+
done
|
|
216
220
|
grep -q "LICENSE" pack-dry-run.txt \
|
|
217
221
|
|| { echo "::error::LICENSE missing from dsh npm tarball"; exit 1; }
|
|
218
222
|
|
|
@@ -230,7 +234,7 @@ jobs:
|
|
|
230
234
|
working-directory: dsh
|
|
231
235
|
run: |
|
|
232
236
|
npm pkg set name=dsh-stock-analysis
|
|
233
|
-
sed -i 's|@weaxs/dsh-stock-analysis|dsh-stock-analysis|g' cordis.patch.yml README.md
|
|
237
|
+
sed -i 's|@weaxs/dsh-stock-analysis|dsh-stock-analysis|g' cordis.patch.yml research.patch.yml README.md
|
|
234
238
|
grep -q 'name: "dsh-stock-analysis"' cordis.patch.yml
|
|
235
239
|
npm publish --access public --provenance
|
|
236
240
|
env:
|
|
@@ -29,6 +29,7 @@ node_modules/
|
|
|
29
29
|
!tools/cli_budgets.json
|
|
30
30
|
!tests/fixtures/analysis_quality.json
|
|
31
31
|
!tests/fixtures/stateless_analysis.json
|
|
32
|
+
!tests/fixtures/trend_temperature.json
|
|
32
33
|
!openclaw/openclaw.plugin.json
|
|
33
34
|
!strategies/**/*.yaml
|
|
34
35
|
|
|
@@ -66,3 +67,6 @@ dsh/strategies/
|
|
|
66
67
|
dsh/scripts/
|
|
67
68
|
dsh/*.tgz
|
|
68
69
|
.alma-snapshots/
|
|
70
|
+
|
|
71
|
+
# Local price snapshots and downloaded source evidence
|
|
72
|
+
outputs/trend-relative-selection-2026-10-16/
|
|
@@ -7,13 +7,13 @@ A multi-host agent plugin for stock analysis, screening, and strategy backtestin
|
|
|
7
7
|
The architecture is **one Python core, four thin host adapters**:
|
|
8
8
|
|
|
9
9
|
- `tools/*.py` — the shared CLI tools. **This is the single source of truth** for all behavior. Every tool prints JSON to stdout.
|
|
10
|
-
- `pi/index.ts` — Pi extension. `pi.registerTool` ×
|
|
10
|
+
- `pi/index.ts` — Pi extension. `pi.registerTool` ×68, each spawns a `tools/*.py` CLI.
|
|
11
11
|
- `hermes/` — Hermes plugin (`plugin.yaml` + `register(ctx)` in `__init__.py`; `tools.py` handlers → subprocess to the same CLIs). Discovered via the `hermes_agent.plugins` entry point.
|
|
12
|
-
- `openclaw/` — OpenClaw plugin (`openclaw.plugin.json` manifest + `index.ts` `definePluginEntry` + `registerTool` ×
|
|
13
|
-
- `dsh/` — dsh bundle (`package.json` `dsh.bundle` + `cordis.patch.yml` + `index.ts` cordis `apply(ctx)` with `defineTool` ×
|
|
12
|
+
- `openclaw/` — OpenClaw plugin (`openclaw.plugin.json` manifest + `index.ts` `definePluginEntry` + `registerTool` ×68). Bundled with esbuild.
|
|
13
|
+
- `dsh/` — dsh bundle (`package.json` `dsh.bundle` + `cordis.patch.yml` + `index.ts` cordis `apply(ctx)` with `defineTool` ×68 via `@deepseek-ai/dsh-tools`; skills via `ctx.skills.register`). Bundled with esbuild, `@deepseek-ai/*` external (peer deps).
|
|
14
14
|
- `skills/*/SKILL.md` — 20 workflow / strategy-methodology skills shared by all four hosts.
|
|
15
15
|
|
|
16
|
-
> **The invariant that matters most:** the four adapters expose the *same*
|
|
16
|
+
> **The invariant that matters most:** the four adapters expose the *same* 68 tools over the *same* Python CLIs. A change to a tool's name, parameters, or JSON output shape must be applied to **all four adapters and the relevant SKILL.md together** — never just one.
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: stock-analysis-plugin
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
4
4
|
Summary: Hermes plugin for stock analysis, screening, and strategy backtesting across A/HK/US/JP/KR/TW markets
|
|
5
5
|
Project-URL: Homepage, https://github.com/Weaxs/stock-analysis-plugin
|
|
6
6
|
Project-URL: Repository, https://github.com/Weaxs/stock-analysis-plugin
|
|
@@ -73,8 +73,8 @@ A 股 / 港股 / 美股 / 日股 / 韩股 / 台股综合分析、多因子选股
|
|
|
73
73
|
|
|
74
74
|
## 功能概览
|
|
75
75
|
|
|
76
|
-
- **
|
|
77
|
-
- **
|
|
76
|
+
- **70 个工具** — 行情数据、技术分析、K 线形态、资金流向、估值历史、财报日历、股东/ETF/股息、新闻舆情、风险筛查、市场状态等
|
|
77
|
+
- **21 个 Skills** — 综合分析、全市场选股、策略回测 + 18 个策略、复盘与研究方法论(缠论、波浪、龙头、情绪周期等)
|
|
78
78
|
- **策略回测引擎** — YAML DSL 定义策略,参数化条件组合,自动诊断,按需进行有限轮参数优化
|
|
79
79
|
- **多数据源 Failover** — 11 个数据源自动容灾切换(akshare / tushare / efinance / 腾讯行情 / 新浪行情 / pytdx / baostock / yfinance / finnhub / longbridge / alphavantage),A 股链路带粘性优选(最近成功的数据源下次优先尝试)
|
|
80
80
|
- **社交舆情增强** — A 股(东财股吧 + 雪球)/ 美港股(Reddit / X / Polymarket),市场自动路由
|
|
@@ -111,7 +111,7 @@ npm install @weaxs/stock-analysis-plugin
|
|
|
111
111
|
|
|
112
112
|
Pi 启动后自动加载,输入 `/skills` 确认。详见 [Pi Agent 接入指南](docs/pi-integration.md)([English](docs/pi-integration.en.md))。
|
|
113
113
|
|
|
114
|
-
新版 Pi(已核验 1.2.0)提供原生 `tool_search` 时,插件自动启用按需工具发现,
|
|
114
|
+
新版 Pi(已核验 1.2.0)提供原生 `tool_search` 时,插件自动启用按需工具发现,70 项能力保留注册,仅命中工具加载完整定义。缺少原生发现接口的旧版 Pi 或 SDK 宿主保持全量暴露。检索使用英文关键词或工具名,例如 `get_quote`、`get_financials`。
|
|
115
115
|
|
|
116
116
|
### Hermes Agent Plugin
|
|
117
117
|
|
|
@@ -136,7 +136,7 @@ register(ctx)
|
|
|
136
136
|
openclaw plugins install clawhub:@weaxs/openclaw-stock-analysis
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
OpenClaw Gateway 启动后自动加载并注册
|
|
139
|
+
OpenClaw Gateway 启动后自动加载并注册 70 个 tool。安装时 postinstall 会自动建 `.venv` 并装好 Python 依赖(前提:本机有 `python3 >= 3.10`)。
|
|
140
140
|
|
|
141
141
|
详见 [OpenClaw 接入指南](docs/openclaw-integration.md),或 plugin 自身说明 [`openclaw/README.md`](openclaw/README.md)。
|
|
142
142
|
|
|
@@ -147,7 +147,7 @@ dsh plugin --profile <你的profile> add @weaxs/dsh-stock-analysis
|
|
|
147
147
|
dsh --profile <你的profile>
|
|
148
148
|
```
|
|
149
149
|
|
|
150
|
-
作为 dsh bundle 安装:`dsh plugin add` 会把 `cordis.patch.yml` 叠加进 profile 组合,注册
|
|
150
|
+
作为 dsh bundle 安装:`dsh plugin add` 会把 `cordis.patch.yml` 叠加进 profile 组合,注册 70 个 tool + 21 个 skill。postinstall 自动建 `.venv`(pnpm 需在 profile 的 `pnpm-workspace.yaml` 里给本包配 `allowBuilds`,否则回退系统 `python3`)。
|
|
151
151
|
|
|
152
152
|
新版 dsh 的原生函数调用模式默认通过 `stock_tool_search` 按 Agent 搜索、加载所需工具,支持中文关键词或工具名;旧接口、搜索入口不可用时保留全量暴露。可设置 `toolDiscovery: false` 关闭,配置与 PTC 模式边界见下方接入文档。
|
|
153
153
|
|
|
@@ -255,7 +255,7 @@ Agent 会自动调用行情 → 技术面 → 基本面 → 资金面 → 消息
|
|
|
255
255
|
| 全市场选股 | `/skill:stock-screener` | L1 多因子硬筛(市场情绪调节,可选 `--l2` 量化增强)→ L2 LLM 智能排序 → 输出推荐列表 |
|
|
256
256
|
| 策略回测 | `/skill:strategy-backtest` | YAML 策略定义 → 回测 → 诊断;按需进行最多 3 轮参数优化 |
|
|
257
257
|
|
|
258
|
-
### 策略、复盘与研究(
|
|
258
|
+
### 策略、复盘与研究(18 个)
|
|
259
259
|
|
|
260
260
|
| Skill | 调用方式 | 方法论 |
|
|
261
261
|
|-------|----------|--------|
|
|
@@ -273,6 +273,7 @@ Agent 会自动调用行情 → 技术面 → 基本面 → 资金面 → 消息
|
|
|
273
273
|
| 事件驱动 | `/skill:event-driven` | 公告/政策/业绩事件的影响路径与失效条件 |
|
|
274
274
|
| 预期重估 | `/skill:expectation-repricing` | 市场预期与实际数据的偏差 |
|
|
275
275
|
| 成长质量 | `/skill:growth-quality` | 收入、利润、现金流与盈利能力的多期验证 |
|
|
276
|
+
| 行业 ETF 轮动研究 | `/skill:sector-rotation` | 确定性集中度/配权计算、跨市场分组的配权分项回测;完整深度模型尚未实现 |
|
|
276
277
|
| 热点题材 | `/skill:hot-theme` | 板块强度、扩散度、关联度与节奏 |
|
|
277
278
|
| 市场复盘 | `/skill:market-review` | 指数、宽度、板块、温度与次日策略 |
|
|
278
279
|
| Wisburg 投研 | `/skill:wisburg-research` | 检索机构研报、公告、电话会纪要和市场日报 |
|
|
@@ -315,13 +316,24 @@ Agent 会自动调用行情 → 技术面 → 基本面 → 资金面 → 消息
|
|
|
315
316
|
|
|
316
317
|
| 工具 | 说明 |
|
|
317
318
|
|------|------|
|
|
318
|
-
| `
|
|
319
|
+
| `calculate_rotation_metrics` | 真实MC-dropout分布集中度与历史原始配权计算;不生成预测或买入信号 |
|
|
320
|
+
| `backtest_rotation_allocation` | 股票/ETF代码自动取数,按市场与报价币种独立比较等权和历史配权;分项回测,非完整论文模型 |
|
|
321
|
+
| `analyze_trend_strategy` | 月度右侧趋势策略:单市场股票池筛选、真实旧仓保持/退出与逆波动新仓预算;直接传股票代码、自动取行情,无持仓存储,仍为not_validated |
|
|
322
|
+
| `get_technical_analysis` | 全面技术指标分析(MA/MACD/RSI/BOLL/KDJ;附实验性 trend_horizons 多期限月度趋势及独立趋势温度 trend_temperature;多周期共振时 resonance.direction ∈ aligned_bullish/aligned_bearish/divergent) |
|
|
319
323
|
| `analyze_pattern` | K 线形态识别 |
|
|
320
324
|
| `calculate_ma` | 多周期均线计算 |
|
|
321
325
|
| `get_volume_analysis` | 量价分析 |
|
|
322
326
|
| `evaluate_signal` | 历史信号胜率回测 |
|
|
323
327
|
| `detect_anomaly` | 当日技术、量价与资金异动扫描 |
|
|
324
328
|
|
|
329
|
+
`trend_temperature` 是独立趋势温度指标:`(EMA20-EMA60)/ATR14`,ATR 使用包含跳空的真实波幅简单均值。附分数、EMA差方向 `direction`、七档研究标签、前一期信息、数据日期和价格口径;`validation_status=not_validated`,真实股票试验未支持默认温度交易映射。方向按零轴计算,“平”标签不代表零方向;默认需 60 根预热,零 ATR 或坏行情返回不可用。±0.5/±1.5/±3 的分档尚未校准,不是趋势动物公式、肥尾指标、上涨概率或自动买卖信号,也不修改原综合评分。无需个人持仓存储;[公式、边界及回测说明](skills/bull-trend/references/trend-temperature.md)。
|
|
330
|
+
|
|
331
|
+
月度右侧趋势策略,通过 `analyze_trend_strategy(symbols, ...)` 调用:月初200日线上行入场、真实旧仓优先、63日波动预算;[输入格式与完整规则](skills/bull-trend/references/monthly-trend-strategy.md)。扩展及历史样本尚未通过完整效果门槛;直接提供股票代码即可自动取日K,输出信号与预算计划;实际成交/股数和共享资金回测另行核实,不自动保存持仓或下单。
|
|
332
|
+
|
|
333
|
+
趋势研究另返回 `trend_horizons`(daily、建议count=360):21/63/252根日K过去对数收益,在月初首根有效日K收盘观察并保持;显示期限组成、方向及观察日期,不强凑七档。与回测 `monthly_momentum` 共用计算,仍为 `not_validated`;[方法、预热与验证局限](skills/bull-trend/references/trend-horizons.md)。
|
|
334
|
+
|
|
335
|
+
市场只约束新开仓的三期限实验可运行 [market_trend.py](skills/bull-trend/scripts/market_trend.py),输入带预热的个股/同市场宽基daily OHLCV JSON,复用同一Python核心。月度入场、次日开盘、已有持仓按个股趋势退出;不会自动保存持仓或下单。[使用与当前验证边界](skills/bull-trend/references/trend-horizons.md#市场环境入场实验)。
|
|
336
|
+
|
|
325
337
|
### 筛选与回测
|
|
326
338
|
|
|
327
339
|
| 工具 | 说明 |
|
|
@@ -475,6 +487,8 @@ position:
|
|
|
475
487
|
| `volume_ratio` | 量比 | 是(默认 5) |
|
|
476
488
|
| `price_change` | 涨跌幅(%) | 否 |
|
|
477
489
|
| `bollinger_position` | 布林带位置(0=下轨, 1=上轨) | 是(默认 20) |
|
|
490
|
+
| `trend_score` | 独立实验趋势强度,默认 (EMA20−EMA60)/ATR14;fast_period/slow_period 控制 EMA | period 为 ATR 根数(默认 14) |
|
|
491
|
+
| `monthly_momentum` | 月初首根有效日K收盘观察过去 period 根对数收益,保持到下一观察;零成交量不计根数 | 是(默认63,要求正整数) |
|
|
478
492
|
| `close` / `volume` | 收盘价 / 成交量 | 否 |
|
|
479
493
|
|
|
480
494
|
### 可用运算符
|
|
@@ -593,20 +607,20 @@ GitHub Actions 的 `e2e-host` 使用 Pi、Hermes、OpenClaw、dsh 的真实运
|
|
|
593
607
|
```
|
|
594
608
|
stock-analysis/
|
|
595
609
|
├── pi/ # Pi Agent Extension
|
|
596
|
-
│ └── index.ts # 注册
|
|
610
|
+
│ └── index.ts # 注册 70 个工具 + 21 个 skill
|
|
597
611
|
├── hermes/ # Hermes Agent Plugin
|
|
598
612
|
│ ├── plugin.yaml # 插件清单
|
|
599
613
|
│ ├── __init__.py # register(ctx) 入口
|
|
600
614
|
│ ├── schemas.py # 工具 JSON Schema 定义
|
|
601
|
-
│ └── tools.py #
|
|
615
|
+
│ └── tools.py # 70 个 handler → subprocess 调 CLI
|
|
602
616
|
├── openclaw/ # OpenClaw Plugin
|
|
603
617
|
│ ├── openclaw.plugin.json # manifest(contracts.tools)
|
|
604
618
|
│ ├── package.json # 含 openclaw 块(pluginApi/SDK 版本)
|
|
605
|
-
│ └── index.ts # definePluginEntry + registerTool ×
|
|
619
|
+
│ └── index.ts # definePluginEntry + registerTool ×70
|
|
606
620
|
├── dsh/ # DeepSeek Harness (dsh) Plugin
|
|
607
621
|
│ ├── cordis.patch.yml # bundle patch(insert 插件入口)
|
|
608
622
|
│ ├── package.json # 含 dsh.bundle 块(bundle manifest)
|
|
609
|
-
│ └── index.ts # cordis apply(ctx) + defineTool ×
|
|
623
|
+
│ └── index.ts # cordis apply(ctx) + defineTool ×70
|
|
610
624
|
│
|
|
611
625
|
├── tools/ # 共享 Python CLI 工具
|
|
612
626
|
│ ├── stock_data.py # 行情 / 资金流 / 新闻 / 财务 / 短线情绪
|
|
@@ -32,8 +32,8 @@ A 股 / 港股 / 美股 / 日股 / 韩股 / 台股综合分析、多因子选股
|
|
|
32
32
|
|
|
33
33
|
## 功能概览
|
|
34
34
|
|
|
35
|
-
- **
|
|
36
|
-
- **
|
|
35
|
+
- **70 个工具** — 行情数据、技术分析、K 线形态、资金流向、估值历史、财报日历、股东/ETF/股息、新闻舆情、风险筛查、市场状态等
|
|
36
|
+
- **21 个 Skills** — 综合分析、全市场选股、策略回测 + 18 个策略、复盘与研究方法论(缠论、波浪、龙头、情绪周期等)
|
|
37
37
|
- **策略回测引擎** — YAML DSL 定义策略,参数化条件组合,自动诊断,按需进行有限轮参数优化
|
|
38
38
|
- **多数据源 Failover** — 11 个数据源自动容灾切换(akshare / tushare / efinance / 腾讯行情 / 新浪行情 / pytdx / baostock / yfinance / finnhub / longbridge / alphavantage),A 股链路带粘性优选(最近成功的数据源下次优先尝试)
|
|
39
39
|
- **社交舆情增强** — A 股(东财股吧 + 雪球)/ 美港股(Reddit / X / Polymarket),市场自动路由
|
|
@@ -70,7 +70,7 @@ npm install @weaxs/stock-analysis-plugin
|
|
|
70
70
|
|
|
71
71
|
Pi 启动后自动加载,输入 `/skills` 确认。详见 [Pi Agent 接入指南](docs/pi-integration.md)([English](docs/pi-integration.en.md))。
|
|
72
72
|
|
|
73
|
-
新版 Pi(已核验 1.2.0)提供原生 `tool_search` 时,插件自动启用按需工具发现,
|
|
73
|
+
新版 Pi(已核验 1.2.0)提供原生 `tool_search` 时,插件自动启用按需工具发现,70 项能力保留注册,仅命中工具加载完整定义。缺少原生发现接口的旧版 Pi 或 SDK 宿主保持全量暴露。检索使用英文关键词或工具名,例如 `get_quote`、`get_financials`。
|
|
74
74
|
|
|
75
75
|
### Hermes Agent Plugin
|
|
76
76
|
|
|
@@ -95,7 +95,7 @@ register(ctx)
|
|
|
95
95
|
openclaw plugins install clawhub:@weaxs/openclaw-stock-analysis
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
OpenClaw Gateway 启动后自动加载并注册
|
|
98
|
+
OpenClaw Gateway 启动后自动加载并注册 70 个 tool。安装时 postinstall 会自动建 `.venv` 并装好 Python 依赖(前提:本机有 `python3 >= 3.10`)。
|
|
99
99
|
|
|
100
100
|
详见 [OpenClaw 接入指南](docs/openclaw-integration.md),或 plugin 自身说明 [`openclaw/README.md`](openclaw/README.md)。
|
|
101
101
|
|
|
@@ -106,7 +106,7 @@ dsh plugin --profile <你的profile> add @weaxs/dsh-stock-analysis
|
|
|
106
106
|
dsh --profile <你的profile>
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
作为 dsh bundle 安装:`dsh plugin add` 会把 `cordis.patch.yml` 叠加进 profile 组合,注册
|
|
109
|
+
作为 dsh bundle 安装:`dsh plugin add` 会把 `cordis.patch.yml` 叠加进 profile 组合,注册 70 个 tool + 21 个 skill。postinstall 自动建 `.venv`(pnpm 需在 profile 的 `pnpm-workspace.yaml` 里给本包配 `allowBuilds`,否则回退系统 `python3`)。
|
|
110
110
|
|
|
111
111
|
新版 dsh 的原生函数调用模式默认通过 `stock_tool_search` 按 Agent 搜索、加载所需工具,支持中文关键词或工具名;旧接口、搜索入口不可用时保留全量暴露。可设置 `toolDiscovery: false` 关闭,配置与 PTC 模式边界见下方接入文档。
|
|
112
112
|
|
|
@@ -214,7 +214,7 @@ Agent 会自动调用行情 → 技术面 → 基本面 → 资金面 → 消息
|
|
|
214
214
|
| 全市场选股 | `/skill:stock-screener` | L1 多因子硬筛(市场情绪调节,可选 `--l2` 量化增强)→ L2 LLM 智能排序 → 输出推荐列表 |
|
|
215
215
|
| 策略回测 | `/skill:strategy-backtest` | YAML 策略定义 → 回测 → 诊断;按需进行最多 3 轮参数优化 |
|
|
216
216
|
|
|
217
|
-
### 策略、复盘与研究(
|
|
217
|
+
### 策略、复盘与研究(18 个)
|
|
218
218
|
|
|
219
219
|
| Skill | 调用方式 | 方法论 |
|
|
220
220
|
|-------|----------|--------|
|
|
@@ -232,6 +232,7 @@ Agent 会自动调用行情 → 技术面 → 基本面 → 资金面 → 消息
|
|
|
232
232
|
| 事件驱动 | `/skill:event-driven` | 公告/政策/业绩事件的影响路径与失效条件 |
|
|
233
233
|
| 预期重估 | `/skill:expectation-repricing` | 市场预期与实际数据的偏差 |
|
|
234
234
|
| 成长质量 | `/skill:growth-quality` | 收入、利润、现金流与盈利能力的多期验证 |
|
|
235
|
+
| 行业 ETF 轮动研究 | `/skill:sector-rotation` | 确定性集中度/配权计算、跨市场分组的配权分项回测;完整深度模型尚未实现 |
|
|
235
236
|
| 热点题材 | `/skill:hot-theme` | 板块强度、扩散度、关联度与节奏 |
|
|
236
237
|
| 市场复盘 | `/skill:market-review` | 指数、宽度、板块、温度与次日策略 |
|
|
237
238
|
| Wisburg 投研 | `/skill:wisburg-research` | 检索机构研报、公告、电话会纪要和市场日报 |
|
|
@@ -274,13 +275,24 @@ Agent 会自动调用行情 → 技术面 → 基本面 → 资金面 → 消息
|
|
|
274
275
|
|
|
275
276
|
| 工具 | 说明 |
|
|
276
277
|
|------|------|
|
|
277
|
-
| `
|
|
278
|
+
| `calculate_rotation_metrics` | 真实MC-dropout分布集中度与历史原始配权计算;不生成预测或买入信号 |
|
|
279
|
+
| `backtest_rotation_allocation` | 股票/ETF代码自动取数,按市场与报价币种独立比较等权和历史配权;分项回测,非完整论文模型 |
|
|
280
|
+
| `analyze_trend_strategy` | 月度右侧趋势策略:单市场股票池筛选、真实旧仓保持/退出与逆波动新仓预算;直接传股票代码、自动取行情,无持仓存储,仍为not_validated |
|
|
281
|
+
| `get_technical_analysis` | 全面技术指标分析(MA/MACD/RSI/BOLL/KDJ;附实验性 trend_horizons 多期限月度趋势及独立趋势温度 trend_temperature;多周期共振时 resonance.direction ∈ aligned_bullish/aligned_bearish/divergent) |
|
|
278
282
|
| `analyze_pattern` | K 线形态识别 |
|
|
279
283
|
| `calculate_ma` | 多周期均线计算 |
|
|
280
284
|
| `get_volume_analysis` | 量价分析 |
|
|
281
285
|
| `evaluate_signal` | 历史信号胜率回测 |
|
|
282
286
|
| `detect_anomaly` | 当日技术、量价与资金异动扫描 |
|
|
283
287
|
|
|
288
|
+
`trend_temperature` 是独立趋势温度指标:`(EMA20-EMA60)/ATR14`,ATR 使用包含跳空的真实波幅简单均值。附分数、EMA差方向 `direction`、七档研究标签、前一期信息、数据日期和价格口径;`validation_status=not_validated`,真实股票试验未支持默认温度交易映射。方向按零轴计算,“平”标签不代表零方向;默认需 60 根预热,零 ATR 或坏行情返回不可用。±0.5/±1.5/±3 的分档尚未校准,不是趋势动物公式、肥尾指标、上涨概率或自动买卖信号,也不修改原综合评分。无需个人持仓存储;[公式、边界及回测说明](skills/bull-trend/references/trend-temperature.md)。
|
|
289
|
+
|
|
290
|
+
月度右侧趋势策略,通过 `analyze_trend_strategy(symbols, ...)` 调用:月初200日线上行入场、真实旧仓优先、63日波动预算;[输入格式与完整规则](skills/bull-trend/references/monthly-trend-strategy.md)。扩展及历史样本尚未通过完整效果门槛;直接提供股票代码即可自动取日K,输出信号与预算计划;实际成交/股数和共享资金回测另行核实,不自动保存持仓或下单。
|
|
291
|
+
|
|
292
|
+
趋势研究另返回 `trend_horizons`(daily、建议count=360):21/63/252根日K过去对数收益,在月初首根有效日K收盘观察并保持;显示期限组成、方向及观察日期,不强凑七档。与回测 `monthly_momentum` 共用计算,仍为 `not_validated`;[方法、预热与验证局限](skills/bull-trend/references/trend-horizons.md)。
|
|
293
|
+
|
|
294
|
+
市场只约束新开仓的三期限实验可运行 [market_trend.py](skills/bull-trend/scripts/market_trend.py),输入带预热的个股/同市场宽基daily OHLCV JSON,复用同一Python核心。月度入场、次日开盘、已有持仓按个股趋势退出;不会自动保存持仓或下单。[使用与当前验证边界](skills/bull-trend/references/trend-horizons.md#市场环境入场实验)。
|
|
295
|
+
|
|
284
296
|
### 筛选与回测
|
|
285
297
|
|
|
286
298
|
| 工具 | 说明 |
|
|
@@ -434,6 +446,8 @@ position:
|
|
|
434
446
|
| `volume_ratio` | 量比 | 是(默认 5) |
|
|
435
447
|
| `price_change` | 涨跌幅(%) | 否 |
|
|
436
448
|
| `bollinger_position` | 布林带位置(0=下轨, 1=上轨) | 是(默认 20) |
|
|
449
|
+
| `trend_score` | 独立实验趋势强度,默认 (EMA20−EMA60)/ATR14;fast_period/slow_period 控制 EMA | period 为 ATR 根数(默认 14) |
|
|
450
|
+
| `monthly_momentum` | 月初首根有效日K收盘观察过去 period 根对数收益,保持到下一观察;零成交量不计根数 | 是(默认63,要求正整数) |
|
|
437
451
|
| `close` / `volume` | 收盘价 / 成交量 | 否 |
|
|
438
452
|
|
|
439
453
|
### 可用运算符
|
|
@@ -552,20 +566,20 @@ GitHub Actions 的 `e2e-host` 使用 Pi、Hermes、OpenClaw、dsh 的真实运
|
|
|
552
566
|
```
|
|
553
567
|
stock-analysis/
|
|
554
568
|
├── pi/ # Pi Agent Extension
|
|
555
|
-
│ └── index.ts # 注册
|
|
569
|
+
│ └── index.ts # 注册 70 个工具 + 21 个 skill
|
|
556
570
|
├── hermes/ # Hermes Agent Plugin
|
|
557
571
|
│ ├── plugin.yaml # 插件清单
|
|
558
572
|
│ ├── __init__.py # register(ctx) 入口
|
|
559
573
|
│ ├── schemas.py # 工具 JSON Schema 定义
|
|
560
|
-
│ └── tools.py #
|
|
574
|
+
│ └── tools.py # 70 个 handler → subprocess 调 CLI
|
|
561
575
|
├── openclaw/ # OpenClaw Plugin
|
|
562
576
|
│ ├── openclaw.plugin.json # manifest(contracts.tools)
|
|
563
577
|
│ ├── package.json # 含 openclaw 块(pluginApi/SDK 版本)
|
|
564
|
-
│ └── index.ts # definePluginEntry + registerTool ×
|
|
578
|
+
│ └── index.ts # definePluginEntry + registerTool ×70
|
|
565
579
|
├── dsh/ # DeepSeek Harness (dsh) Plugin
|
|
566
580
|
│ ├── cordis.patch.yml # bundle patch(insert 插件入口)
|
|
567
581
|
│ ├── package.json # 含 dsh.bundle 块(bundle manifest)
|
|
568
|
-
│ └── index.ts # cordis apply(ctx) + defineTool ×
|
|
582
|
+
│ └── index.ts # cordis apply(ctx) + defineTool ×70
|
|
569
583
|
│
|
|
570
584
|
├── tools/ # 共享 Python CLI 工具
|
|
571
585
|
│ ├── stock_data.py # 行情 / 资金流 / 新闻 / 财务 / 短线情绪
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Stock Analysis — DeepSeek Harness (dsh) Plugin
|
|
2
2
|
|
|
3
|
-
A股 / 港股 / 美股 / 日股 / 韩股 / 台股 行情、技术分析、筛选与回测。作为 dsh bundle 安装到 profile 后,对话中可调用
|
|
3
|
+
A股 / 港股 / 美股 / 日股 / 韩股 / 台股 行情、技术分析、筛选与回测。作为 dsh bundle 安装到 profile 后,对话中可调用 70 个工具,并自动注册 21 个工作流/策略方法论 skill。
|
|
4
4
|
|
|
5
5
|
## 按需工具发现
|
|
6
6
|
|
|
7
|
-
支持作用域工具接口和请求组装钩子的新版 dsh 默认增加一个宿主控制入口 `stock_tool_search`,原有
|
|
7
|
+
支持作用域工具接口和请求组装钩子的新版 dsh 默认增加一个宿主控制入口 `stock_tool_search`,原有 70 个分析工具的名称、参数和输出不变。原生函数调用模式下,首次请求只暴露这个发现入口;其他插件的工具照常保留。搜索支持中文描述、英文关键词或确切工具名,例如 `财务`、`get_quote`、`run_backtest`;命中工具在下一次模型请求提供完整 schema,再按原名调用。默认最多加载 5 项,`limit` 可设 1 到 20;无匹配返回空列表。
|
|
8
8
|
|
|
9
9
|
加载集合按 Agent 隔离,搜索和回退均保留宿主已有的工具权限限制。搜索入口被禁止或移除时,下一次请求保留原先已授权的完整股票工具目录。旧版缺少相关接口时保持全量暴露;PTC / both 模式沿用宿主生成的 SDK,不做发现过滤。加载集合在本次运行中保留,恢复会话或重载插件后需重新搜索。
|
|
10
10
|
|