Ever wondered if your pet goldfish has a knack for the stock market? Well, wonder no more! Fishy Stocks lets your fish pick stocks based on which side of the tank they prefer. Because why trust Wall Street when you have Mr. Bubbles? Inspo Michael Reeves
- The program fetches two random stocks from the S&P 500.
- The fish swims. The camera tracks its movement.
- Whichever side the fish spends more time on? BOOM. That's the stock it "buys."
- The transaction is logged in a CSV file for future fish-ancial analysis.
logic.pyโ Handles the stock selection logic (seriously, itโs random).stock_api.pyโ Talks to Yahoo Finance so your fish can trade like a pro.save_bought_stocks.pyโ Logs stock picks because data science.video.pyโ Tracks your fish with OpenCV.snp500.jsonโ List of stocks in the S&P500.stocks_bought.csvโ A record of your fishโs legendary (or tragic) investments.requirements.txtโ So you donโt rage over missing dependencies.
- Install dependencies:
pip install -r requirements.txt
- Make sure your camera of choice is working (your fish is the trader, not you).
- Run the script and let the magic happen:
Every time the fish makes a trade, the data is logged in stocks_bought.csv like this:
| Symbol | Short Name | Price Bought | Industry | Date | Stock Owned |
|---|---|---|---|---|---|
| AAPL | Apple Inc. | 184.32 | Technology | 2025-02-13 | 0.0542 |
| GOOGL | Alphabet Inc. | 151.76 | Technology | 2025-02-13 | 0.0659 |
| MSFT | Microsoft Corp. | 398.45 | Technology | 2025-02-14 | 0.0251 |
- This project is adjusted to track GOLDFISH movements, in order to track any other colour of fish, the bounds will need to be changed.
- I will post the results of my fishy stocks and their detailed performance in the future.
- Not fish-ancial advice.
Check out the madness in action:

Probably not, but itโs got about the same success rate as some hedge funds. Try it out and see if your fish is the next Warren Buffett!
๐๐ธ Happy Trading!