A personal investment portfolio tracker for Brazilian and international assets. Native desktop app written in Rust with a local-first SQLite database — no cloud, no accounts, no tracking.
Synthetic demo data — generate your own with
./scripts/run-demo.sh(see Demo mode).
| Overview | Positions | History |
|---|---|---|
- Multi-broker imports — B3 (
.xlsx), IBKR activity statement (.csv), Binance (.csv). Manual entry also supported. - Multi-asset — Brazilian stocks/ETFs, international stocks, Tesouro Direto, crypto (BTC via Binance), gold.
- BRL-first — Every position is converted to BRL using historical PTAX rates for accurate cost basis and PnL.
- Live prices — Yahoo Finance (equities), CoinGecko (crypto), Tesouro Nacional API (bonds), BCB PTAX (FX).
- Views — Overview, positions, transaction history with chart, income (dividends/JCP), insights, import, manual entry, settings.
- Deduplicated imports — Every row is hashed so re-importing the same file is a no-op.
Cargo workspace with two crates:
crates/core— data model, SQLite schema/queries, parsers (B3/Binance), price/FX API clients, portfolio math, reconciliation, JSON export/import. (IBKR CSV is parsed inline in the UI crate.)crates/ui— GPUI desktop app, built on upstreamgpuiandgpui-component.
The database lives at ~/Library/Application Support/dinheiros/data.db on macOS (via dirs::data_local_dir()).
cargo run --bin dinheirosFor screenshots or trying the app without your own broker data:
./scripts/run-demo.shThis seeds /tmp/dinheiros-demo.db with a synthetic Brazilian-investor portfolio (B3 stocks, ETFs, Tesouro, IBKR US stocks, BTC, dividends/JCP) and launches the app against it. Your real database at ~/Library/Application Support/dinheiros/data.db is not touched. Re-running the script regenerates the demo DB from scratch.
Produces a release binary at target/release/dinheiros:
cargo build --release --bin dinheiroscargo testPlace broker export files under input-files/ (gitignored) in the matching subdirectory:
input-files/b3/*.xlsx— B3 "Movimentação" sheet exportsinput-files/ibkr/*.csv— IBKR activity statement CSVinput-files/binance/*.csv— Binance transaction history
Then use the Import tab in the app.
Core tables: transactions, daily_prices, income, config. Every transaction carries both the native-currency value and the BRL-converted value at the trade-date FX rate. Schema and migrations live in crates/core/src/db/schema.rs.
MIT © Pedro Guedes