Skip to content

RimaSahl/Stock-Data-Viewer

Repository files navigation

Demo

A demo application built in React. Deployed here: https://stock-data-viewer.vercel.app/.

It Shows stock market data (fake, random data, just to simulate) in the form of line and bar chart.

How to Use

Enter a Stock Symbol: Type the desired stock symbol (e.g., AAPL for Apple Inc.) into the input field.
Select a Time Interval: Choose a time interval for the stock data from the dropdown menu. Options include:
    1 Minute
    30 Minutes
    60 Minutes
Fetch Data: Click the "Fetch Stock Data" button to retrieve the latest stock information. While the data is loading, the button will display a loading message.
View Chart: Once the data is fetched, a chart displaying the stock's open, high, low, close, and volume details will be presented below the input fields.
Error Handling: If there is an issue fetching the data (e.g., an invalid symbol), an error message will appear to inform you.

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.