Free portfolio template to keep your assets in order
- calculate your portfolio items in percent
- loss/gain calculations
- support of all crypto assets available through API
pip3 install requests
API in use
https://www.coinlore.com/cryptocurrency-data-api
Use Cron or any scheduler to run the script in the frequency you want
# min | hour | day | month | weekday | command 0 * * * * /usr/bin/python3 /home/.../portfolio.py
Cron job to run it every hour
crontab -e
Add to the end of file (leave empty line in the end)
0 * * * * python3 <path_to>/portfolio.py
Verify
crontab -l
-
Duplicate the notion template
-
Copy your own DB id
long_hash_1https://www.notion.so/<long_hash_1>?v=<long_hash_2> -
Set variable
wallet_db_idinportfolio.pywith your ownlong_hash_1 -
Set up new integration and set variable
secretinportfolio.pywith your own secrethttps://www.notion.so/help/create-integrations-with-the-notion-api#create-an-internal-integration
-
In your own wallet add access to your newly created integration:
Wallet note Settigs->Add connections-><Name_of_your_connection>
Script and tamplate based on this.
BTC: bc1quxyslea2rw7ys40qc5ymnteeu74xn9kmgqqmyv
ETH/L2: 0x890290037b86c6b21480311686eE24A343C884E3
TRON/TRC-20: TN2P5TwNFnRGTc9aDQ3ftC8L5nujpEc71Y