BEAN-PRICE(1)
πΈ NAME πΈ
bean-price β fetch from the internet commodity prices for Beancount processing π
β¨ DESCRIPTION β¨
okay so here's the whole vibe bestie: bean-price goes out onto the internet π, grabs commodity prices, and spits them back out as Beancount price directives. that's the gig. that's the whole gig. iconic behavior fr fr.
here's the usage, verbatim, no cap:
usage: bean-price [-h] [--version] [-e] [-v] [-d DATE] [-i] [-u
UNDECLARED]
[-c] [-a] [-s] [-n] [--cache CACHE_FILENAME] [--no-cache]
[--clear-cache] sources [sources ...]
π positional arguments
sourcesβ a list of filenames to build your job list from π (or, if you passed-e, a list of source"module/symbol"strings instead β iykyk).
π options
-h,--helpβ shows this help message and then dips out. bye bestie π--version,-Vβ shows the program's version number and exits. short and sweet.-e,--expressions,--expressionβ read the arguments as"module/symbol"source strings. that's the plot twist.-v,--verboseβ prints out the progress log. say it twice and you get debugging info too π-d DATE,--date DATEβ pick the date you want prices fetched for. time travel but make it finance.-i,--inactiveβ grabs all commodities from the input files, not just the ones that are active on the date. everyone's invited to the party π-u UNDECLARED,--undeclared UNDECLAREDβ pulls in commodities that show up in the file even when there's no matchingCommoditydirective, using this default source. the currency name itself is used as the lookup symbol in this default source. lowkey genius.-c,--clobberβ does not skip prices that are already sitting in your input files; it fetches them anyway. rude but effective π€-a,--allβ a shorthand for--inactive,--undeclared,--clobber. three-for-one deal, we love to see it.-s,--swap-invertedβ for inverted sources, swaps the currencies instead of inverting the rate. for example, if fetching the rate for CAD from'USD:google/^CURRENCY:USDCAD'results in1.25, by default we'd output"price CAD 0.8000 USD". using this option we'd instead output" price USD 1.2500 CAD". math girlies stay winning π₯-n,--dry-runβ doesn't actually fetch anything, just prints the list of the prices that would be fetched. a little peek behind the curtain π«£
π§ cache
--cache CACHE_FILENAMEβ turns the cache on, and names it with the given cache name.--no-cacheβ turns the price cache off. sorry cache, not today π--clear-cacheβ wipes the cache before startup. clean slate, main character energy β¨
ngl, the cache options are the sleeper hits here. turn them on, keep them tidy, and your price fetching will be giving absolutely flawless vibes π
and that's the page, bestie π this lil beauty is from bean-price 2.3.6, dated April 2024. mwah, go fetch some prices ππ
π¦ where this page comes from
- ubuntu noble: beancount 2.3.6-1build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms