https://github.com/aeldar/hledger-update-crypto-prices
Update crypto prices for Hledger
https://github.com/aeldar/hledger-update-crypto-prices
hledger
Last synced: 7 months ago
JSON representation
Update crypto prices for Hledger
- Host: GitHub
- URL: https://github.com/aeldar/hledger-update-crypto-prices
- Owner: aeldar
- License: mit
- Created: 2023-04-15T11:15:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-02T15:19:47.000Z (over 1 year ago)
- Last Synced: 2025-01-23T16:22:38.029Z (9 months ago)
- Topics: hledger
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hledger-update-crypto-prices
Update crypto prices for [Hledger](https://hledger.org/)
## Installation
1. Clone the repo
2. `cd` to your binaries' location, which is in $PATH (e.g. to `~/.local/bin`)
3. `ln -s ~//hledger-update-crypto-prices.sh hledger-update-crypto-prices`## Usage
Run:
```shell
hledger update-crypto-prices
```You can add a comma separated list of crypto abbreviations as an argument (_BTC,ADA_ by default):
```shell
hledger update-crypto-prices BTC,ADA,SOL
```You can specify a target currency as a second argument (_USD_ by default):
```shell
hledger update-crypto-prices BTC,ADA,SOL EUR
```## Currency abbreviations
Some currencies' abbreviations are automatically converted to their symbols. Remove in the code, if you don't need it.