comdirect-mcp 0.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- comdirect_mcp/__init__.py +23 -0
- comdirect_mcp/__main__.py +6 -0
- comdirect_mcp/_openapi/__init__.py +177 -0
- comdirect_mcp/_openapi/api/__init__.py +8 -0
- comdirect_mcp/_openapi/api/banking_api.py +893 -0
- comdirect_mcp/_openapi/api/brokerage_api.py +5551 -0
- comdirect_mcp/_openapi/api/messages_api.py +784 -0
- comdirect_mcp/_openapi/api/reports_api.py +371 -0
- comdirect_mcp/_openapi/api/session_api.py +791 -0
- comdirect_mcp/_openapi/api_client.py +702 -0
- comdirect_mcp/_openapi/api_response.py +20 -0
- comdirect_mcp/_openapi/configuration.py +589 -0
- comdirect_mcp/_openapi/exceptions.py +219 -0
- comdirect_mcp/_openapi/models/__init__.py +71 -0
- comdirect_mcp/_openapi/models/account.py +134 -0
- comdirect_mcp/_openapi/models/account_balance.py +134 -0
- comdirect_mcp/_openapi/models/account_information.py +100 -0
- comdirect_mcp/_openapi/models/account_transaction.py +216 -0
- comdirect_mcp/_openapi/models/amount_value.py +94 -0
- comdirect_mcp/_openapi/models/balance.py +137 -0
- comdirect_mcp/_openapi/models/business_message.py +115 -0
- comdirect_mcp/_openapi/models/card.py +179 -0
- comdirect_mcp/_openapi/models/card_balance.py +113 -0
- comdirect_mcp/_openapi/models/cost_entry.py +127 -0
- comdirect_mcp/_openapi/models/cost_group.py +138 -0
- comdirect_mcp/_openapi/models/cost_indication_ex_ante.py +271 -0
- comdirect_mcp/_openapi/models/depot.py +130 -0
- comdirect_mcp/_openapi/models/depot_aggregation.py +175 -0
- comdirect_mcp/_openapi/models/depot_position.py +217 -0
- comdirect_mcp/_openapi/models/depot_transaction.py +227 -0
- comdirect_mcp/_openapi/models/derivative_data.py +247 -0
- comdirect_mcp/_openapi/models/dimensions.py +93 -0
- comdirect_mcp/_openapi/models/document.py +141 -0
- comdirect_mcp/_openapi/models/document_metadata.py +108 -0
- comdirect_mcp/_openapi/models/enum_text.py +96 -0
- comdirect_mcp/_openapi/models/execution.py +126 -0
- comdirect_mcp/_openapi/models/fixed_term_savings.py +174 -0
- comdirect_mcp/_openapi/models/fund_distribution.py +183 -0
- comdirect_mcp/_openapi/models/fx_rate_eur.py +96 -0
- comdirect_mcp/_openapi/models/inducement.py +98 -0
- comdirect_mcp/_openapi/models/installment_loan.py +166 -0
- comdirect_mcp/_openapi/models/installment_loan_balance.py +110 -0
- comdirect_mcp/_openapi/models/instrument.py +166 -0
- comdirect_mcp/_openapi/models/list_resource_account_balance.py +107 -0
- comdirect_mcp/_openapi/models/list_resource_account_transaction.py +107 -0
- comdirect_mcp/_openapi/models/list_resource_cost_indication_ex_ante.py +107 -0
- comdirect_mcp/_openapi/models/list_resource_depot.py +105 -0
- comdirect_mcp/_openapi/models/list_resource_depot_position.py +107 -0
- comdirect_mcp/_openapi/models/list_resource_depot_transaction.py +107 -0
- comdirect_mcp/_openapi/models/list_resource_dimensions.py +105 -0
- comdirect_mcp/_openapi/models/list_resource_document.py +105 -0
- comdirect_mcp/_openapi/models/list_resource_instrument.py +105 -0
- comdirect_mcp/_openapi/models/list_resource_order.py +105 -0
- comdirect_mcp/_openapi/models/list_resource_product_balance.py +107 -0
- comdirect_mcp/_openapi/models/order.py +411 -0
- comdirect_mcp/_openapi/models/order_type.py +97 -0
- comdirect_mcp/_openapi/models/paging_info.py +84 -0
- comdirect_mcp/_openapi/models/price.py +110 -0
- comdirect_mcp/_openapi/models/product_balance.py +142 -0
- comdirect_mcp/_openapi/models/quote.py +122 -0
- comdirect_mcp/_openapi/models/rating.py +91 -0
- comdirect_mcp/_openapi/models/session.py +101 -0
- comdirect_mcp/_openapi/models/standard_error_response.py +101 -0
- comdirect_mcp/_openapi/models/static_data.py +176 -0
- comdirect_mcp/_openapi/models/total_cost_block.py +117 -0
- comdirect_mcp/_openapi/models/total_cost_entry.py +116 -0
- comdirect_mcp/_openapi/models/total_holding_cost_block.py +101 -0
- comdirect_mcp/_openapi/models/total_holding_cost_entry.py +114 -0
- comdirect_mcp/_openapi/models/venue.py +122 -0
- comdirect_mcp/_openapi/models/visa_card_image.py +108 -0
- comdirect_mcp/_openapi/py.typed +0 -0
- comdirect_mcp/_openapi/rest.py +215 -0
- comdirect_mcp/auth.py +334 -0
- comdirect_mcp/cli.py +77 -0
- comdirect_mcp/client.py +365 -0
- comdirect_mcp/credentials.py +62 -0
- comdirect_mcp/domain/__init__.py +0 -0
- comdirect_mcp/domain/mappers.py +138 -0
- comdirect_mcp/domain/models.py +98 -0
- comdirect_mcp/exceptions.py +10 -0
- comdirect_mcp/py.typed +0 -0
- comdirect_mcp/server.py +432 -0
- comdirect_mcp/utils.py +48 -0
- comdirect_mcp-0.4.0.dist-info/METADATA +238 -0
- comdirect_mcp-0.4.0.dist-info/RECORD +88 -0
- comdirect_mcp-0.4.0.dist-info/WHEEL +4 -0
- comdirect_mcp-0.4.0.dist-info/entry_points.txt +3 -0
- comdirect_mcp-0.4.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""comdirect REST API client and MCP server."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
4
|
+
|
|
5
|
+
from ._openapi.exceptions import ApiException
|
|
6
|
+
from .auth import TanChallenge
|
|
7
|
+
from .client import ComdirectClient
|
|
8
|
+
from .exceptions import AuthenticationError, ComdirectError, TanError
|
|
9
|
+
|
|
10
|
+
try:
|
|
11
|
+
__version__ = version("comdirect-mcp")
|
|
12
|
+
except PackageNotFoundError: # pragma: no cover - running from a source tree without installation
|
|
13
|
+
__version__ = "0.0.0"
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"ApiException",
|
|
17
|
+
"AuthenticationError",
|
|
18
|
+
"ComdirectClient",
|
|
19
|
+
"ComdirectError",
|
|
20
|
+
"TanChallenge",
|
|
21
|
+
"TanError",
|
|
22
|
+
"__version__",
|
|
23
|
+
]
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
comdirect REST API
|
|
7
|
+
|
|
8
|
+
Please have a look at the interfaces of comdirect REST API below. Note: Currently it is not possible to request an access token via swagger UI tools because of comdirect's proprietary authorization flow. The shown error message is due to that circumstance.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 20.04
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "1.0.0"
|
|
18
|
+
|
|
19
|
+
# Define package exports
|
|
20
|
+
__all__ = [
|
|
21
|
+
"BankingApi",
|
|
22
|
+
"BrokerageApi",
|
|
23
|
+
"MessagesApi",
|
|
24
|
+
"ReportsApi",
|
|
25
|
+
"SessionApi",
|
|
26
|
+
"ApiResponse",
|
|
27
|
+
"ApiClient",
|
|
28
|
+
"Configuration",
|
|
29
|
+
"OpenApiException",
|
|
30
|
+
"ApiTypeError",
|
|
31
|
+
"ApiValueError",
|
|
32
|
+
"ApiKeyError",
|
|
33
|
+
"ApiAttributeError",
|
|
34
|
+
"ApiException",
|
|
35
|
+
"Account",
|
|
36
|
+
"AccountBalance",
|
|
37
|
+
"AccountInformation",
|
|
38
|
+
"AccountTransaction",
|
|
39
|
+
"AmountValue",
|
|
40
|
+
"Balance",
|
|
41
|
+
"BusinessMessage",
|
|
42
|
+
"Card",
|
|
43
|
+
"CardBalance",
|
|
44
|
+
"CostEntry",
|
|
45
|
+
"CostGroup",
|
|
46
|
+
"CostIndicationExAnte",
|
|
47
|
+
"Depot",
|
|
48
|
+
"DepotAggregation",
|
|
49
|
+
"DepotPosition",
|
|
50
|
+
"DepotTransaction",
|
|
51
|
+
"DerivativeData",
|
|
52
|
+
"Dimensions",
|
|
53
|
+
"Document",
|
|
54
|
+
"DocumentMetadata",
|
|
55
|
+
"EnumText",
|
|
56
|
+
"Execution",
|
|
57
|
+
"FXRateEUR",
|
|
58
|
+
"FixedTermSavings",
|
|
59
|
+
"FundDistribution",
|
|
60
|
+
"Inducement",
|
|
61
|
+
"InstallmentLoan",
|
|
62
|
+
"InstallmentLoanBalance",
|
|
63
|
+
"Instrument",
|
|
64
|
+
"ListResourceAccountBalance",
|
|
65
|
+
"ListResourceAccountTransaction",
|
|
66
|
+
"ListResourceCostIndicationExAnte",
|
|
67
|
+
"ListResourceDepot",
|
|
68
|
+
"ListResourceDepotPosition",
|
|
69
|
+
"ListResourceDepotTransaction",
|
|
70
|
+
"ListResourceDimensions",
|
|
71
|
+
"ListResourceDocument",
|
|
72
|
+
"ListResourceInstrument",
|
|
73
|
+
"ListResourceOrder",
|
|
74
|
+
"ListResourceProductBalance",
|
|
75
|
+
"Order",
|
|
76
|
+
"OrderType",
|
|
77
|
+
"PagingInfo",
|
|
78
|
+
"Price",
|
|
79
|
+
"ProductBalance",
|
|
80
|
+
"Quote",
|
|
81
|
+
"Rating",
|
|
82
|
+
"Session",
|
|
83
|
+
"StandardErrorResponse",
|
|
84
|
+
"StaticData",
|
|
85
|
+
"TotalCostBlock",
|
|
86
|
+
"TotalCostEntry",
|
|
87
|
+
"TotalHoldingCostBlock",
|
|
88
|
+
"TotalHoldingCostEntry",
|
|
89
|
+
"Venue",
|
|
90
|
+
"VisaCardImage",
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
# import apis into sdk package
|
|
94
|
+
from comdirect_mcp._openapi.api.banking_api import BankingApi as BankingApi
|
|
95
|
+
from comdirect_mcp._openapi.api.brokerage_api import BrokerageApi as BrokerageApi
|
|
96
|
+
from comdirect_mcp._openapi.api.messages_api import MessagesApi as MessagesApi
|
|
97
|
+
from comdirect_mcp._openapi.api.reports_api import ReportsApi as ReportsApi
|
|
98
|
+
from comdirect_mcp._openapi.api.session_api import SessionApi as SessionApi
|
|
99
|
+
|
|
100
|
+
# import ApiClient
|
|
101
|
+
from comdirect_mcp._openapi.api_response import ApiResponse as ApiResponse
|
|
102
|
+
from comdirect_mcp._openapi.api_client import ApiClient as ApiClient
|
|
103
|
+
from comdirect_mcp._openapi.configuration import Configuration as Configuration
|
|
104
|
+
from comdirect_mcp._openapi.exceptions import OpenApiException as OpenApiException
|
|
105
|
+
from comdirect_mcp._openapi.exceptions import ApiTypeError as ApiTypeError
|
|
106
|
+
from comdirect_mcp._openapi.exceptions import ApiValueError as ApiValueError
|
|
107
|
+
from comdirect_mcp._openapi.exceptions import ApiKeyError as ApiKeyError
|
|
108
|
+
from comdirect_mcp._openapi.exceptions import ApiAttributeError as ApiAttributeError
|
|
109
|
+
from comdirect_mcp._openapi.exceptions import ApiException as ApiException
|
|
110
|
+
|
|
111
|
+
# import models into sdk package
|
|
112
|
+
from comdirect_mcp._openapi.models.account import Account as Account
|
|
113
|
+
from comdirect_mcp._openapi.models.account_balance import AccountBalance as AccountBalance
|
|
114
|
+
from comdirect_mcp._openapi.models.account_information import AccountInformation as AccountInformation
|
|
115
|
+
from comdirect_mcp._openapi.models.account_transaction import AccountTransaction as AccountTransaction
|
|
116
|
+
from comdirect_mcp._openapi.models.amount_value import AmountValue as AmountValue
|
|
117
|
+
from comdirect_mcp._openapi.models.balance import Balance as Balance
|
|
118
|
+
from comdirect_mcp._openapi.models.business_message import BusinessMessage as BusinessMessage
|
|
119
|
+
from comdirect_mcp._openapi.models.card import Card as Card
|
|
120
|
+
from comdirect_mcp._openapi.models.card_balance import CardBalance as CardBalance
|
|
121
|
+
from comdirect_mcp._openapi.models.cost_entry import CostEntry as CostEntry
|
|
122
|
+
from comdirect_mcp._openapi.models.cost_group import CostGroup as CostGroup
|
|
123
|
+
from comdirect_mcp._openapi.models.cost_indication_ex_ante import CostIndicationExAnte as CostIndicationExAnte
|
|
124
|
+
from comdirect_mcp._openapi.models.depot import Depot as Depot
|
|
125
|
+
from comdirect_mcp._openapi.models.depot_aggregation import DepotAggregation as DepotAggregation
|
|
126
|
+
from comdirect_mcp._openapi.models.depot_position import DepotPosition as DepotPosition
|
|
127
|
+
from comdirect_mcp._openapi.models.depot_transaction import DepotTransaction as DepotTransaction
|
|
128
|
+
from comdirect_mcp._openapi.models.derivative_data import DerivativeData as DerivativeData
|
|
129
|
+
from comdirect_mcp._openapi.models.dimensions import Dimensions as Dimensions
|
|
130
|
+
from comdirect_mcp._openapi.models.document import Document as Document
|
|
131
|
+
from comdirect_mcp._openapi.models.document_metadata import DocumentMetadata as DocumentMetadata
|
|
132
|
+
from comdirect_mcp._openapi.models.enum_text import EnumText as EnumText
|
|
133
|
+
from comdirect_mcp._openapi.models.execution import Execution as Execution
|
|
134
|
+
from comdirect_mcp._openapi.models.fx_rate_eur import FXRateEUR as FXRateEUR
|
|
135
|
+
from comdirect_mcp._openapi.models.fixed_term_savings import FixedTermSavings as FixedTermSavings
|
|
136
|
+
from comdirect_mcp._openapi.models.fund_distribution import FundDistribution as FundDistribution
|
|
137
|
+
from comdirect_mcp._openapi.models.inducement import Inducement as Inducement
|
|
138
|
+
from comdirect_mcp._openapi.models.installment_loan import InstallmentLoan as InstallmentLoan
|
|
139
|
+
from comdirect_mcp._openapi.models.installment_loan_balance import InstallmentLoanBalance as InstallmentLoanBalance
|
|
140
|
+
from comdirect_mcp._openapi.models.instrument import Instrument as Instrument
|
|
141
|
+
from comdirect_mcp._openapi.models.list_resource_account_balance import (
|
|
142
|
+
ListResourceAccountBalance as ListResourceAccountBalance,
|
|
143
|
+
)
|
|
144
|
+
from comdirect_mcp._openapi.models.list_resource_account_transaction import (
|
|
145
|
+
ListResourceAccountTransaction as ListResourceAccountTransaction,
|
|
146
|
+
)
|
|
147
|
+
from comdirect_mcp._openapi.models.list_resource_cost_indication_ex_ante import (
|
|
148
|
+
ListResourceCostIndicationExAnte as ListResourceCostIndicationExAnte,
|
|
149
|
+
)
|
|
150
|
+
from comdirect_mcp._openapi.models.list_resource_depot import ListResourceDepot as ListResourceDepot
|
|
151
|
+
from comdirect_mcp._openapi.models.list_resource_depot_position import ListResourceDepotPosition as ListResourceDepotPosition
|
|
152
|
+
from comdirect_mcp._openapi.models.list_resource_depot_transaction import (
|
|
153
|
+
ListResourceDepotTransaction as ListResourceDepotTransaction,
|
|
154
|
+
)
|
|
155
|
+
from comdirect_mcp._openapi.models.list_resource_dimensions import ListResourceDimensions as ListResourceDimensions
|
|
156
|
+
from comdirect_mcp._openapi.models.list_resource_document import ListResourceDocument as ListResourceDocument
|
|
157
|
+
from comdirect_mcp._openapi.models.list_resource_instrument import ListResourceInstrument as ListResourceInstrument
|
|
158
|
+
from comdirect_mcp._openapi.models.list_resource_order import ListResourceOrder as ListResourceOrder
|
|
159
|
+
from comdirect_mcp._openapi.models.list_resource_product_balance import (
|
|
160
|
+
ListResourceProductBalance as ListResourceProductBalance,
|
|
161
|
+
)
|
|
162
|
+
from comdirect_mcp._openapi.models.order import Order as Order
|
|
163
|
+
from comdirect_mcp._openapi.models.order_type import OrderType as OrderType
|
|
164
|
+
from comdirect_mcp._openapi.models.paging_info import PagingInfo as PagingInfo
|
|
165
|
+
from comdirect_mcp._openapi.models.price import Price as Price
|
|
166
|
+
from comdirect_mcp._openapi.models.product_balance import ProductBalance as ProductBalance
|
|
167
|
+
from comdirect_mcp._openapi.models.quote import Quote as Quote
|
|
168
|
+
from comdirect_mcp._openapi.models.rating import Rating as Rating
|
|
169
|
+
from comdirect_mcp._openapi.models.session import Session as Session
|
|
170
|
+
from comdirect_mcp._openapi.models.standard_error_response import StandardErrorResponse as StandardErrorResponse
|
|
171
|
+
from comdirect_mcp._openapi.models.static_data import StaticData as StaticData
|
|
172
|
+
from comdirect_mcp._openapi.models.total_cost_block import TotalCostBlock as TotalCostBlock
|
|
173
|
+
from comdirect_mcp._openapi.models.total_cost_entry import TotalCostEntry as TotalCostEntry
|
|
174
|
+
from comdirect_mcp._openapi.models.total_holding_cost_block import TotalHoldingCostBlock as TotalHoldingCostBlock
|
|
175
|
+
from comdirect_mcp._openapi.models.total_holding_cost_entry import TotalHoldingCostEntry as TotalHoldingCostEntry
|
|
176
|
+
from comdirect_mcp._openapi.models.venue import Venue as Venue
|
|
177
|
+
from comdirect_mcp._openapi.models.visa_card_image import VisaCardImage as VisaCardImage
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from comdirect_mcp._openapi.api.banking_api import BankingApi
|
|
5
|
+
from comdirect_mcp._openapi.api.brokerage_api import BrokerageApi
|
|
6
|
+
from comdirect_mcp._openapi.api.messages_api import MessagesApi
|
|
7
|
+
from comdirect_mcp._openapi.api.reports_api import ReportsApi
|
|
8
|
+
from comdirect_mcp._openapi.api.session_api import SessionApi
|