Code Monkey home page Code Monkey logo

portfolio-optimizer's Introduction

Portfolio Optimization

1. Installing Dependencies

Can be installed using pip install or conda install for Anaconda environment

  • Python 3.7
  • Libraries
    • numpy (1.17.0)
    • pandas (0.24.2)
    • scipy (1.3.1)
    • matplotlib (3.1.1)

2. Usage Instructions

Steps to be followed:

  • Data: Current implementation is based on data obtained from Yahoo Finance. Convert your data to the specific format and place under data folder.
  • Baseline: Update BASE_LINE in optimizer.ipynb to compare the portfolio's performance
  • Stocks: Update SYMBOLS in optimizer.ipynb to relevant stocks in the portfolio
  • Allocation: Update allocations in optimizer.ipynb to the allocation of stocks in the portfolio (must sum to 1)
  • Sampling Frequency: Update sampling_freq in optimizer.ipynb. Currently, configured for daily, use weekly: 52, monthly: 12
  • Risk Free Rate: Update risk_free_rate (must be in percentage) in optimizer.ipynb. Configure it with the minimum return rate, if the amount was invested in fixed returns options such as savings account/fixed deposits etc.
  • Start and End Date: Update start and end date in optimizer.ipynb.
  • Initial Investment: Update initial_investment in optimizer.ipynb.

portfolio-optimizer's People

Contributors

ashishrajani avatar

Watchers

James Cloos 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.