jsattler / go-comdirect

Go module and CLI tool to interact with the comdirect REST API
Apache License 2.0
44 stars 9 forks source link
banking cli comdirect comdirect-api finance go golang library

go-comdirect

version Apache License v2 GitHub go.mod Go version of a Go module

go-comdirect is both a client library and CLI tool to interact with the comdirect REST API.

Additional Notes

  • The library is currently unstable and will change frequently until version 1.0.0 is released
  • Please read the comdirect API documentation prior to using this software
  • Use of this software is at your own risk
  • 10 requests per second are allowed by comdirect
  • 3 invalid TAN validation attempts will cancel the online access

Features

Install

Use go get to install the latest version of this library:

$ go get -u github.com/jsattler/go-comdirect

Use go install to install the comdirect CLI tool:

go install github.com/jsattler/go-comdirect/comdirect@main

Quick Start

// omitting error validation, imports and packages

options := &comdirect.AuthOptions{
    Username:     os.Getenv("COMDIRECT_USERNAME"),
    Password:     os.Getenv("COMDIRECT_PASSWORD"),
    ClientId:     os.Getenv("COMDIRECT_CLIENT_ID"),
    ClientSecret: os.Getenv("COMDIRECT_CLIENT_SECRET"),
}

client := comdirect.NewWithAuthOptions(options)

Documentation

You can find detailed documentation

Contributing

Your contributions are appreciated! Please refer to CONTRIBUTING.md for further information.

License

Please refer to LICENSE for further information.