Giter Site home page Giter Site logo

backtest-buddy's Introduction

Backtest Buddy

An application that helps you backtest your algorithmic trading strategy

Setup

  1. Clone the repo locally into a directory which will be referred to in further instructions as backtestbuddy/
  2. Create a .env file in backtestbuddy/backend/app/ with the keys ALPACA_KEY and ALPACA_SECRET. These can be obtained from creating an account with Alpaca

With docker (preferred) ✅

  1. Install Docker Desktop if not already on your system
  2. Launch Docker Desktop
  3. Launch a terminal and navigate inside backtestbuddy/

With docker compose (preferred) ✅

  1. Run docker-compose -f dev.docker-compose.yml up --watch
  2. Backend is now running on localhost:8000 and frontend is running on localhost:5173, WITH HMR

Without docker compose

  1. Run docker build -t backtestbuddy-frontend:latest -f frontend/dev.Dockerfile ./frontend
  2. Run docker build -t backtestbuddy-backend:latest -f backend/dev.Dockerfile ./backend
  3. Run docker run -p 5173:5173 backtestbuddy-frontend:latest to start frontend on localhost:5173 WITHOUT HMR
  4. Run docker run -p 8000:8000 backtestbuddy-backend:latest to start backend on localhost:8000 WITHOUT HMR

Without docker

Frontend

  1. Launch a terminal and navigate to backtestbuddy/frontend
  2. Run npm install
  3. Run npm run dev to run frontend on localhost:5173 with HMR

Backend

  1. Launch a terminal and navigate to backtestbuddy/backend
  2. Optionally create and activate a virtual environment, I would recommend using Anaconda to manage virtual environments
    • If using VScode, select the python interpreter by searching for >Select Python Interpreter and selecting the virtual environment, then use the in-built VScode terminal for the next instructions
  3. Run pip install -r requirements.txt
  4. Run uvicorn app.main:app --reload to run backend on localhost:8000 with HMR

backtest-buddy's People

Contributors

arif-khalid avatar

Watchers

Lucian avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.