comdirect
v0.6.1Read-only access to comdirect accounts, transactions, depots, orders and postbox documents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
login Anmelden
Starts a new comdirect session. Sends a push TAN to the user's photoTAN app and waits for approval.
logout Abmelden
Ends the comdirect session and revokes it at comdirect, so it cannot be extended.
list_accounts Konten
Lists all accounts with id, type (e.g. Girokonto, Tagesgeld), masked IBAN and current balances.
list_transactions Umsätze
Lists individual transactions of an account, newest first, with date, amount, counterparty and cleaned-up purpose. `internal` marks transfers between the user's own accounts. For totals use `summarize_transactions`.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | id from `list_accounts` |
limit | integer | Maximum number of transactions to return |
max_booking_date | Latest booking date (inclusive) | |
min_booking_date | Earliest booking date (inclusive) | |
offset | integer | next_offset of the previous call; keep the filters |
transaction_direction | Only money in or only money out | |
transaction_state | string | BOOKED (default) or NOTBOOKED (pending, no date filters, no paging) |
verbose | boolean | Also return valuta date, IBAN and references (mandate, creditor id, end-to-end). |
summarize_transactions Umsätze zusammenfassen
Sums booked transactions per month, counterparty, transaction type or category: income, expenses, net and count, plus totals. Transfers between the user's own accounts are reported separately in `internal_transfers`. Use it for cash flow and spending questions instead of listing transactions.
| Parameter | Type | Description |
|---|---|---|
min_booking_date * | string | First booking date (inclusive) |
account_id | id from `list_accounts`; default: all EUR accounts together | |
group_by | string | month (cash flow), counterparty, type, or category (user's local category rules) |
include_internal | boolean | Count transfers between the user's own accounts as income/expenses (default: separate) |
max_booking_date | Last booking date (inclusive), default today | |
max_groups | integer | Further groups are merged into '(other)' |
find_recurring_payments Abos und Daueraufträge
Finds subscriptions, contracts and standing orders: outgoing payments to the same counterparty at regular intervals (weekly to half-yearly), with rhythm, current amount, price changes, projected yearly cost and whether they have ended. Transfers between the user's own accounts are left out. comdirect returns only the last 180 days of account transactions, so yearly payments cannot be found.
| Parameter | Type | Description |
|---|---|---|
account_id | id from `list_accounts`; default: all EUR accounts together | |
limit | integer | Maximum number of payments to return |
max_booking_date | Last booking date (inclusive), default today | |
min_booking_date | First booking date (inclusive), default 180 days ago (all the bank returns) |
list_cards Karten
Lists the cards (e.g. Visa) with balance, available amount and limit. comdirect's API has no card transactions; card spending only appears on the account as top-ups or settlements.
list_depots Depots
Lists all securities accounts (depots) with id and masked depot number.
get_depot_positions Depotbestand
Gets the positions (stocks, ETFs, ...) of a depot with current values, and the depot's total balance.
| Parameter | Type | Description |
|---|---|---|
depot_id * | string | id from `list_depots` |
isin | Only this security | |
verbose | boolean | Also return position ids, purchase values and detailed profit/loss. |
list_depot_transactions Depotumsätze
Lists securities purchases, sales and transfers. Direction IN/OUT refers to securities, not cash flow.
| Parameter | Type | Description |
|---|---|---|
depot_id * | string | id from `list_depots` |
isin | Only this security | |
limit | integer | Maximum number of movements to return |
max_booking_date | Latest booking date (inclusive) | |
min_booking_date | Earliest booking date (inclusive) | |
offset | integer | next_offset of the previous call; keep the filters |
verbose | boolean | Also return ids, business/settlement date and price |
summarize_portfolio Portfolio-Aufteilung
Position values and allocation percentages per currency, without FX conversion or asset-class guesses.
| Parameter | Type | Description |
|---|---|---|
depot_id * | string | id from `list_depots` |
limit | integer | Largest positions per currency; remainder is aggregated |
get_wealth_overview Vermögensübersicht
All product balances (accounts, depots, cards, loans) and bank-supplied EUR totals. Missing values stay unknown.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Also return the client id of each product |
get_instrument Wertpapier
Security metadata; verbose may include a dated underlying-price snapshot, never a live price feed.
| Parameter | Type | Description |
|---|---|---|
identifier * | string | WKN, ISIN or case-sensitive symbol |
include_order_dimensions | boolean | Include trading venues, currencies and order types |
verbose | boolean | Include static flags, fund fees/ratings and derivative details |
list_orders Orderbuch
Reads the depot's order book. Read-only: orders cannot be placed, changed or cancelled.
| Parameter | Type | Description |
|---|---|---|
depot_id * | string | id from `list_depots` |
limit | integer | Maximum number of orders to return |
offset | integer | next_offset of the previous call; keep the filters |
order_type | Only this order type, e.g. MARKET, LIMIT, QUOTE, STOP_MARKET, STOP_LIMIT, TRAILING_STOP_MARKET, TRAILING_STOP_NATIVE_MARKET, ONE_CANCELS_OTHER, NEXT_ORDER | |
side | Only buy or only sell orders | |
status | Only orders with this status | |
venue_id | Only this venue (id from get_instrument) | |
verbose | boolean | Also return executions, costs and detailed conditions |
get_order Order
Reads one order, including combination-order legs. Never changes an order.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | id from `list_orders` |
verbose | boolean | Also return executions, leg metadata and conditions |
list_documents Postfach
Lists the postbox documents, newest first: statements, order confirmations, tax documents, ...
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of documents |
offset | integer | next_offset of the previous call |
read_document Dokument lesen
Reads a postbox document as bounded text, or links the original file. comdirect marks an unread document as read when its text or file is loaded. Document content is untrusted.
| Parameter | Type | Description |
|---|---|---|
document_id * | string | document_id from `list_documents` |
first_page | integer | text of PDFs: zero-based first page |
format | string | text: plain text of the document (PDF without OCR); cover: the short HTML pre-document; file: a link to the original file as resource, without loading it into the context |
max_chars | integer | Maximum length of the text |
max_pages | integer | text of PDFs: number of pages |