| GETQUOTE(1) | General Commands Manual | GETQUOTE(1) |
getquote — Fetch
commodity prices for ledger(1)
getquote |
symbol [exchange_to] |
getquote is a getquote implementation for
ledger(1) using the TwelveData API.
By default, getquote first treats
symbol as a currency and attempts to fetch the
exchange rate of it and exchange_to (or USD if not
given). If that fails, it will then treat symbol as a
ticker and retrieve a quote.
The default behavior can be altered using the configuration file described in getquote(5).
TWELVE_DATA_API_KEYXDG_CONFIG_HOMETWELVE_DATA_API_KEY isn't
set.The getquote utility exits 0 on
success, and >0 if an error occurs.
Get the price of Vanguard's Total Stock Market ETF (VTI) in a format suitable for ledger:
$ getquote VTIGet the XMR/EUR exchange rate:
$ getquote XMR EURJacob R. Edwards <jacob@jacobedwards.org>
| January 22, 2026 | jacob |