Skip to content

ben-cuff/virtual-paper-trading-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

virtual-paper-trading-api

API for virtual paper trading website

Overview

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.

Tech Stack

  • 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

Features

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

Installation

  1. Clone the repository:
    git clone https://github.com/ben-cuff/virtual-paper-trading-api.git
  2. Navigate to the project directory:
    cd virtual-paper-trading-api
  3. Install the dependencies:
    pip install -r requirements.txt

Usage

  1. Start the FastAPI server:
    uvicorn main:app --reload
  2. Open your browser and navigate to http://127.0.0.1:8000/docs to access the interactive API documentation.

License

This project is licensed under the MIT License.

About

api for virtual paper trading

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages