This project is a simple stock market simulator that allows users to buy and sell stocks from European and American markets. Developed as part of the Programming Fundamentals course on the Computer Engineering Degree.
- View available stocks and their current prices
- Buy and sell stocks
- View user portfolios
- Real-time currency conversion
- Simulated market hours for European and American markets
-
Clone the repository: git clone https://github.com/yourusername/stock-market-simulator.git cd stock-market-simulator
-
Create a virtual environment: python -m venv venv source venv/bin/activate # On Windows, use venv\Scripts\activate
-
Install the required packages: pip install -r requirements.txt
To run the simulator: python main.py
Follow the on-screen prompts to navigate through the simulator.
You can modify the config.py file to change various parameters of the simulation, such as:
- File paths for data storage
- Market opening and closing times
- List of available stocks
- Base currency for conversions
- Simulation interval
To run the tests: python -m unittest discover tests
Contributions are welcome! Please feel free to submit a Pull Request.