Skip to main content

beancount_mnb

Az MNB hivatalos középárfolyamainak letöltését megvalósító beancount plugin.

Telepítés

pip install beancount_mnb

Használat

Sztenderd bean-price parancsokkal:

  • csomag neve: beancount_mnb
  • devizák nevei: hárombetűs ISO devizamegnevezések

Példák

Aznapi USD árfolyam lekérése:

bean-price -e 'HUF:beancount_mnb/USD'
  1. január 10-i euró árfolyam lekérése:
bean-price --date 2018-01-10 -e 'HUF:beancount_mnb/EUR'

Ha a fentiek működnek, akkor a főkönyvbe fixen is beépíthetőek pl. az alábbi két devizanem árfolyamainak forrása:

1970-01-01 commodity USD
  price: "HUF:beancount_mnb/USD"
1970-01-01 commodity EUR
  price: "HUF:beancount_mnb/EUR"

Ezt követően már nem szükséges expliciten megadni a kívánt devizanemeket:

bean-price fokonyv.beancount

Megjegyzések

Ünnepnapokon és hétvégén nincsenek hivatalos középárfolyamok.

Ha ekkor is szeretnénk árfolyamokhoz jutni, akkor a beancount lehetőséget ad fallback adatforrás megadására is:

1970-01-01 commodity EUR
  price: "HUF:beancount_mnb/EUR,yahoo/EURHUF=X"
1970-01-01 commodity USD
  price: "HUF:beancount_mnb/USD"

Metadata

Release files for beancount-mnb 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beancount-mnb 1.0.1
File Size Uploaded
beancount_mnb-1.0.1.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for beancount-mnb 1.0.1
File Interpreter ABI Platform
beancount_mnb-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / beancount_mnb-1.0.1.tar.gz

Download URL beancount_mnb-1.0.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8621bd921d543c08fb2a1692e05df4fc7dcbae8a70aebc28d55812a7728a550f
BLAKE2b-256 checksum
How to use checksums
1bfee0b88f101a8b2fefa94d4abeb2a211f80f3ab96cd3c98412eae7983efb59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Release files / beancount_mnb-1.0.1-py3-none-any.whl

Download URL beancount_mnb-1.0.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
349546bcc977ec5f328d27af5f1e26bd47f0a1da2b16f4738e4cf9d67bb3dfcf
BLAKE2b-256 checksum
How to use checksums
64ce43abaa7f27837ea39f14d72d69a5d694a7bb7ecb0c16999efb3902b937f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page