A Blazor Server application for viewing real-time or historical stock market data.
- Overview
- Features
- Getting Started
- Usage
- Technology Stack
- API Integration
- Contributing
- License
- Contact
Stock Market App is a user-friendly web application built with Blazor Server that allows users to track stock prices and visualize historical data using interactive candlestick charts. It aims to provide investors and enthusiasts with a clear and accessible way to monitor market trends.
- Real-time Stock Quotes: Fetch and display up-to-date stock prices based on a stock symbol.
- Interactive Candlestick Charts: Visualize price movements with interactive candlestick charts powered by Blazor-ApexCharts.
- Search Functionality: Easily search for specific stocks by symbol or company.
- User-Friendly Interface: Clean and intuitive design for easy navigation.
- .NET SDK (version 9.0 or higher recommended)
- Visual Studio (with the ASP.NET and web development workload) or Visual Studio Code with the C# extension.
- A valid API key from your chosen stock data provider from AlphaVantage.
Clone the repository to your local machine:
git clone https://github.com/applesea2/StockMarketApp.git cd StockMarketAppNavigate to the project directory.
API Key: This application requires an API key from AlphaVantage. You can sign up for a free or paid plan on their website.
Add your API key: Create or edit the secrets.json generated from .NET Secrets manager and add your API key as follows:
{ AlphaVantage:ApiKey = "ApiKey" }Important: Do not commit your actual API key directly into the repository. Consider using user secrets for development and environment variables for production.
Open the solution file (
.sln) in Visual Studio or navigate to the project directory in your terminal.Build the application:
Visual Studio: Press
Ctrl+Shift+B(Build Solution) or go toBuild > Build Solution..NET CLI: Run the following command in the root of your solution directory:
dotnet buildRun the application:
Visual Studio: Press
F5(Start Debugging) orCtrl+F5(Start Without Debugging)..NET CLI: Navigate to the
Clientproject directory and run:dotnet runThe application should open in your default web browser, usually at
https://localhost:XXXX(the port number may vary).
- Enter a stock symbol (e.g., AAPL, MSFT, GOOGL) in the search bar located at the top of the page.
- An overlay will display with matching symbols. Select the company you are looking for.
- The application will display the current stock quote and options to view historical data as a candlestick chart.
- After searching for a stock, you will see an option to view a candlestick chart.
- The interactive candlestick chart will be displayed, showing the open, high, low, and close prices for the selected period.
- You can hover over individual candlesticks to see detailed price information.
This application utilizes the AlphaVantage API to retrieve real-time and historical stock market data. You can find their API documentation here: API documentation.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix (
git checkout -b feature/your-feature-name).- Make your changes and commit them (
git commit -am 'Add some feature').- Push to the branch (
git push origin feature/your-feature-name).- Create a new Pull Request.
This project is licensed under the MIT License. See the
LICENSEfile for more information.
- Jesse Stroster - stroster.jesse@gmail.com
- Link to GitHub profile