3 stable releases
new 3.0.0 | Jan 19, 2025 |
---|---|
1.1.0 | Jun 2, 2023 |
1.0.0 | May 27, 2022 |
#530 in Command line utilities
103 downloads per month
15KB
174 lines
LedgerDB
This application locates any stocks you have in your ledger-cli file, then generates a price database of those stocks compatible with the application.
Installation
This package has been published to crates.io, and is installable with cargo.
cargo install ledgerdb
Usage
Gets price updates for stock ticker symbols in your ledger-cli file
Usage: ledgerdb --file <LEDGER> --pricedb <PRICEDB> <--alpha-token <ALPHA_TOKEN>|--tiingo-token <TIINGO_TOKEN>>
Options:
-f, --file <LEDGER> Takes the filepath to your ledger-cli file
-p, --pricedb <PRICEDB> Takes the filepath to your price database (or where to create it)
-a, --alpha-token <ALPHA_TOKEN> Takes an AlphaVantage API token, available for free
-t, --tiingo-token <TIINGO_TOKEN> Takes a Tiingo API token, available for free
-h, --help Print help
-V, --version Print version
AlphaVantage
Use the -a flag to pass an AlphaVantage token, available for free from: AlphaVantage. The free tier of this API currently has a 25 request per day limit, where each request includes one ticker from your ledger-file.
Tiingo
Use the -t flag to pass in a Tiingo token, available for free from: Tiingo. The free tier of this API currently has a 50 request per hour limit, and a 1000 request per day limit. Each request includes one ticker from your ledger-file.
Dependencies
~6–18MB
~253K SLoC