risk-assessment

Calculate risk metrics for stocks and positions.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "risk-assessment" with this command: npx skills add staskh/trading_skills/staskh-trading-skills-risk-assessment

Risk Assessment

Calculate risk metrics for stocks and positions.

Instructions

Note: If uv is not installed or pyproject.toml is not found, replace uv run python with python in all commands below.

uv run python scripts/risk.py SYMBOL [--period PERIOD] [--position-size SIZE]

Arguments

  • SYMBOL

  • Ticker symbol

  • --period

  • Analysis period: 1mo, 3mo, 6mo, 1y (default: 1y)

  • --position-size

  • Dollar amount for position-specific metrics (optional)

Output

Returns JSON with:

  • volatility

  • Historical volatility (annualized)

  • beta

  • Beta vs SPY

  • var_95

  • 95% Value at Risk (daily)

  • var_99

  • 99% Value at Risk (daily)

  • max_drawdown

  • Maximum drawdown in period

  • sharpe_ratio

  • Risk-adjusted return

  • position_risk

  • If position-size provided, dollar VaR

Explain what the risk metrics mean and suggest position sizing if relevant.

Dependencies

  • numpy

  • yfinance

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

fundamentals

No summary provided by upstream source.

Repository SourceNeeds Review
General

ib-portfolio

No summary provided by upstream source.

Repository SourceNeeds Review
General

news-sentiment

No summary provided by upstream source.

Repository SourceNeeds Review
General

report-stock

No summary provided by upstream source.

Repository SourceNeeds Review