2017-05-17 20:23:56 +00:00
|
|
|
[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
|
2017-05-18 17:47:46 +00:00
|
|
|
|
|
|
|
# Write output in Ledger format.
|
|
|
|
ledger = no
|
|
|
|
|
2017-06-09 15:06:51 +00:00
|
|
|
# Denominate Ledger books in this currency.
|
|
|
|
# Ledger-formatted conversions will always show a rate to convert to this
|
|
|
|
# currency, even when converting between two other currencies.
|
|
|
|
# If not specified, output will show the rate for the currency you're
|
|
|
|
# converting to.
|
|
|
|
denomination = USD
|
|
|
|
|
2017-05-18 17:47:46 +00:00
|
|
|
# Use signs for these currencies in Ledger output.
|
2017-06-09 17:22:12 +00:00
|
|
|
# If not specified, defaults to the user's preferred currency, which is
|
|
|
|
# the first setting found from:
|
|
|
|
# 1. the denomination setting above
|
|
|
|
# 2. the user's locale
|
|
|
|
# 3. the base currency (which defaults to USD)
|
2017-05-18 17:47:46 +00:00
|
|
|
signed_currencies = USD, EUR
|