2022-05-28 18:57:44 +08:00
2019-11-29 15:56:31 -06:00
2022-05-25 14:31:55 +08:00
2022-05-28 18:57:44 +08:00

LedgerStockUpdate

This application locates any stocks/crypto currencies you have in your ledger-cli file, then generates a price database of those stocks compatible with the application, using quotes from Yahoo Finance.

Forked from adchari/LedgerStockUpdate, add some features:

  • Add name mapping functionality: use BTC in your ledger and BTC-USD for online quotes
  • Replace API from Alpha Vantage, without the needs of obtaining API token
  • Recursively transform the quotes to single currency

Usage

Build the go file, and run as follows:

./[name of executable] -f=[ledger file] -p=[price database file (to create or update)] -b=[Name of ledger binary] -m=[name mapping file]

This should spit out a price database file, which can then be used to calculate the market value in ledger as follows:

ledger -f [ledger file] --price-db [price database file] -V bal
Description
No description provided
Readme 50 KiB
Languages
Go 100%