Files
@ 992c91fc90de
Branch filter:
Location: NPO-Accounting/oxrlib/oxrlib_example.ini - annotation
992c91fc90de
995 B
text/x-ini
config: Nicer implementation of date parsing.
Keeps less local state through the function, to reduce the risk of that
state getting inconsistent.
Keeps less local state through the function, to reduce the risk of that
state getting inconsistent.
a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f a6e46b0cca1f 9be9b07a8d54 9be9b07a8d54 9be9b07a8d54 9be9b07a8d54 9be9b07a8d54 9be9b07a8d54 9be9b07a8d54 | [OXR]
# This section includes settings to query the Open Exchange Rates API directly.
# An App ID provided by OXR.
app_id = abcd1234...
[Cache]
# This optional section includes settings to read and write a cache of API
# results on the filesystem. If you omit these settings, results won't be
# cached.
# The directory to save cache files under. This directory must already exist.
directory = /home/YOU/.cache/oxrlib
# Save data from the historical API using this filename pattern.
# The pattern must include `{date}` and `{base}`, where API parameters are
# filled in.
historical = {date}_{base}_rates.json
[Historical]
# This optional section can specify default parameters for historical API calls.
# Set the base currency.
# Note that setting a base other than USD requires a paid OXR account.
base = USD
# Write output in Ledger format.
ledger = no
# Use signs for these currencies in Ledger output.
# If not specified, defaults to the base currency.
signed_currencies = USD, EUR
|