How do I add a new currency?

Table of Contents

Add a new currency. See the CLI inventory for sibling recipes.

Question

How do I add a new currency using ores.cli?

Answer

export ORES_CLI_DB_PASSWORD
./ores.cli refdata currencies add ${db_args} ${log_args} --iso-code ABCDE --name "New Currency" \
    --numeric-code 1234 --modified-by test --currency-type major
./ores.cli refdata currencies list ${db_args} ${log_args} \
  --format table --key ABCDE
Successfully added currency: ABCDE

+----------+---------+--------------+--------+-------+----------------+-----------+-------------+---------------------+---------------------+
| ISO Code | Version | Name         | Symbol | Type  | Fractions/Unit | Precision | Modified By | Valid From          | Valid To            |
+----------+---------+--------------+--------+-------+----------------+-----------+-------------+---------------------+---------------------+
| ABCDE    | 2       | New Currency |        | major | 100            | 2         | test        | 2025-12-11 23:51:36 | 2025-12-11 23:51:36 |
+----------+---------+--------------+--------+-------+----------------+-----------+-------------+---------------------+---------------------+


Emacs 29.3 (Org mode 9.6.15)