Assess risk metrics for a stock or position including volatility, beta, VaR, and drawdown analysis. Use when user asks about risk, volatility, beta, VaR, value at risk, drawdown, or position sizing.
89%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Calculate risk metrics for stocks and positions.
Note: If
uvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin all commands below.
uv run python scripts/risk.py SYMBOL [--period PERIOD] [--position-size SIZE]SYMBOL - Ticker symbol--period - Analysis period: 1mo, 3mo, 6mo, 1y (default: 1y)--position-size - Dollar amount for position-specific metrics (optional)Returns JSON with:
volatility - Historical volatility (annualized)beta - Beta vs SPYvar_95 - 95% Value at Risk (daily)var_99 - 99% Value at Risk (daily)max_drawdown - Maximum drawdown in periodsharpe_ratio - Risk-adjusted returnposition_risk - If position-size provided, dollar VaRExplain what the risk metrics mean and suggest position sizing if relevant.
numpyyfinanceAll timestamps and time-based calculations must use the America/New_York timezone. All JSON output must include generated_at (NY time string) and data_delay fields.
staskh/trading_skills
b71a74f
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.