How to Rebalance Your Stock Portfolio with Python

Part II is Now Available Here

  • What are the Benefits of Rebalancing a Stock Portfolio?
  • Stock Weighting Methodologies and Python Snippets

What are the Benefits of Rebalancing a Stock Portfolio?

  • reduced portfolio risk,
  • increased portfolio diversity, and
  • avoiding mental investment biases.

Reduced Portfolio Risk

  • GME’s equity is worth $28,279 | GME’s portfolio weighting is 59.7%
  • TSLA’s equity is worth $12,709 | TSLA’s portfolio weighting is 26.8%
  • AMD’s equity is worth $2,581 | AMD’s portfolio weighting is 5.4%
  • GOOG’s equity is worth $2,065 | GOOG’s portfolio weighting is 4.4%
  • AMZN’s equity is worth $1,743 | AMZN’s portfolio weighting is 3.7%

Increased Portfolio Diversity

Avoiding Mental Investment Biases

Stock Weighting Methodologies and Python Snippets

  • Equal Weight,
  • Market Cap Weight, and
  • Efficient Frontier Weight.

Equal Weight Rebalancing

Market Cap Rebalancing

Efficient Frontier Rebalancing

Where to access clean market data

--

--

--

High-quality financial data. Tools built for developers. First-class, US-based support. Data doesn’t have to be hard or expensive.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

It Is Always Darkest Before the Dawn: 5 Arguments for Investing in Commodities

Money Anxiety Is Way Up — Here’s How To Protect Your Cash & Your Mind

HOW TO MAKE BETTER DECISIONS WITH OUR OWN MONEY #1

My Banker: Inna Walker

What do you need to know about Tesla’s upcoming stock split?

The buyback scam is just shorting your own stock

The most powerful wealth building tool that you’re not using

What I Learned From Rich Dad’s 7 Strategies for Maximizing Cashflow

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Intrinio

Intrinio

High-quality financial data. Tools built for developers. First-class, US-based support. Data doesn’t have to be hard or expensive.

More from Medium

EMA strategy using Python and yfinance API

How to Extract Yahoo Finance Data with Stock Prices, Price Change, Bids, and more?

How to Construct a Relative Strength Matrix for Stocks and ETFs with Python

ETFs Explained and how to use Python to determine your ETF allocations.