Python Stock Heatmap banner

Python Stock Heatmap

4 devlogs
2h 37m 17s

Python HTML or Turtle heatmap for S&P 500 stocks - shows red/green for the top 500 stocks in the US to give a general idea of the market!

This project uses AI

I used Gemini to help me with Turtle & parsing the API details.
I used Claude to help me write PyInstaller GitHub actions

Demo Repository

Loading README...

nirvaannn

Shipped this project!

Hours: 2.62
Cookies: 🍪 17
Multiplier: 6.34 cookies/hr

I built a Python heatmap for the S&P 500 stocks inspired by the one on CNBC - I aim to port this to a Raspberry Pi screen to keep on a desk / in a frame!

It helped me learn how to dynamically create HTML files to render things from Python

nirvaannn

What did I do today?

  • Tried to use the Alpha Vantage API only to find out it was very rate limited
  • Got AI to help me parse the other API data
  • Test it and it works!
Attachment
0
nirvaannn

I tried to add text to show the name of the stocks and the percentage, but something is wrong! The stocks which are down are showing as 6% up.

I’m working with AI on how to parse the CSV better to avoid this.

Attachment
0
nirvaannn

What did I do today:

I added an HTML version so it doesn’t need Python Turtle anymore! This means I can deploy it to the web, and also view it on systems without Python.

My next step (using HTML) would be to show the name/details of the stocks when clicked on

Attachment
0
nirvaannn

What did I do:

  • Started by parsing the stocks from yfinance
  • Calculated up/down versus opening price
  • Added Python turtle to visualize
  • Changed the API to avoid rate limiting
  • Add it to GitHub and write a README
  • Try and package it using PyInstaller
Attachment
0