All Projects â†’ opentaps â†’ open-climate-investing

opentaps / open-climate-investing

Licence: AGPL-3.0 license
Application and data for analyzing and structuring portfolios for climate investing.

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
r
7636 projects

Projects that are alternatives of or similar to open-climate-investing

Beibo
🤖 Predict the stock market with AI 用AI预测股票市场
Stars: ✭ 46 (+130%)
Mutual labels:  finance, stock, stock-market
web trader
📊 Python Flask game that consolidates data from Nasdaq, allowing the user to practice buying and selling stocks.
Stars: ✭ 21 (+5%)
Mutual labels:  finance, stock, stock-market
stocktwits-sentiment
Stocktwits market sentiment analysis in Python with Keras and TensorFlow.
Stars: ✭ 23 (+15%)
Mutual labels:  stock, stock-market, hacktoberfest2021
Alpha Mind
quantitative security portfolio analysis. The analysis pipeline including data storage abstraction, alpha calculation, ML based alpha combining and portfolio calculation.
Stars: ✭ 171 (+755%)
Mutual labels:  finance, stock, stock-market
trading sim
📈📆 Backtest trading strategies concurrently using historical chart data from various financial exchanges.
Stars: ✭ 21 (+5%)
Mutual labels:  finance, stock, stock-market
stock-market-scraper
Scraps historical stock market data from Yahoo Finance (https://finance.yahoo.com/)
Stars: ✭ 110 (+450%)
Mutual labels:  finance, stock, stock-market
wallstreet
Stock Quotes and Charts for the Terminal
Stars: ✭ 75 (+275%)
Mutual labels:  finance, stock, stock-market
stocki
The CLI for fetching stock market data
Stars: ✭ 32 (+60%)
Mutual labels:  finance, stock, stock-market
AIPortfolio
Use AI to generate a optimized stock portfolio
Stars: ✭ 28 (+40%)
Mutual labels:  finance, stock, stock-market
Finance Python
python tools for Finance with the functionality of indicator calculation, business day calculation and so on.
Stars: ✭ 238 (+1090%)
Mutual labels:  finance, stock, stock-market
fhub
Python client for Finnhub API
Stars: ✭ 31 (+55%)
Mutual labels:  finance, stock-market
pyEX
Python interface to IEX and IEX cloud APIs
Stars: ✭ 407 (+1935%)
Mutual labels:  finance, stock-market
fundamentos
Download Bovespa Stock Market fundamentals with Python.
Stars: ✭ 80 (+300%)
Mutual labels:  finance, stock-market
hockeystick
Download and Visualize Essential Global Heating Data in R
Stars: ✭ 42 (+110%)
Mutual labels:  climate-data, climate-change
alpha-vantage-api
Alpha Vantage PHP Client
Stars: ✭ 57 (+185%)
Mutual labels:  stock, stock-market
Stock-Analyzer
Application that calculates the key values from financial statements of publicly traded companies
Stars: ✭ 16 (-20%)
Mutual labels:  finance, stock-market
Stocksera
Web application that provides alternative data to retail investors
Stars: ✭ 426 (+2030%)
Mutual labels:  finance, stock
Scrape-Finance-Data
My code for scraping financial data in Vietnam
Stars: ✭ 13 (-35%)
Mutual labels:  finance, stock
SwiftYFinance
The best Yahoo Finance library with the power of Swift
Stars: ✭ 30 (+50%)
Mutual labels:  stock, stock-market
pystockfilter
Financial technical and fundamental analysis indicator library for pystockdb.
Stars: ✭ 26 (+30%)
Mutual labels:  finance, stock

open-climate-investing

This project's mission is to make climate investing actionable. It includes both open source software and a free book to help you identify relative value trades, optimize portfolios, and structure benchmarks for climate aligned investing.

The Software

The software is a multi-factor equity returns model which adds a climate factor, or Brown Minus Green, to the popular Fama French and Carhart models. See the short video

This additional Brown Minus Green (BMG) return factor could be used for a variety of climate investing applications, including:

  • Calculate the market-implied carbon risk of a stock, investment portfolio, mutual fund, or bond based on historical returns
  • Determine the market reaction to the climate policies of a company
  • Optimize a portfolio to minimize carbon risk subject to other parameters, such as index tracking or growth-value-sector investment strategies.

Setting It Up

Install the required python modules (use pip3 instead of pip according to your python installation):

pip install -r requirements.txt

Initialize the Database using:

python3 scripts/setup_db.py -R -d

Trying It Out

Let's get the historical stock prices and returns of the MSCI World Index and its constituent sectors:

python scripts/get_stocks.py -f data/msci_etf_sector_mapping.csv 
python scripts/get_stocks.py -f data/msci_constituent_details.csv

Now let's calculate the risk factor loadings for these stocks using 60 months of monthly data at a time:

python scripts/get_regressions.py -d -f data/msci_etf_sector_mapping.csv -s 2010-01-01 -e 2021-01-31 --frequency MONTHLY -n DEFAULT -i 60 -b
python scripts/get_regressions.py -d -f data/msci_constituent_details.csv -s 2010-01-01 -e 2021-01-31 --frequency MONTHLY -n DEFAULT -i 60 -b

Next, let's create a daily version of the BMG climate risk series based on the difference between the stocks XOP (brown) and SMOG (green):

python scripts/bmg_series.py -n XOP-SMOG -b XOP -g SMOG -s 2018-01-01 -e 2022-02-01 --frequency DAILY

Finally, let's calculate the risk factor loadings for stocks using 2 years of daily data. This will take a long time:

python3 scripts/get_regressions.py -d -f data/msci_etf_sector_mapping.csv -s 2018-01-01 -e 2021-01-31 --frequency DAILY -i 730 -n XOP-SMOG -b
python3 scripts/get_regressions.py -d -f data/msci_constituent_details.csv -s 2018-01-01 -e 2021-01-31 --frequency DAILY -i 703 -n XOP-SMOG -b

Viewing the Results

Follow directions from the dashboard README page to look at your results.

The Book

The included free book on climate investing explains both climate investing concepts and how to use this project. You can also read it online at gitbook.

Project Files

  • scripts/ contains the python scripts used to run the models.
  • ui/ contains the dashboard.
  • data/ contains the data files for the models and a list of their sources.
  • R/ contains R scripts which were used to develop the models.
  • book/ is the included book on climate investing.

References

Get Updates

Sign up for our email newsletter to get updates on this book and the Open Climate Investing project.

Disclaimer

This content is published for informational purposes only and not investment advice or inducement or advertising to purchase or sell any security. See full disclaimer and license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].