Adds Beancount import helper script

Implements a script to import Beancount ledger transactions into the Castle accounting extension.

The script fetches BTC/EUR rates, retrieves accounts from the Castle API, maps users, parses Beancount transactions, converts EUR to sats, and uploads the data to Castle.

Adds error handling, dry-run mode, and detailed logging for improved usability.
Displays equity account status and validates the existence of user equity accounts.
This commit is contained in:
padreug 2025-11-08 23:18:42 +01:00
parent 4ae6a8f7d2
commit 9054b3eb62
3 changed files with 724 additions and 0 deletions

1
helper/btc_eur_rates.csv Symbolic link
View file

@ -0,0 +1 @@
/home/padreug/projects/historical-bitcoin-data/bitcoin_daily_prices.csv
1 /home/padreug/projects/historical-bitcoin-data/bitcoin_daily_prices.csv