Live Stock Price Display

About the project

View all Live Stock Prices using ESP8266 on a Touch Display

Project info

Difficulty: Easy

Platforms: AdafruitArduino

Estimated time: 1 hour

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

2.8" TFT COLOR LCD 240 X 320 PIXEL 2.8" TFT COLOR LCD 240 X 320 PIXEL Any Display with SPI interface x 1
NodeMCU v2-Lua based ESP8266 development kit NodeMCU v2-Lua based ESP8266 development kit x 1

Software apps and online services

Arduino IDE Arduino IDE

Hand tools and fabrication machines

Jumper Wires Jumper Wires x 1

Story

Inspiration

I had trouble in viewing my favourite stock prices by taking out phone constantly, s I have build a 24x7 Display Stock Price Tracker so I can get updates regularly

What it does

It fetches Stock Price from FinnHub API and Displays it on Aafruit TFT Display using ESP8266

How we built it

  • I first started with interfacing the Display with ESP8266 using the below pinout
  • We use the SPI Interface of the Display , Connect MOSI, SCL,Data,Reset, 3.3V and GND of ESP8266 to respective pins of the Display according to Pinout of Arduino Shield
  • You can use either the SPI Pins on Digital line or from ICSP header



  • Then I coded the part to connect Wifi with ESP8266
  • Further I created API key on FinnHub ,and tried parsing its data of stock symbol
  • Then Calculated the Previous Price and Percentage of Fall or Rise and Displayed it with GUI functions.
  • Added many Stock Symbols and then it automatically displays the data at API call per 3 seconds

Images


Future Plans:

  • Adding News Flashes in the Display using News API
  • Adding Speaker for Alerts in cases of Market Crash or Price Fall
  • Displaying Candle Graphs


Schematics, diagrams and documents

Wiring of Display and ESP8266 via SPI Protocol

Code

Stock-Price-ESP8266-Display

Credits

Leave your feedback...