Welcome to the Stock Trading Simulator app! This project is a basic stock trading web application that allows users to view stock prices, buy and sell stocks, and track their portfolio history.
- View stock prices: Users can see the current prices of various stocks.
- Buy and sell stocks: Users can buy and sell stocks using available funds.
- Portfolio history: Users can view their trading history, including the stocks they've bought and sold.
- Real-time charting: The app provides a basic chart displaying historical closing prices of a selected stock.
- Backend Framework: Flask (Python)
- Database: SQLite3
- Frontend: HTML, CSS, JavaScript
- API: Finnhub API for stock data
-
Clone the repository:
git clone https://github.com/rishwanthvallala/stock-trading-simulator.git cd stock-trading-simulator -
Install dependencies:
pip install -r requirements.txt
-
Set up your Finnhub API key:
- Sign up for an API key at Finnhub.
- Create a
.envfile in the project directory. - Add your API key to the
.envfile:FINNHUB_API_KEY=your-api-key
-
Run the app:
flask run
-
Access the app in your browser at http://localhost:5000.
The project can be deployed to platforms like PythonAnywhere, Heroku, etc. Make sure to follow their deployment guides and update your environment variables accordingly.