forex2ledger: Print Forex quotes in Ledger format

[ agpl, finance, library, program ] [ Propose Tags ] [ Report a vulnerability ]

Modules

  • AppId
  • Config
  • Ledger
  • OpenExchangeRates

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0.0, 1.0.0.1, 1.0.0.2
Dependencies aeson, base (>=4.13 && <5), containers, currency-codes, forex2ledger, hledger-lib (>=1.21), HTTP, optparse-applicative, relude, text, time, tomland, unordered-containers, url [details]
License AGPL-3.0-only
Copyright Copyright (c) 2021 Grzegorz Milka
Author Grzegorz Milka
Maintainer grzegorzmilka@gmail.com
Category Finance
Home page https://github.com/gregorias/forex2ledger#readme
Bug tracker https://github.com/gregorias/forex2ledger/issues
Source repo head: git clone https://github.com/gregorias/forex2ledger
Uploaded by gregorias at 2021-07-28T19:53:23Z
Distributions
Executables forex2ledger
Downloads 406 total (11 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2021-07-28 [all 2 reports]

Readme for forex2ledger-1.0.0.2

[back to package description]

forex2ledger

This tool prints currency exchange rates in plain text account format, e.g.;

$ stack run -- --config_file config-sample.toml
P 2021-03-21 USD 0.929777 CHF
P 2021-03-21 USD 0.836925 EUR

Installation

Run stack install. This command installs the forex2ledger binary in your PATH.

Usage

You will need a valid app ID from http://openexchangerates.org.

  1. Add a valid app ID to config-sample.toml.
  2. Run forex2ledger --config_file config-sample.toml.

Sample config file

An example config file looks like this:

# config-sample.toml
# The AppId for https://openexchangerates.org/
oer_app_id = 'SAMPLEAPPID'
currency.base = 'USD'
currency.targets = [
  'CHF',
  'EUR',
]