CodeAlpha_Stock_Portfolio_Tracker

Stock Portfolio Tracker (Python)

Description

This is a simple Python-based Stock Portfolio Tracker developed as part of the CodeAlpha Internship.

The program allows users to input stock names and quantities, calculates the total investment value using predefined stock prices, and saves the result to a file.


Features


Concepts Used


Technologies Used


How to Run

  1. Install Python on your system
  2. Clone this repository:

    git clone https://github.com/Vishalkr113/CodeAlpha_stock-portfolio-tracker.git
    
  3. Navigate to the project folder:

    cd CodeAlpha_stock-portfolio-tracker
    
  4. Run the program:

    python main.py
    

Example Output

How many stocks do you want to enter? 2
Enter stock name: AAPL
Enter quantity: 3
Enter stock name: TSLA
Enter quantity: 2

Your Portfolio:
AAPL -> 3 shares = $540
TSLA -> 2 shares = $500

Total Investment Value = $1040

Output File

The program generates a file:

portfolio.txt

Sample File Content:

===== STOCK PORTFOLIO SUMMARY =====

AAPL -> 3 shares = $540
TSLA -> 2 shares = $500

-----------------------------------
Total Investment Value = $1040

Internship Task

This project is created for:

CodeAlpha Python Programming Internship Task 2: Stock Portfolio Tracker


Author

Vishal Kumar


Contact