comdirect-golang
is a client library 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
Use go get
to install the latest version of this library:
$ go get -u github.com/jsattler/comdirect-golang
// 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)
You can find detailed documentation
- on this website
- in the
docs/
folder - or in the tests of
pkg/comdirect
- Auth
- P_TAN_PUSH
- P_TAN_PHOTO (currently out of scope, since the package is not intended for use in front end apps)
- P_TAN_APP (currently out of scope, since I have no chance to test this)
- Refresh Token
- Revoke Token
- Account
- All Balances
- Balance by Account ID
- Transactions
- Depot
- All Depots
- Positions by Depot ID
- Position by Depot ID and Position ID
- Transactions by Depot ID
- Instrument
- Instrument by Instrument ID
- Order
- Dimensions
- Orders by Depot ID
- Order by Order ID
- Order Pre-Validation
- Order Validation
- Generate Order Cost Indication Ex-Ante
- Quote
- Quote-Request Validation and TAN Challenge Request
- Quote-Request Validation and TAN validation
- Create Quote-Request Request
- Documents
- Documents (Postbox)
- Document by ID
- Pre-Document (currently out of scope, since I have no document to test this with)
- Reports
- Balances of all comdirect products