Skip to content

robinfolio is a Python project to get information about your Robinhood portfolio and order history into Notion, using the Robinhood and Notion APIs. This enables easier and more granular tracking of your stocks, costs, and gains and losses

Notifications You must be signed in to change notification settings

stephho/robinfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

robinfolio

robinfolio is a Python project to get information about your Robinhood portfolio and order history into Notion, using the Robinhood and Notion APIs. This enables easier and more granular tracking of your stocks, costs, and gains and losses

Background

While Robinhood can give you a great overview of your portfolio, its reporting cabilities are limited in terms of displaying more detail about your order history — for example, calculating your gains and losses on individual orders. There's also no easy way to export that data out of Robinhood so that you can put it into an external application to create your own reporting.

I started robinfolio as a personal project, born out of a need to reduce/eliminate manual data input and to help my mom manage her Robinhood portfolio better. Instead of a traditional spreadsheet, I've chosen Notion as the external application to export Robinhood data to because of their easy-to-use interface that allows filtering, sorting, different views of the same database, and a better note-taking experience.

Notion requirements

Creating the databases

You'll need three databases:

  1. Summary — an overview of your portfolio, at the stock level
  2. Orders
  3. Sell lots

More instructions coming soon on how to set up the databases.

Set up Notion API integration

Follow step 1 and 2 in Notion's Getting Started guide to create a Notion API token and to add the integration to each of your databases

Robinhood requirements

Find your API token

  1. Log in to your Robinhood account in a browser on desktop. These instructions are for Google Chrome, but any browser will be similar
  2. Right click anywhere on the page and select "Inspect"
  3. In the window that appears (it may be to the side or at the bottom of your screen), select "Network"
  4. In the search box, type in "orders" and select any of the rows under "Name"
  5. In the new window that appears, select "Headers" and scroll down to where it says "authorization." The long alphanumeric string after the word "Bearer" is your API token

Thanks

Much thanks to How to export your Robinhood stocks by Bart Claeys for giving me my starting point!

About

robinfolio is a Python project to get information about your Robinhood portfolio and order history into Notion, using the Robinhood and Notion APIs. This enables easier and more granular tracking of your stocks, costs, and gains and losses

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages