After recently switching from Trello to Notion as my primary productivity tool, I wanted to see what was possible with Notion's API. A basic portfolio tracker seemed like a good start.
This project uses notion-py
which is an unofficial Python client for Notions API. For the current asset values, I'm using yfinance
which allows easy access to data from Yahoo Finance. One thing to note with this is that the ticker values used have to correspond with values on the platform.
notion == 0.0.25
yfinance == 0.1.54
forex_python == 1.5
The following variabels require updating:
token_v2 =
page_url =
table_url =
- Trigger - choose Pub/Sub and either create a new or use an exiting topic.
- Either upload or copy/paste the main.py and requrements.txt file.
- Set the function to execute as 'run'.
- The function can be tested using 'Test function' option under the actions menu once deployed.
- Set the target to the Pub/Sub topic.