How to export Robinhood transaction data

Question: I have been using Robinhood stock trading platform, and I would like to export all the transaction records from my Robinhood account to a spreadsheet file for accounting purposes. Is there an easy way to export and save Robinhood transaction data in a CSV file, preferably from the Linux command line?

As a stock trading mobile app targeted for millennials, Robinhood revolutionizes the way stock trades are done. With its 100% commission-free trading, Robinhood makes stock trading something that average people like us can easily do for fun. While Robinhood is getting maturer with more advanced features like instant deposits and after-hour trading, it is still lacking in useful features like data export.

Exporting historical transaction data is a highly useful feature for various reasons (e.g., when calculating your portfolio's return or filing your tax return). However, Robinhood does not officially support data export feature as of yet.

In this tutorial let's find out how to export Robinhood transactions to a spreadsheet file from the Linux command line. While this tutorial is written for Linux environment, it should be applicable on any operating system platform as long as you can run Python.

The Robinhood data export tool presented in this tutorial is called Robinhood-for-Google-Finance, which exports Robinhood trade data to a CSV file by using Robinhood APIs. This tool works on Python 2.7+ and 3.5+.

You can install this Robinhood export tool by following these simple steps.

First, install git and pip in your Linux environment.

Next, install the tool along with its dependent Python modules as follows.

$ git clone
$ cd Robinhood-for-Google-Finance/
$ sudo pip install -r requirements.txt

After installation, you can initiate the Robinhood data export process by simply running:

$ python

You will be asked to enter your Robinhood username and password. As you can verify from its Python source code, this Python tool does not send your login credential anywhere but the official Robinhood API endpoint, so don't worry about entering your credential here.

After successful data export, your transaction data will be stored in robinhood.csv.

The exported CSV file is formatted as follows.

Date purchased,Commission,Purchase price per share,Shares,Transaction type,Symbol,

Once exported, the CSV file can easily be imported into other stock market software like JStock or online portfolio management solutions such as Google Finance.

Download this article as ad-free PDF (made possible by your kind donation): 
Download PDF

Subscribe to Ask Xmodulo

Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.

Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

Leave a comment

Your email address will not be published. Required fields are marked *