Code Monkey home page Code Monkey logo

etf_portfolio_top_performers's Introduction

ETF Portfolio: Top Performers

In this project we use Alpaca and Pandas to analyze the risk and return of stocks held by ETFs ranked by money.usnews.com as seen here in this page:https://money.usnews.com/funds/etfs/sector For our analysis we looked at 12 different ETFs; RYT, XSW and FTEC in the tech sector; USRT, XLRE and RWR in the Real Estate sector; as well as BBUS, SPMD and SLY in the Large, Mid, and Small growth rankings respectively; and lastly JMOM, MDYG, and SLYG in the Large Mid and Small blend (growth + value) rankings respectively. Through our analysis, we we were able to create an ETF of our own, consisting of the of the most promising stocks in each of the listed ETFs.

Technologies

We use primarily use Alpaca and Pandas and numpy for the quantitative analysis, as well as sqlalchemy for database storage and MCForecastTool for MonteCarlo Simulation

Installation Guide

For this project we need the following dependencies:

 pip install pandas
 pip install numpy
 pip install alpaca-trade-api
 pip install sqlalchemy

Usage

To run this project load the jupyter notebook ETF_analyzer_POC.ipynb and run. Below ETF libary files:

  • import ETFHistoryDownload as hist
  • import ETFStockAnalytics as analytic
  • import ETFPerformanceForecast as perf
  • from MCForecastTools import MCSimulation

Data Files and Database

  1. Database(SQLLite): etf.db
  2. CSV being impoorted:
  • etf_list (Selected TOP ETFS from US News)
  • etf_holdings.csv (Undelying Holdings: constituents)
  • etf_benchmark_list.csv (Market Benchmark: SPY-SP500, QQQ- NASDAQ100 and GLD (Hedging commodity)
  • etf_exposure_matrix.csv (Reference Summary)

Contributers

Minglu (Amber) Li, Ken Lee, Rabia Talib, Albert Peyton.

Licence

Open source project, made for educational purposes only

etf_portfolio_top_performers's People

Contributors

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