Skip to content

jozefRudy/patrimonio_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Patrimonio Utils

Portfolio tracking and bank account monitoring utilities written in F#.

Projects

Tracker

Portfolio tracking tool that calculates the current value of your investment holdings.

Features:

  • Reads portfolio holdings from JSON
  • Fetches real-time quotes from Yahoo Finance
  • Calculates portfolio value in USD and EUR
  • Shows price changes and percentage movements

Usage:

dotnet run --project Tracker -- portfolio.json

JSON Format:

[
  {
    "Symbol": "AAPL",
    "Quantity": 10.5
  },
  {
    "Symbol": "MSFT",
    "Quantity": 5.25
  },
  {
    "Symbol": "USD",
    "Quantity": 1000.00
  }
]

Account

Bank account monitoring tool that retrieves recent transactions from Fio Bank using a read-only token.

Features:

  • Fetches last 2 days of transactions from Fio Bank
  • Displays account balance and IBAN
  • Shows transaction details (date, amount, comment)
  • Supports multiple accounts

Usage:

dotnet run --project Account -- accounts.json

JSON Format:

[
  {
    "token": "your-fio-readonly-token-here"
  },
  {
    "token": "another-account-token"
  }
]

Getting a Fio Bank Token:

  1. Log in to Fio internet banking
  2. Navigate to Settings → API
  3. Generate a read-only token
  4. Copy the token to your JSON file

Library

Shared library containing:

  • Portfolio.fs - Portfolio data structures, quote fetching, formatting
  • CurrentAccount.fs - Fio Bank API client and transaction handling

Building

dotnet build

Running Tests

dotnet test

About

Some command line utilities I use to track my assets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages