Skip to content

Repository files navigation

Stock Market App

License .NET Blazor AlphaVantage

A Blazor Server application for viewing real-time or historical stock market data.

Table of Contents

Overview

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.

Features

  • 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.

Getting Started

Prerequisites

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/applesea2/StockMarketApp.git
    cd StockMarketApp
  2. Navigate to the project directory.

Configuration

  1. API Key: This application requires an API key from AlphaVantage. You can sign up for a free or paid plan on their website.

  2. 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.

Running the Application

  1. Open the solution file (.sln) in Visual Studio or navigate to the project directory in your terminal.

  2. Build the application:

    • Visual Studio: Press Ctrl+Shift+B (Build Solution) or go to Build > Build Solution.

    • .NET CLI: Run the following command in the root of your solution directory:

      dotnet build
  3. Run the application:

    • Visual Studio: Press F5 (Start Debugging) or Ctrl+F5 (Start Without Debugging).

    • .NET CLI: Navigate to the Client project directory and run:

      dotnet run
  4. The application should open in your default web browser, usually at https://localhost:XXXX (the port number may vary).

Usage

Viewing Stock Data

  1. Enter a stock symbol (e.g., AAPL, MSFT, GOOGL) in the search bar located at the top of the page.
  2. An overlay will display with matching symbols. Select the company you are looking for.
  3. The application will display the current stock quote and options to view historical data as a candlestick chart.

Using Candlestick Charts

  1. After searching for a stock, you will see an option to view a candlestick chart.
  2. The interactive candlestick chart will be displayed, showing the open, high, low, and close prices for the selected period.
  3. You can hover over individual candlesticks to see detailed price information.

Technology Stack

API Integration

This application utilizes the AlphaVantage API to retrieve real-time and historical stock market data. You can find their API documentation here: API documentation.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix (git checkout -b feature/your-feature-name).
  3. Make your changes and commit them (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature/your-feature-name).
  5. Create a new Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Contact

About

A basic web app to track stock market activity within an interval

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages