API for virtual paper trading website
This API allows users to simulate paper trading on a virtual platform. It is built using FastAPI, a modern, fast (high-performance), web framework for building APIs with Python. It uses PostgreSQL for its database and uses tables for storing user data, transactions, and portfolios.
- Framework: FastAPI
- Database: PostgreSQL
- Language: Python
- Server: Uvicorn
- Documentation: Swagger UI (auto-generated by FastAPI)
- Environment Management: Pydantic for settings and environment variables
- ORM SqlAlchemy
- Formatting Black
- User Authentication: Secure user login and registration.
- Portfolio Management: Track and manage virtual portfolios.
- Trade Execution: Simulate buying and selling of stocks.
- Performance Tracking: Monitor the performance of virtual trades.
- Clone the repository:
git clone https://github.com/ben-cuff/virtual-paper-trading-api.git
- Navigate to the project directory:
cd virtual-paper-trading-api
- Install the dependencies:
pip install -r requirements.txt
- Start the FastAPI server:
uvicorn main:app --reload
- Open your browser and navigate to
http://127.0.0.1:8000/docs
to access the interactive API documentation.
This project is licensed under the MIT License.