A package for read operations for the comdirect API
Project description
Comdirect API
This is an unofficial python wrapper for the comdirect API for private consumers (April 2020).
This package currently only supports read operations, which include:
- Read balances and transactions
- Read depot information
- Read and download Documents
Install
Install the package using pip
pip install comdirect-api-simple
Usage
Initialize the client:
from comdirect_api.comdirect_client import ComdirectClient
client_id = '<your_client_id>'
client_secret = '<your_client_secret>'
client = ComdirectClient(client_id, client_secret)
Login with your credentials like so:
user = 'your_zugangsnummer'
password = 'your_pin'
client.fetch_tan(user, password)
After confirming the login on your photoTAN app you can activate your session.
client.activate_session()
You can refresh your token with:
client.refresh_token()
The the client is now ready for use, for example:
balances = client.get_all_balances()
print(balances['values'])
It is also possible to send a GET request to a self defined endpoint, for example:
client.get('reports/participants/user/v1/allbalances', productType='ACCOUNT')
More information about the official API can be found at https://developer.comdirect.de
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for comdirect-api-simple-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f59830d6ea061c674303315ac7f951b608d211533042b4f1a7bb2139e32dce5e |
|
MD5 | 08d127d7ddf12050077b023eae650dfa |
|
BLAKE2b-256 | 70ce41960c1c27cae4b42225e2ed2b16c34993a8c657ca8945b47eee856ee83e |
Close
Hashes for comdirect_api_simple-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59d6148c59d41ec453fc77aa0c2fd8a4c2c18dbab2d313b2c57039294a990648 |
|
MD5 | 2c9ecb6c66d48ebbccd3000899573066 |
|
BLAKE2b-256 | 31c890a47221708c825efe48b92b32fe88e1f7bd6f271beb4912635b632a8d55 |