How oolallal/pocket-hedge-v1 works
Pocket Hedge v1 is a browser-based portfolio risk analyzer. Users provide equity symbols and weights, then the app obtains benchmark and equity price data, prepares aligned log returns, calculates portfolio risk metrics, and displays the results as JSON. The README documents local benchmark caching and the supported metrics, but no source excerpts were available; the graph therefore shows only documented relationships and does not infer implementation details within the HTML file.
Main entry points: pocket-hedge-v1.html Benchmark loading
Components 9
Portfolio inputs
- Symbols and weights
pocket-hedge-v1.html
Market data
- Benchmark loading
pocket-hedge-v1.html - Benchmark cache
- Stooq CSV
- Equity price loading
pocket-hedge-v1.html
Risk analysis
- Aligned log returns
pocket-hedge-v1.html - Risk metrics
pocket-hedge-v1.html - JSON results
pocket-hedge-v1.html
Other components
- Portfolio user
Connections 10
- Portfolio user → Symbols and weights: enters portfolio
README.md - Symbols and weights → Benchmark loading: starts analysis
README.md - Benchmark loading → Benchmark cache: uses cache
README.md - Benchmark loading → Stooq CSV: loads benchmark
README.md - Symbols and weights → Equity price loading: requests symbols
README.md - Equity price loading → Stooq CSV: fetches prices
README.md - Benchmark loading → Aligned log returns: provides benchmark data
README.md - Equity price loading → Aligned log returns: provides prices
README.md - Aligned log returns → Risk metrics: feeds calculations
README.md - Risk metrics → JSON results: displays metrics
README.md