Coder Social home page Coder Social logo

custom_indexing_project's Introduction

Custom Indexing Project

Custom indexing represents a category shift in investing. It provides infinite customization around what investors care about: taxes, ESG, income, and other factors. It is a direct challenge to ETF and indexing funds. This project intends to build a custom indexing engine that would allow an average investor to build their own index fund based on their values and also compare performance of the custom index to original benchmark index. New Index constituents are calculated by weights and fractional share allocation.

Below are examples of outputs that users will get after they choose the criteria to be included in their custom index.

alt text

alt text

Data Sources

Yahoo Finance Pricing Data API
Yahoo Finance ESG Data API
Open Data S&P 500 Security List

Usage of the App

Alternative Text

Custom Index Tool Link:

As a user, once you open the App using the above link, start on the left side, to generate the custom index

  1. Choose the minimum ESG scores compared to the benchmark
  2. Expand Filters with 'Show Filters' and choose the ESG Factors that you dislike (to fiter out)
  3. Click the 'Apply Criteria' Button
  4. The tool will load and fetch data from API for all 500 companies.
  5. After it loads, the user will see two graphs and a score comparison against the benchmark The tool is modular and ready to build additional functionality in the future.

Results and Conclusions

  1. Removing companies based on ethical considerations from the S&P 500 may reduce the performance of the custom index compared to the benchmark.
  2. We believe that investors would be comfortable with making a lower return from their investments in exchange for supporting only companies that align with their values in order to create a positive impact in the world.
  3. Our tool can empower investors to make an informed judgement on how to balance investment performance and ethical considerations to create an investment portfolio that they can be proud of.

Technologies

This project leverages python 3.7 with the following packages:

  • [python] (https://wiki.python.org/moin/FrontPage) - is an object-oriented, interpreted, and interactive programming language.

  • [pathlib] (https://docs.python.org/3/library/pathlib.html) - This module offers classes representing filesystem paths with semantics appropriate for different operating systems.

  • [matplotlib] (https://matplotlib.org) - Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.

  • [numpy] (https://numpy.org) - NumPy brings the computational power of languages like C and Fortran to Python, a language much easier to learn and use.

  • [SQLAlchemy] (https://www.sqlalchemy.org) - SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.

  • [hvPlot] (https://hvplot.holoviz.org/) - hvPlot provides an alternative for the static plotting API provided by Pandas and other libraries, with an interactive Bokeh-based plotting API that supports panning, zooming, hovering, and clickable/selectable legends.

  • [streamlit] (https://streamlit.io/) - Streamlit is an open-source app framework for Machine Learning and Data Science teams.

  • [questionary] (https://questionary.readthedocs.io/en/stable/index.html)- Questionary is a Python library for effortlessly building pretty command line interfaces.

  • [pyviz] (https://pyviz.org/)- The PyViz.org website is an open platform for helping users decide on the best open-source (OSS) Python data visualization tools for their purposes, with links, overviews, comparisons, and examples.


Installation Guide

Env. installation

Before running the application first install the following dependencies.

  python
  conda update conda
  conda update anaconda
  conda create -n dev python=3.7 anaconda
  conda activate dev 

Pyviz Installation

conda install -c pyviz pyviz
conda list hvplot

Streamlit Installation

 conda activate dev
 pip install streamlit 
 type the following in gitbash to run the app in your browser < streamlit run streamlit_ux.py >

Yahoo Finance API Installation

pip install yfinance
pip install yahoo_fin

SQLAlchemy Installation

pip install SQLAlchemy
conda list sqlalchemy

Team Collaboration

Team members collaborated through Github respository, Slack and Zoom sessions.

Contributors

Brought to you by Kevin BaRoss, Christopher Diamond, Haoyu Chen, Hugo Kostelni, Siddharth Venkumahanti

License

The MIT License (MIT)

Copyright (c) 2022 Kevin BaRoss, Christopher Diamond, Haoyu Chen, Hugo Kostelni, Siddharth Venkumahanti

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

custom_indexing_project's People

Contributors

hchen1109 avatar sidbetatester avatar chdi2942 avatar kevinbaross avatar hugokos 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.