Member-only story

Step by Step: Building an Automated Trading System in Robinhood

Shen Huang
Towards Data Science
3 min readNov 4, 2019
Photo by Maxim Hopman on Unsplash

In this post, I’m going to explore the use of integrating with the Robinhood API via Python code.

The idea is to use Robinhood for the trading platform. Robinhood API has very limited access to the market data. Not recommend using their API for data purposes.

What is Robinhood?

Robinhood provides a way to allow customers to buy and sell stocks and exchange-traded funds (ETFs) without paying a commission. It’s a trading platform and it doesn’t provide an official API yet.

Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our Reader Terms for details.

Getting Start

If you search Robinhood API python, there are a lot of Github links or documents. But most of them don't support the latest API. And there're some projects not updated a long time ago, see sanko's Robinhood.

Here I use Robinhood(A python framework), which is originally from Jamonek’s Robinhood framework. Since Robinhood enforced mandatory MFA, I made some changes to make sure it works.

--

--

Towards Data Science
Towards Data Science

Published in Towards Data Science

Your home for data science and AI. The world’s leading publication for data science, data analytics, data engineering, machine learning, and artificial intelligence professionals.

Shen Huang
Shen Huang

Written by Shen Huang

Software Engineer @Google. Quant Trader. Opinions are my own.

Responses (17)