yf-risk

Community

Portfolio risk analytics from yfinance data.

Authorphanijapps
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Perform portfolio construction and risk diagnostics directly from yfinance multi-asset return series. Use when an agent needs correlation analysis, drawdown and VaR metrics, stress scenarios, or weight optimization for stock, ETF, and crypto portfolios.

Core Features & Use Cases

  • Compute aligned return matrices from yfinance data.
  • Generate risk metrics including annualized return, volatility, Sharpe ratio, max drawdown, rolling correlations, VaR/CVaR.
  • Run scenario checks (market shocks, volatility spikes) and optionally optimize weights under explicit constraints.
  • Use case: An AI agent evaluating a mixed-asset portfolio can quickly obtain risk diagnostics and a suggested allocation.

Quick Start

Compute risk metrics and a risk-aware allocation from the aligned yfinance return streams.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: yf-risk
Download link: https://github.com/phanijapps/zbot/archive/main.zip#yf-risk

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.