AqBanking

Travis Status codecov.io

This is a ruby library and command line tool to wrap around the more complex aqbanking cli tools.

Sample:

$ aq_banking request --bank=diba BLZ ACCCOUNT_NUMBER LOGIN_ID PASSWORD --from=2016-04-18
{
  "iban": "...",
  "bic": "...",
  "owner": "WENGLEWSKI, ROBIN",
  "currency": "EUR",
  "bank_code": "...",
  "bank_name": "ING-DiBa",
  "booked_balance": 123.45,
  "noted_balance": 123.45,
  "number": "...",
  "name": "Girokonto",
  "transactions": [
    {
      "amount": -22.0,
      "currency": "EUR",
      "date": "2016-04-18 12:00:00 UTC",
      "valuta_date": "2016-04-18 12:00:00 UTC"
      ...
    },
    ...
  ],
  ...
}

It still requires the aq_banking command line tools to be present. To avoid errors with versions etc, I recommend using the docker image:

docker run -it --rm rweng/aq_banking --help    
docker run -it --rm rweng/aq_banking request --bank=diba BLZ ACCCOUNT_NUMBER LOGIN_ID PASSWORD --from=2016-04-18

Installation

CLI

gem install aq_banking

Ruby

Add this line to your application's Gemfile:

gem 'aq_banking', github: 'rweng/aq_banking'

And then execute:

$ bundle

Usage

aq_banking --help
aq_banking request BLZ ACCCOUNT USER_ID PASSWORD --bank=diba

Development

# log into container
docker-compose run dev

# run tests
rspec

Release

# publish gem
rake release

# publish docker container
docker-compose build --no-cache release
docker push rweng/aq_banking

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rweng/aq_banking.