Skip to content

joshfraser/robinhood-to-csv

Repository files navigation

Robinhood to CSV

A Python script to export your Robinhood trades to a .csv file. Based on the Robinhood library by Rohan Pai. Read the back story on my blog.

Works on Python 2.7+ and 3.5+

Install:

pip install -r requirements.txt

Run:

For exporting stock trades, run:

python csv-export.py

For exporting options trades, run:

python csv-options-export.py

For Device_Token go to your browser

Go to robinhood.com. Log out if you're already logged in
Right click > Inspect element
Click on Network tab
-Enter "token" in the input line at the top where it says "Filter URLs"
With the network monitor-er open, login to Robinhood
You'll see two new urls pop up that say "api.robinhood.com" and "/oauth2/token"
Click the one that's not 0 bytes in size
Click on Headers, then scroll down to the Request Payload section
Here, you'll see new JSON parameters for your login. What you'll need here is the device token.

About

Python script to export Robinhood trades to a CSV file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published