How to Rebalance Your Stock Portfolio with Alpaca Trading API ~ Part II

Alpaca Paper Trading API

What is the Alpaca Trading API?

Why use Alpaca Trading API?

  • No Fee Trading
  • Supports Fractional Shares
  • Simple API and SDK Offerings & Helpful Documentation
  • Paper Trading for Trading Practice & Model Integration

Getting Started with Alpaca Trading API

Alpaca API Keys View

How to Rebalance a Portfolio with Alpaca’s Trading API?

  • Construct Initial Portfolio Weightings — See Part I;
  • Ensure Symbols are Eligible for Fractional Trading;
  • Close Unnecessary Portfolio Positions;
  • Retrieve and Adjust our Rebalance Equity;
  • Adjust Current Portfolio Allocations; and
  • Buy and Sell Equities Based on our Portfolio Allocations

Construct Initial Portfolio Weightings

Ensure Symbols are Eligible for Fractional Trading

Close Unnecessary Portfolio Positions

Retrieve and Adjust our Rebalance Equity

Adjust Current Portfolio Allocations

Rebalance Results

Where to access clean market data

Full Code Walkthrough

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

Desktop Flutter Apps

I Cleared the AWS Certified Cloud Practitioner (AWS CCP) in 5 days — Here’s How

Best Embedded Training Institutes in Bangalore

Mod 6: Part 1, Revisiting My Final Bootca

Going Live Too Early Can Be Worse as Going Late

Automated Outage Alert Monitoring and Remediation

Symphony Finance Feedback Contest

Google Issues Warning For Millions Of Chrome Users

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

Implementing a Keltner Channel Breakout Strategy in Python (Algorithmic Trading)

How to Improve a Machine Learning Model’s Trading Strategy

Creating your own simple Canadian stock scanner using Python

Algo Trading Idea — Generate Trading Ideas From the Very Basics