Skip to content

Real-time Stock Ticker on Led RGB Display πŸ“ˆπŸ’΅πŸ“Š

License

Notifications You must be signed in to change notification settings

yahnyshc/stockTicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

54 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LED Stock Ticker on Raspberry Pi

This project is a DIY real-time LED stock ticker display, inspired by similar products available on platforms like Etsy. The project leverages a Raspberry Pi, a 64x32 RGB LED matrix, and financial data APIs to deliver up-to-the-minute price updates for various assets, including stocks, cryptocurrencies, ETFs, forex pairs, indices, and commodities.

NVDA BTC GBPUSD NDAQ

Video

Demo

Overview

The LED stock ticker display is designed to visually present real-time financial data on a bright and colorful RGB LED matrix. It’s powered by a Raspberry Pi and features a multi-threaded system for efficient data handling and smooth display updates. The system is capable of rendering asset logos, symbol names, daily percentage changes, and mini-price charts.

Features

  • Real-Time Data Updates: Utilizes WebSockets to fetch live data from financial APIs like FinnHub.
  • Support for Multiple Asset Classes: Display prices and charts for stocks, ETFs, cryptocurrencies, forex pairs, indices, and commodities.
  • Customizable Display: Choose between displaying asset logos with price info or full 64-column price charts.
  • Multithreading: Ensures smooth and responsive operation, even with multiple data streams.
  • Data Storage: Price data is stored in a PostgreSQL database, enabling historical analysis and charting.
  • Web-Based Control: Configure the ticker, manage API keys, and customize subscriptions via a web interface.

Hardware Requirements

  • Raspberry Pi 4B
  • Adafruit 64x32 RGB Matrix
  • Adafruit Bonnet
  • Power Supply

Configure using website

To control the configuration, obtain the API key and set up subscriptions, logos, and API names using stock-ticker-remote

Stock Ticker Remote Github

Getting Started

  1. Clone the Repository:
    git clone https://github.com/yahnyshc/stockTicker
    
  2. Setup the Environment:

Navigate to the Scripts/ directory and run the appropriate setup script for your OS to generate project files.

  1. Connect Hardware:

Connect the RGB LED Matrix to the Raspberry Pi 4 GPIO pins as per the rpi-rgb-led-matrix library instructions.

Don't forget to install the necessary Adafruit-Hat drivers.

  1. Configuration:
  • Create a config file named config.cfg in the root directory with the following contents:
    API_Token=<FinnHub API Key>
    Control_API_Token=<API Key obtained from stock-ticker-remote.link> (optional)
    
    # This doesn't have to be configured if Control_API_Token is specified.
    Subs_list= BTC NVDA 
    Api_Subs_list = COINBASE:BTC-USD NVDA
    Logo_Subs_list = BTCUSD NVDA
    
    Logo_Size=23
    
    # Determines whether to display logos or instead display a full 64-column price chart.
    Render_Logos=true
    ...
    # See Config.cpp to find out about more config options
    
  1. Build and Run:

    The project follows Core - App architecture.

    make
    ./Binaries/<OS>/Debug/App/App
    

Prototype

Prototype

Sources

License

  • MIT License
  • Premake: Licensed under BSD 3-Clause (see included LICENSE.txt for more details).

With this setup, you can build a custom, real-time stock ticker display that not only enhances your space but keeps you updated with the latest market trends. Enjoy creating your personalized LED stock ticker!

Releases

No releases published

Packages

No packages published

Languages