Scroll to navigation

BEAN-PRICE(1) User Commands BEAN-PRICE(1)

NAME

bean-price - fetch from the internet commodity prices for Beancount processing

DESCRIPTION

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 ...]

Fetch prices from the internet and output them as Beancount price directives.

positional arguments:

A list of filenames (or source "module/symbol", if -e is specified) from which to create a list of jobs.

optional arguments:

show this help message and exit
show program's version number and exit
Interpret the arguments as "module/symbol" source strings.
Print out progress log. Specify twice for debugging info.
Specify the date for which to fetch the prices.
Select all commodities from input files, not just the ones active on the date
Include commodities viewed in the file even without a corresponding Commodity directive, from this default source. The currency name itself is used as the lookup symbol in this default source.
Do not skip prices which are already present in input files; fetch them anyway.
A shorthand for --inactive, --undeclared, --clobber.
For inverted sources, swap currencies instead of inverting the rate. For example, if fetching the rate for CAD from 'USD:google/^CURRENCY:USDCAD' results in 1.25, by default we would output "price CAD 0.8000 USD". Using this option we would instead output " price USD 1.2500 CAD".
Don't actually fetch the prices, just print the list of the ones to be fetched.

cache:

Enable the cache and with the given cache name.
Disable the price cache.
Clear the cache prior to startup
November 2020 bean-price 2.3.3