How to track investments in Notion
- Stock/Crypto prices updated automatically
- Tracking of profits/loss on your investments
Tracking investments in Notion is quite simple as it provides useful tools such asFormulas.
You can create your own database of investments, to track every asset you purchase or own, and get information on how much your portfolio is worth, or how much you won/lost with a specific stock.
However, you would need to periodically update asset prices to keep that information up to date.
By using NotionInvest you get those updates made in the background automatically:
Asset | #Units | Unit Price | ΣInvestment |
---|---|---|---|
BTC | 1.52 | $51,419.39 | $78,157.47 |
ETH | 5.43 | $2,116.53 | $11,492.76 |
AAPL | 5 | $218.53 | $1,092.65 |
Price data by | Sum $90,742.88 |
1. Create a database of asset prices
First, we need a Notion database with the price of each asset you own. For example, if you have 3 units of AAPL (Apple Inc. stock), we need to have that price in a database somewhere in Notion to calculate the value of our portfolio.
Follow our shorttutorial on creating the prices database, or go ahead and create it yourself if you already know how to do so.
After creating the database, you have two options:
- Manually update all prices periodically
- Or use NotionInvest to get prices automatically updated for you.
2. Create a second database for asset purchases
Now we create another database where we'll track every purchase we make. First, we add the properties that we'll need to enter manually:
And then add a simple formula to get the invested amount (units * price).
Our database should look like this by now:
3. Connect both databases with a relation
Databases can be connected by usingrelations, which allows to reference one or many items from the target database.
Let's add a relation to the Assets table we created at the beginning.
And since we want to both see the current price and use it to calculate profit/loss, we need to also add a rollup property to load each asset's current price.
By using a rollup property, you can reference values in the target database. That means they require an existing relation.
Let's add one rollup to Assets.Price to get the price of the selected asset in our purchases database:
Now both database are connected and we're displaying prices from the assets source:
And since we've added a formula above to calculate the invested amount, it is already being updated when entering the purchased price and units:
Great! Now we have both databases connected, and we can use asset prices in our formulas to calculate whatever we want!
4. Extra: Calculate profit/loss
Having the asset prices enables us to calculate how much our investments are worth today, and we can compare them with the invested amounts to get results.
By multiplying Units and Current Price we get how much the investment is worth today. Then when we subtract the Invested amount, we get the profit/loss.
And we can do the same to get the profit/loss in percentage:
We divide the Current Price by the Purchase Price to get the ratio of how much it was increased/reduced, and then we multiply and divide by 1000 to keep two decimals.
That's it! We now have a database of Assets that is automatically updated from the Market, and an Investments database that calculates results based on them.
Now we can properly track our finances!