Since Actual added balance graphs, I love watching them. My bank account is boring, though. My crypto wallets are not, but I never found a good way to track them in Actual.
So I wrote a script for my own machine. First I used it to fill in the older entries, so my accounts show a couple of years of history. For the last 5 months, it has run every day with no issues.
Then I moved my services to Kubernetes, so I rebuilt it as a proper tool: actual-crypto-sync. https://github.com/NicosKaralis/actual-crypto-sync
How it works
It keeps an off-budget account in line with the value of your wallets. Each run:
- reads the balance from a block explorer
- reads the price from a price provider
- writes one adjustment transaction per account per day
The note shows the balance, the change and the price, for example: 156.9193 TRX (Δ +2.009071 @ 0.297 EUR/TRX, 46.6 EUR)
What it supports (v1.2.0)
- Chains: Bitcoin, Ethereum, BNB Smart Chain and TRON
- About 40 built-in tokens, such as USDT, USDC, DAI, WBTC and LINK. You can add any other token in the config.
- Prices: CoinGecko, CoinMarketCap and CoinPaprika. The defaults need no API keys.
- Several wallets in one account
Safe for your budget
- It uses public addresses only. It never asks for keys, and it cannot move funds.
--dry-run shows what it would write, and writes nothing.- It never changes a reconciled transaction.
- It collects no data. Logs show only short addresses.
How to run it
It is a Docker image for amd64 and arm64. Run it on a schedule with cron, Docker Compose or a Kubernetes CronJob. You can run it more than once a day, but only the last run of each day stays. For fewer transactions, run it once a week or once a month.
Tested with Actual 26.11.0. It is ready for Actual's API keys when they are released.
What's next
The next version is planned to add a second mode: one transaction in Actual for each transaction on the chain, instead of one adjustment per day. It is still in planning, and no work has started yet.
I'd like to know
- Do you already track crypto in Actual? If so, how, and do you have suggestions?
- Which chain or token should come next?
- If you try it, I'd love your feedback. What problems did you find? What could be better?
A note on how I built it: I wrote the first version, the script, by myself. When I rebuilt it as a proper tool, I used a lot of help from Claude Code. The base and the design are mine.