Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nathankot/ledger-get-prices
https://github.com/nathankot/ledger-get-prices
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nathankot/ledger-get-prices
- Owner: nathankot
- License: mit
- Created: 2015-05-03T03:33:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T14:54:02.000Z (almost 6 years ago)
- Last Synced: 2024-10-26T22:47:34.796Z (2 months ago)
- Language: Ruby
- Size: 17.6 KB
- Stars: 19
- Watchers: 4
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## ledger-get-prices
It's the end of financial year, and now that I'm accounting with NZD,USD,JPY,BTC I've spent some time to automate the
pricedb process. Enjoy :) PR's welcome.# Synopsis
_Tool that uses Yahoo finance to intelligently generate
a ledger price database based on your current ledger
commodities and time period._Ensure that you have set the `LEDGER` and `LEDGER_PRICE_DB`
environment variables before proceeding. Alternatively, you
can make the same addition to your `.ledgerrc`, so long as
running `ledger` vanilla knows where to get the journal and
pricedb.# Environment Variables
* __LEDGER_BASE_CURRENCY__: Defaults to USD, change this to your reporting currency.
* __LEDGER_PRICE_DATE_FORMAT__: The date format of the outputted pricedb. Defaults to `%Y/%m/%d`.# Usage
```sh
gem install ledger_get_prices
getprices # This will WRITE to your LEDGER_PRICE_DB file.
```