Giter Site home page Giter Site logo

rebalance's Introduction

rebalance

Contributors: Chris Wallwork, Carter Carlson

This repository merges two similar repositories:

  • crypto-simulations
    • Simulates rebalancing a randomly selected basket of 5 coins 250 times and records the total value of the portfolio over the course of the simulation.
    • Compares overall hodl performance to rebalanced performance.
  • transaction-log
    • Rebalances a specific basket of coins and captures details of the transactions
    • Can be simulated or used for personal rebalancing

While the two repositories have similar purposes, they were made separately and have different code structures:

  • crypto-simulations
    • Code structure: many separate lists and zips the lists together
    • Pros: optimizes simulation speed for hundreds of backtests
    • Cons: Hard to understand code, not suitable for adding transaction documentation.
  • transaction-log
    • Code structure: portfolio object, methods for portfolio class are outside the class in functions
    • Pros: accurate documentation of transactions, code is easier to follow
    • Cons: cannot scale to multiple backtests, calculations still needed for summary, outside functions for the portfolio should be a method inside the portfolio class

Once completed, the new code structure will have:

  • A portfolio object summarizing performance, including a list of coin objects
  • Coin objects for each coin in the portfolio, including coin performance and transactions
  • A transaction object inside each coin, containing all relevant coin transactions

rebalance's People

Contributors

cwallwor avatar

Watchers

 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.