{"repo":"mr-karan/monkeybeat","free":true,"listed":false,"github":"https://github.com/mr-karan/monkeybeat","clone":"git clone https://github.com/mr-karan/monkeybeat.git","description":"Generate a random stock portfolio and find out if it beats the markets!","language":"Python","stars":72,"topics":["stock-market"],"license":"MIT","category":"databases-storage","readme_excerpt":"MonkeyBeat Can random stock picks beat professional fund managers? MonkeyBeat generates equi-weighted portfolios of 10 randomly selected stocks from NSE indices and compares their performance against the underlying benchmark. Test the \"monkeys throwing darts\" hypothesis yourself! Quick Start Open http://localhost:7777 First run takes 5-10 minutes to fetch 5 years of stock data from Yahoo Finance. Features - Single file app - Everything in app.py ( 850 lines) - Zero setup - Embedded DuckDB, no external database - 9 NSE indices - From NIFTY 50 to Smallcap 250 - Monte Carlo simulations - 100 random portfolios per request - Fast - 150ms response after data is loaded - Shareable - UUID-based links with social sharing Supported Indices Index Stocks Category ------- -------- ---------- NIFTY 50 50 Large Cap NIFTY Next 50 50 Large Cap NIFTY 100 100 Large Cap NIFTY 200 200 Large Cap NIFTY 500 500 Large Cap NIFTY Midcap 100 100 Mid Cap NIFTY Midcap 150 150 Mid Cap NIFTY Smallcap 100 100 Small Cap NIFTY Smallcap 250 250 Small Cap How It Works 1. Select an index from the dropdown 2. App randomly picks 10 stocks from that index 3. Calculates returns over 1M, 6M, 1Y, 3Y, and 5Y periods 4. Compares against the benchmark index 5. Runs 100 Monte Carlo simulations to show win rate Project Structure Tech Stack - FastAPI - Web framework - DuckDB - Embedded analytics database - yfinance - Yahoo Finance data - HTMX - Dynamic HTML - Tailwind CSS - Styling - Lightweight Charts - TradingView charts -","default_branch":null,"files":null,"tree":[],"storefront":"/r/mr-karan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mr-karan/monkeybeat/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}