Skip to content

Trader Radar is a visual and interactive representation of how various stocks or financial instruments are performing in the market. It combines a stock heatmap, a stock search function, a candlestick chart, live market clock, and stock ticker tape to provide valuable insights and aid in decision-making.

Notifications You must be signed in to change notification settings

chrisbanas/trader_radar

Repository files navigation

Trader Radar is a visual and interactive representation of how various stocks or financial instruments are performing in the market. It combines a stock heatmap, a stock search function, a candlestick chart, live market clock, and stock ticker tape to provide valuable insights and aid in decision-making.

Live Website

Home Page


Technologies

Technology Use
Vanilla JavaScript Core functionality
JavaScript Vanilla DOM API DOM event handling
NPM Dependency management
Bootstrap Front-end framework
Webpack Bundle and transpile code
Babel Bundle and transpile code
HTML5 Structuring
CSS 3 Styling
Font Awesome Social Icons
Google Fonts Typography
Google Domains Custom domain
GitHub Pages Hosting platform

APIs & Libraries

Financial Data APIs

API Feature Info
List of S&P 500 Companies Heatmap / Ticker It returns all S&P 500 constituents.
List of Dow Jones Companies Heatmap / Ticker Returns Companies in the Dow Jones, such as Honeywell and Home Depot.
List of NASDAQ Companies Heatmap / Ticker Returns Companies in the Nasdaq 100, such as DocuSign and Zoom.
Current Stock Data Heatmap / Ticker Obtains real-time stock market quotes
Companiy Stats Search Access data for a company such as 52 week high, 52 week low, market capitalization, and key stats to understand a company finances.
Stock News Search It returns the most recent news with parameters like images or urls of the original article.
Historical Stock Data Search Provides access to historical prices that can be used to create charts.

Time & Calendar APIs

API Source Feature Use
Public Holidays Nager Market Clock For displaying market closed on holidays when the stock market is not open
NYC Time World Time Market Clock For pulling accurate live time data for New York City

Charting Libraries

Chart Library Feature Info
Treemap D3 Heatmap A treemap chart visually represents hierarchical data using nested rectangles, where the size and color of each rectangle correspond to different data attributes.
Candlestick D3 Candlestick Chart A candlestick chart displays the opening, closing, high, and low prices of a financial instrument within a specified time period, using rectangular "candles" with upper and lower "wicks" to represent price fluctuations.

Features

Stock Market Heatmap

The heatmap is designed using a treemap algorithm which was first introduced by Ben Shneiderman, in the 1990s. The treemap is then generated using the D3 Treemap charting library.

It allows users to filter and sort the data based market index, volume, average volumne, shares outstanding, and market cap, has a click to zoom which allows a drill down into the tiniest of cells, and a tooltip upon hovering for additional stock detail.

Each cell in the heatmap is color-coded based on the stock's performance, with different shades of color representing different levels of performance, and the stocks grouped by industry.

Heatmap

Heatmap Data Structure

The data for the heatmap is built by combining two API calls from Financial Modeling Prep and then custom structured with a root node, then child nodes of the stock industry, then those have child nodes with each stock, and then those have child nodes with the stock information.

Root (Stock Index Data)
└── Stock Industry 1
    └── Stock 1.1
        └── Stock Information 1.1.1
        └── Stock Information 1.1.2
    └── Stock 1.2
        └── Stock Information 1.2.1
        └── Stock Information 1.2.2
└── Stock Industry 2
    └── Stock 2.1
        └── Stock Information 2.1.1
        └── Stock Information 2.1.2
    └── Stock 2.2
        └── Stock Information 2.2.1
        └── Stock Information 2.2.2
└── Stock Industry 3
    └── Stock 3.1
        └── Stock Information 3.1.1
        └── Stock Information 3.1.2
    └── Stock 3.2
        └── Stock Information 3.2.1
        └── Stock Information 3.2.2

Candle Stick Chart

The chart shows the daily low, high, open, and close of a stock. Each “candle” represents a single trading day. A specialized x-axis is used to avoid gaps on the weekend when the markets are closed. The candlestick chart is generated using the D3 Candle Stick Chart charting library.

Candle Stick Chart

Stock Search

The search function in Trader Radar allows users to enter any stock ticker and instantly access live prices and news updates about the company, while also providing a comprehensive candlestick chart displaying 180 days of historical prices. With robust error handling features, the system ensures a seamless user experience by effectively handling and communicating any issues that may arise during the search process.

Search

Ticker Tape

The dynamic ticker tape feature in Trader Radar showcases real-time stock information with color-coded indicators, where red signifies a decrease in stock value from the previous day, while green indicates an increase. Additionally, when users switch between market indexes, the ticker tape dynamically updates to display the relevant stocks for the selected index, continuously scrolling to the left and seamlessly looping around once it reaches the end, ensuring a seamless and comprehensive market overview.

Ticker

Market Clock

The market clock feature in Trader Radar provides real-time information on market status, displaying a green color and counting down the time until market closure during trading hours, and switches to red when the market is closed. A few hours before the market opens, it shows the remaining number of hours until the market opens. The feature also accounts for all official market holidays and automatically defaults to New York City (NYC) time, ensuring accurate and synchronized market timings regardless of the user's location.

Clock Open

Clock Closed


Wiki

Please check out the repository's wiki for more information and documentation.


© Trader Radar

About

Trader Radar is a visual and interactive representation of how various stocks or financial instruments are performing in the market. It combines a stock heatmap, a stock search function, a candlestick chart, live market clock, and stock ticker tape to provide valuable insights and aid in decision-making.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published