All Projects → Hvass-Labs → Financeops

Hvass-Labs / Financeops

Licence: mit
Research in investment finance with Python Notebooks

Projects that are alternatives of or similar to Financeops

IEX CPP API
Unofficial C++ Lib for the IEXtrading API
Stars: ✭ 34 (-91.01%)
Mutual labels:  finance, stocks
simulatePortfolio
class for simulation of stock investing portfolios based on historical data
Stars: ✭ 18 (-95.24%)
Mutual labels:  finance, stocks
AlphaVantageAPI
An Opinionated AlphaVantage API Wrapper in Python 3.9. Compatible with Pandas TA (pip install pandas_ta). Get your FREE API Key at https://www.alphavantage.co/support/
Stars: ✭ 77 (-79.63%)
Mutual labels:  finance, stocks
Finance-Robinhood
Trade stocks and ETFs with free brokerage Robinhood and Perl
Stars: ✭ 42 (-88.89%)
Mutual labels:  finance, stocks
Thstrader
量化交易。同花顺免费模拟炒股软件客户端的python API。(Python3)
Stars: ✭ 311 (-17.72%)
Mutual labels:  jupyter-notebook, finance
AutoTrader
A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
Stars: ✭ 227 (-39.95%)
Mutual labels:  finance, stocks
investbook
Оценка эффективности инвестиций с учетом комиссий, налогов (удержанных и ожидающихся), дивидендов и купонов.
Stars: ✭ 83 (-78.04%)
Mutual labels:  finance, stocks
TradeRepublicApi
Unofficial trade republic API
Stars: ✭ 134 (-64.55%)
Mutual labels:  finance, stocks
Stock Analysis
Regression, Scrapers, and Visualization
Stars: ✭ 255 (-32.54%)
Mutual labels:  jupyter-notebook, stocks
AIPortfolio
Use AI to generate a optimized stock portfolio
Stars: ✭ 28 (-92.59%)
Mutual labels:  finance, stocks
Beibo
🤖 Predict the stock market with AI 用AI预测股票市场
Stars: ✭ 46 (-87.83%)
Mutual labels:  finance, stocks
Machine Learning For Trading
Code for Machine Learning for Algorithmic Trading, 2nd edition.
Stars: ✭ 4,979 (+1217.2%)
Mutual labels:  jupyter-notebook, finance
ProjectReward
A software to shortlist and find the best options spread available for a given stock and help it visualise using payoff graphs.
Stars: ✭ 57 (-84.92%)
Mutual labels:  finance, stocks
stockscore
A python project to fetch stock financials/statistics and perform preliminary screens to aid in the stock selection process
Stars: ✭ 54 (-85.71%)
Mutual labels:  finance, stocks
optlib
A library for financial options pricing written in Python.
Stars: ✭ 166 (-56.08%)
Mutual labels:  finance, stocks
FinanceKit
FinanceKit is a Framework for iOS and Mac to build apps working with financial data, like money, currencies, stocks, portfolio, transactions and other concepts.
Stars: ✭ 15 (-96.03%)
Mutual labels:  finance, stocks
pyEX
Python interface to IEX and IEX cloud APIs
Stars: ✭ 407 (+7.67%)
Mutual labels:  finance, stocks
Stocksera
Web application that provides alternative data to retail investors
Stars: ✭ 426 (+12.7%)
Mutual labels:  finance, stocks
tuneta
Intelligently optimizes technical indicators and optionally selects the least intercorrelated for use in machine learning models
Stars: ✭ 77 (-79.63%)
Mutual labels:  finance, stocks
Pyex
Python interface to IEX and IEX cloud APIs
Stars: ✭ 311 (-17.72%)
Mutual labels:  finance, stocks

FinanceOps

Original repository on GitHub

Original author is Magnus Erik Hvass Pedersen

Introduction

This is a small collection of research papers on investing. They are written as Python Notebooks so they can easily be modified and run again.

Research

  1. Forecasting Long-Term Stock Returns (Notebook) (Google Colab)

1-B. Better Long-Term Stock Forecasts (Notebook) (Google Colab)

1-C. Theory of Long-Term Stock Forecasting (Notebook) (Google Colab)

1-D. Testing the Stock Forecasting Model (Notebook) (Google Colab)

1-E. Forecasting U.S. Stock Indices (Notebook) (Google Colab)

1-F. Forecasting International Stock Indices (Notebook) (Google Colab)

1-G. Forecasting House Price Index (Notebook) (Google Colab)

  1. Comparing Stock Indices (Notebook) (Google Colab)

  2. Portfolio Optimization Using Signals (Notebook) (Google Colab)

  3. Multi-Objective Portfolio Optimization (Notebook) (Google Colab)

  4. Forecasting the P/Sales Ratio (Notebook) (Google Colab)

  5. Forecasting Sales Growth (Notebook) (Google Colab)

  6. Forecasting Dividends (Notebook) (Google Colab)

Other Papers

The following Python Notebooks produce the plots and statistics for some of my "normal" research papers which can be downloaded from SSRN and GitHub.

Videos

There is a YouTube video for each research paper.

Downloading

The Python Notebooks use source-code located in different files to allow for easy re-use across multiple Notebooks. It is therefore recommended that you download the whole repository from GitHub, instead of just downloading the individual Python Notebooks.

Git

The easiest way to download and install this is by using git from the command-line:

git clone https://github.com/Hvass-Labs/FinanceOps.git

This creates the directory FinanceOps and downloads all the files to it.

This also makes it easy to update the files, simply by executing this command inside that directory:

git pull

Zip-File

You can also download the contents of the GitHub repository as a Zip-file and extract it manually.

How To Run

If you want to edit and run the Notebooks on your own computer, then it is suggested that you use the Anaconda distribution of Python 3.6 (or later) because it has all the required packages already installed. Once you have installed Anaconda, you run the following command from the FinanceOps directory to view and edit the Notebooks:

jupyter notebook

If you want to edit the other source-code then you may use the free version of PyCharm.

Run in Google Colab

If you do not want to install anything on your own computer, then the Notebooks can be viewed, edited and run entirely on the internet by using Google Colab. You can click the "Google Colab"-link next to the research papers listed above. You can view the Notebook on Colab but in order to run it you need to login using your Google account. Then you need to execute the following commands at the top of the Notebook, which clones FinanceOps to your work-directory on Colab.

# Clone the repository from GitHub to Google Colab's temporary drive.
import os
work_dir = "/content/FinanceOps/"
if not os.path.exists(work_dir):
    !git clone https://github.com/Hvass-Labs/FinanceOps.git
os.chdir(work_dir)

Data Sources

  • Recent share-price and fundamental data from SimFin.
  • Older share-price data from Yahoo Finance.
  • Financial data for some individual stocks collected manually by the author from the 10-K Forms filed with the U.S. SEC.
  • Newer S&P 500 data from the S&P Earnings & Estimates Report and older data from the research staff at S&P and Compustat (some older data is approximated by their research staff).
  • Financial data for Exchange Traded Funds (ETF) from Morningstar Direct.
  • U.S. Government Bond yield for 1-year constant maturity. From the U.S. Federal Reserve.
  • The inflation index is: All Items Consumer Price Index for All Urban Consumers (CPI-U), U.S. City Average. Data from the US Department of Labor, Bureau of Labor Statistics.

License (MIT)

These Python Notebooks and source-code are published under the MIT License which allows very broad use for both academic and commercial purposes.

You are very welcome to modify and use the source-code in your own project. Please keep a link to the original repository.

The financial data is not covered by the MIT license and may have limitations on commercial redistribution, etc.

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