Giter Site home page Giter Site logo

xuhcc / beancount-exchangerates Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 2.0 28 KB

Price source for Beancount that loads data from https://exchangerate.host/

License: GNU General Public License v3.0

Python 100.00%
beancount beancount-prices exchangeratesapi

beancount-exchangerates's Introduction

Beancount Exchange Rates

Price source for Beancount that can load data from https://exchangerate.host/ or similar providers.

exchangerate.host

List of supported forex currencies: https://api.exchangerate.host/symbols

No API key required.

Installation

Install latest version with pip:

pip install https://github.com/xuhcc/beancount-exchangerates/archive/master.zip

Usage

Source string format is <quote-currency>:beancount_exchangerates/<base-currency>:<quote-currency>.

Default API base url is https://api.frankfurter.app. It can be changed using EXCHANGERATE_API_URL environment variable to any service that implements Fixer API.

Data source can be changed using EXCHANGERATE_SOURCE environment variable.

Check https://api.exchangerate.host/sources for the complete list of sources.

Examples

Evaluate source string with bean-price:

PYTHONPATH=.:$PYTHONPATH bean-price --no-cache -e 'RUB:beancount_exchangerates/USD:RUB'

Set price source for commodity in beancount file:

1970-01-01 commodity USD
    price: "RUB:beancount_exchangerates/USD:RUB"

beancount-exchangerates's People

Contributors

andreidum avatar xuhcc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

andreidum aphoh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.