lusid-sdk 2.1.948__py3-none-any.whl → 2.1.949__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.
- lusid/__init__.py +8 -0
- lusid/api/investment_accounts_api.py +177 -0
- lusid/api/transaction_configuration_api.py +128 -32
- lusid/api/transaction_portfolios_api.py +212 -8
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +8 -0
- lusid/models/closed_period.py +8 -1
- lusid/models/create_closed_period_request.py +9 -2
- lusid/models/interest_rate_swaption.py +20 -4
- lusid/models/output_transaction.py +8 -2
- lusid/models/portfolio_settlement_configuration.py +8 -2
- lusid/models/settlement_instruction_query.py +124 -0
- lusid/models/settlement_instruction_with_transaction.py +87 -0
- lusid/models/transaction_matching_alternative_id.py +77 -0
- lusid/models/versioned_resource_list_with_post_bodies_of_settlement_instruction_with_transaction_to_settlement_instruction_query.py +129 -0
- {lusid_sdk-2.1.948.dist-info → lusid_sdk-2.1.949.dist-info}/METADATA +7 -1
- {lusid_sdk-2.1.948.dist-info → lusid_sdk-2.1.949.dist-info}/RECORD +18 -14
- {lusid_sdk-2.1.948.dist-info → lusid_sdk-2.1.949.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
|
@@ -1145,7 +1145,9 @@ from lusid.models.set_transaction_configuration_alias import SetTransactionConfi
|
|
|
1145
1145
|
from lusid.models.set_transaction_configuration_source_request import SetTransactionConfigurationSourceRequest
|
|
1146
1146
|
from lusid.models.settlement_configuration_category import SettlementConfigurationCategory
|
|
1147
1147
|
from lusid.models.settlement_cycle import SettlementCycle
|
|
1148
|
+
from lusid.models.settlement_instruction_query import SettlementInstructionQuery
|
|
1148
1149
|
from lusid.models.settlement_instruction_request import SettlementInstructionRequest
|
|
1150
|
+
from lusid.models.settlement_instruction_with_transaction import SettlementInstructionWithTransaction
|
|
1149
1151
|
from lusid.models.settlement_schedule import SettlementSchedule
|
|
1150
1152
|
from lusid.models.share_class_amount import ShareClassAmount
|
|
1151
1153
|
from lusid.models.share_class_breakdown import ShareClassBreakdown
|
|
@@ -1219,6 +1221,7 @@ from lusid.models.transaction_currency_and_amount import TransactionCurrencyAndA
|
|
|
1219
1221
|
from lusid.models.transaction_date_windows import TransactionDateWindows
|
|
1220
1222
|
from lusid.models.transaction_diagnostics import TransactionDiagnostics
|
|
1221
1223
|
from lusid.models.transaction_field_map import TransactionFieldMap
|
|
1224
|
+
from lusid.models.transaction_matching_alternative_id import TransactionMatchingAlternativeId
|
|
1222
1225
|
from lusid.models.transaction_price import TransactionPrice
|
|
1223
1226
|
from lusid.models.transaction_price_and_type import TransactionPriceAndType
|
|
1224
1227
|
from lusid.models.transaction_price_type import TransactionPriceType
|
|
@@ -1376,6 +1379,7 @@ from lusid.models.versioned_resource_list_of_output_transaction import Versioned
|
|
|
1376
1379
|
from lusid.models.versioned_resource_list_of_portfolio_holding import VersionedResourceListOfPortfolioHolding
|
|
1377
1380
|
from lusid.models.versioned_resource_list_of_transaction import VersionedResourceListOfTransaction
|
|
1378
1381
|
from lusid.models.versioned_resource_list_of_trial_balance import VersionedResourceListOfTrialBalance
|
|
1382
|
+
from lusid.models.versioned_resource_list_with_post_bodies_of_settlement_instruction_with_transaction_to_settlement_instruction_query import VersionedResourceListWithPostBodiesOfSettlementInstructionWithTransactionToSettlementInstructionQuery
|
|
1379
1383
|
from lusid.models.versioned_resource_list_with_warnings_of_portfolio_holding import VersionedResourceListWithWarningsOfPortfolioHolding
|
|
1380
1384
|
from lusid.models.virtual_document import VirtualDocument
|
|
1381
1385
|
from lusid.models.virtual_document_row import VirtualDocumentRow
|
|
@@ -2527,7 +2531,9 @@ __all__ = [
|
|
|
2527
2531
|
"SetTransactionConfigurationSourceRequest",
|
|
2528
2532
|
"SettlementConfigurationCategory",
|
|
2529
2533
|
"SettlementCycle",
|
|
2534
|
+
"SettlementInstructionQuery",
|
|
2530
2535
|
"SettlementInstructionRequest",
|
|
2536
|
+
"SettlementInstructionWithTransaction",
|
|
2531
2537
|
"SettlementSchedule",
|
|
2532
2538
|
"ShareClassAmount",
|
|
2533
2539
|
"ShareClassBreakdown",
|
|
@@ -2601,6 +2607,7 @@ __all__ = [
|
|
|
2601
2607
|
"TransactionDateWindows",
|
|
2602
2608
|
"TransactionDiagnostics",
|
|
2603
2609
|
"TransactionFieldMap",
|
|
2610
|
+
"TransactionMatchingAlternativeId",
|
|
2604
2611
|
"TransactionPrice",
|
|
2605
2612
|
"TransactionPriceAndType",
|
|
2606
2613
|
"TransactionPriceType",
|
|
@@ -2758,6 +2765,7 @@ __all__ = [
|
|
|
2758
2765
|
"VersionedResourceListOfPortfolioHolding",
|
|
2759
2766
|
"VersionedResourceListOfTransaction",
|
|
2760
2767
|
"VersionedResourceListOfTrialBalance",
|
|
2768
|
+
"VersionedResourceListWithPostBodiesOfSettlementInstructionWithTransactionToSettlementInstructionQuery",
|
|
2761
2769
|
"VersionedResourceListWithWarningsOfPortfolioHolding",
|
|
2762
2770
|
"VirtualDocument",
|
|
2763
2771
|
"VirtualDocumentRow",
|
|
@@ -26,6 +26,7 @@ from pydantic.v1 import Field, StrictStr, conint, conlist, constr, validator
|
|
|
26
26
|
|
|
27
27
|
from typing import Dict, Optional
|
|
28
28
|
|
|
29
|
+
from lusid.models.deleted_entity_response import DeletedEntityResponse
|
|
29
30
|
from lusid.models.investment_account import InvestmentAccount
|
|
30
31
|
from lusid.models.resource_list_of_investment_account import ResourceListOfInvestmentAccount
|
|
31
32
|
from lusid.models.upsert_investment_account_request import UpsertInvestmentAccountRequest
|
|
@@ -57,6 +58,182 @@ class InvestmentAccountsApi:
|
|
|
57
58
|
self.api_client = api_client
|
|
58
59
|
|
|
59
60
|
|
|
61
|
+
@overload
|
|
62
|
+
async def delete_investment_account(self, identifier_type : Annotated[StrictStr, Field(..., description="Code of the investment account identifier type.")], identifier_value : Annotated[StrictStr, Field(..., description="Code of the investment account under specified identifier type's scope and code.")], scope : Annotated[StrictStr, Field(..., description="The scope of the investment account entity.")], identifier_scope : Annotated[StrictStr, Field(..., description="Scope of the investment account identifier type.")], **kwargs) -> DeletedEntityResponse: # noqa: E501
|
|
63
|
+
...
|
|
64
|
+
|
|
65
|
+
@overload
|
|
66
|
+
def delete_investment_account(self, identifier_type : Annotated[StrictStr, Field(..., description="Code of the investment account identifier type.")], identifier_value : Annotated[StrictStr, Field(..., description="Code of the investment account under specified identifier type's scope and code.")], scope : Annotated[StrictStr, Field(..., description="The scope of the investment account entity.")], identifier_scope : Annotated[StrictStr, Field(..., description="Scope of the investment account identifier type.")], async_req: Optional[bool]=True, **kwargs) -> DeletedEntityResponse: # noqa: E501
|
|
67
|
+
...
|
|
68
|
+
|
|
69
|
+
@validate_arguments
|
|
70
|
+
def delete_investment_account(self, identifier_type : Annotated[StrictStr, Field(..., description="Code of the investment account identifier type.")], identifier_value : Annotated[StrictStr, Field(..., description="Code of the investment account under specified identifier type's scope and code.")], scope : Annotated[StrictStr, Field(..., description="The scope of the investment account entity.")], identifier_scope : Annotated[StrictStr, Field(..., description="Scope of the investment account identifier type.")], async_req: Optional[bool]=None, **kwargs) -> Union[DeletedEntityResponse, Awaitable[DeletedEntityResponse]]: # noqa: E501
|
|
71
|
+
"""[EXPERIMENTAL] DeleteInvestmentAccount: Delete Investment Account # noqa: E501
|
|
72
|
+
|
|
73
|
+
Delete an investment account. Deletion will be valid from the investment account's creation datetime. This means that the investment account will no longer exist at any effective datetime from the asAt datetime of deletion. # noqa: E501
|
|
74
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
75
|
+
asynchronous HTTP request, please pass async_req=True
|
|
76
|
+
|
|
77
|
+
>>> thread = api.delete_investment_account(identifier_type, identifier_value, scope, identifier_scope, async_req=True)
|
|
78
|
+
>>> result = thread.get()
|
|
79
|
+
|
|
80
|
+
:param identifier_type: Code of the investment account identifier type. (required)
|
|
81
|
+
:type identifier_type: str
|
|
82
|
+
:param identifier_value: Code of the investment account under specified identifier type's scope and code. (required)
|
|
83
|
+
:type identifier_value: str
|
|
84
|
+
:param scope: The scope of the investment account entity. (required)
|
|
85
|
+
:type scope: str
|
|
86
|
+
:param identifier_scope: Scope of the investment account identifier type. (required)
|
|
87
|
+
:type identifier_scope: str
|
|
88
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
89
|
+
:type async_req: bool, optional
|
|
90
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
|
91
|
+
:param opts: Configuration options for this request
|
|
92
|
+
:type opts: ConfigurationOptions, optional
|
|
93
|
+
:return: Returns the result object.
|
|
94
|
+
If the method is called asynchronously,
|
|
95
|
+
returns the request thread.
|
|
96
|
+
:rtype: DeletedEntityResponse
|
|
97
|
+
"""
|
|
98
|
+
kwargs['_return_http_data_only'] = True
|
|
99
|
+
if '_preload_content' in kwargs:
|
|
100
|
+
message = "Error! Please call the delete_investment_account_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
|
101
|
+
raise ValueError(message)
|
|
102
|
+
if async_req is not None:
|
|
103
|
+
kwargs['async_req'] = async_req
|
|
104
|
+
return self.delete_investment_account_with_http_info(identifier_type, identifier_value, scope, identifier_scope, **kwargs) # noqa: E501
|
|
105
|
+
|
|
106
|
+
@validate_arguments
|
|
107
|
+
def delete_investment_account_with_http_info(self, identifier_type : Annotated[StrictStr, Field(..., description="Code of the investment account identifier type.")], identifier_value : Annotated[StrictStr, Field(..., description="Code of the investment account under specified identifier type's scope and code.")], scope : Annotated[StrictStr, Field(..., description="The scope of the investment account entity.")], identifier_scope : Annotated[StrictStr, Field(..., description="Scope of the investment account identifier type.")], **kwargs) -> ApiResponse: # noqa: E501
|
|
108
|
+
"""[EXPERIMENTAL] DeleteInvestmentAccount: Delete Investment Account # noqa: E501
|
|
109
|
+
|
|
110
|
+
Delete an investment account. Deletion will be valid from the investment account's creation datetime. This means that the investment account will no longer exist at any effective datetime from the asAt datetime of deletion. # noqa: E501
|
|
111
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
112
|
+
asynchronous HTTP request, please pass async_req=True
|
|
113
|
+
|
|
114
|
+
>>> thread = api.delete_investment_account_with_http_info(identifier_type, identifier_value, scope, identifier_scope, async_req=True)
|
|
115
|
+
>>> result = thread.get()
|
|
116
|
+
|
|
117
|
+
:param identifier_type: Code of the investment account identifier type. (required)
|
|
118
|
+
:type identifier_type: str
|
|
119
|
+
:param identifier_value: Code of the investment account under specified identifier type's scope and code. (required)
|
|
120
|
+
:type identifier_value: str
|
|
121
|
+
:param scope: The scope of the investment account entity. (required)
|
|
122
|
+
:type scope: str
|
|
123
|
+
:param identifier_scope: Scope of the investment account identifier type. (required)
|
|
124
|
+
:type identifier_scope: str
|
|
125
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
126
|
+
:type async_req: bool, optional
|
|
127
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
128
|
+
be set to none and raw_data will store the
|
|
129
|
+
HTTP response body without reading/decoding.
|
|
130
|
+
Default is True.
|
|
131
|
+
:type _preload_content: bool, optional
|
|
132
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
133
|
+
object with status code, headers, etc
|
|
134
|
+
:type _return_http_data_only: bool, optional
|
|
135
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
|
136
|
+
:param opts: Configuration options for this request
|
|
137
|
+
:type opts: ConfigurationOptions, optional
|
|
138
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
139
|
+
request; this effectively ignores the authentication
|
|
140
|
+
in the spec for a single request.
|
|
141
|
+
:type _request_auth: dict, optional
|
|
142
|
+
:type _content_type: string, optional: force content-type for the request
|
|
143
|
+
:return: Returns the result object.
|
|
144
|
+
If the method is called asynchronously,
|
|
145
|
+
returns the request thread.
|
|
146
|
+
:rtype: tuple(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
_params = locals()
|
|
150
|
+
|
|
151
|
+
_all_params = [
|
|
152
|
+
'identifier_type',
|
|
153
|
+
'identifier_value',
|
|
154
|
+
'scope',
|
|
155
|
+
'identifier_scope'
|
|
156
|
+
]
|
|
157
|
+
_all_params.extend(
|
|
158
|
+
[
|
|
159
|
+
'async_req',
|
|
160
|
+
'_return_http_data_only',
|
|
161
|
+
'_preload_content',
|
|
162
|
+
'_request_timeout',
|
|
163
|
+
'_request_auth',
|
|
164
|
+
'_content_type',
|
|
165
|
+
'_headers',
|
|
166
|
+
'opts'
|
|
167
|
+
]
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
# validate the arguments
|
|
171
|
+
for _key, _val in _params['kwargs'].items():
|
|
172
|
+
if _key not in _all_params:
|
|
173
|
+
raise ApiTypeError(
|
|
174
|
+
"Got an unexpected keyword argument '%s'"
|
|
175
|
+
" to method delete_investment_account" % _key
|
|
176
|
+
)
|
|
177
|
+
_params[_key] = _val
|
|
178
|
+
del _params['kwargs']
|
|
179
|
+
|
|
180
|
+
_collection_formats = {}
|
|
181
|
+
|
|
182
|
+
# process the path parameters
|
|
183
|
+
_path_params = {}
|
|
184
|
+
if _params['identifier_type']:
|
|
185
|
+
_path_params['identifierType'] = _params['identifier_type']
|
|
186
|
+
|
|
187
|
+
if _params['identifier_value']:
|
|
188
|
+
_path_params['identifierValue'] = _params['identifier_value']
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
# process the query parameters
|
|
192
|
+
_query_params = []
|
|
193
|
+
if _params.get('scope') is not None: # noqa: E501
|
|
194
|
+
_query_params.append(('scope', _params['scope']))
|
|
195
|
+
|
|
196
|
+
if _params.get('identifier_scope') is not None: # noqa: E501
|
|
197
|
+
_query_params.append(('identifierScope', _params['identifier_scope']))
|
|
198
|
+
|
|
199
|
+
# process the header parameters
|
|
200
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
201
|
+
# process the form parameters
|
|
202
|
+
_form_params = []
|
|
203
|
+
_files = {}
|
|
204
|
+
# process the body parameter
|
|
205
|
+
_body_params = None
|
|
206
|
+
# set the HTTP header `Accept`
|
|
207
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
208
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
|
209
|
+
|
|
210
|
+
# authentication setting
|
|
211
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
|
212
|
+
|
|
213
|
+
_response_types_map = {
|
|
214
|
+
'200': "DeletedEntityResponse",
|
|
215
|
+
'400': "LusidValidationProblemDetails",
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
return self.api_client.call_api(
|
|
219
|
+
'/api/investmentaccounts/{identifierType}/{identifierValue}', 'DELETE',
|
|
220
|
+
_path_params,
|
|
221
|
+
_query_params,
|
|
222
|
+
_header_params,
|
|
223
|
+
body=_body_params,
|
|
224
|
+
post_params=_form_params,
|
|
225
|
+
files=_files,
|
|
226
|
+
response_types_map=_response_types_map,
|
|
227
|
+
auth_settings=_auth_settings,
|
|
228
|
+
async_req=_params.get('async_req'),
|
|
229
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
230
|
+
_preload_content=_params.get('_preload_content', True),
|
|
231
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
232
|
+
opts=_params.get('opts'),
|
|
233
|
+
collection_formats=_collection_formats,
|
|
234
|
+
_request_auth=_params.get('_request_auth'))
|
|
235
|
+
|
|
236
|
+
|
|
60
237
|
@overload
|
|
61
238
|
async def get_investment_account(self, identifier_type : Annotated[StrictStr, Field(..., description="Code of the investment account identifier type.")], identifier_value : Annotated[StrictStr, Field(..., description="Code of the investment account under specified identifier type's scope and code.")], scope : Annotated[StrictStr, Field(..., description="The scope of the investment account entity.")], identifier_scope : Annotated[StrictStr, Field(..., description="Scope of the investment account identifier type.")], property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys or identifier types (as property keys) from the \"InvestmentAccount\" domain to include for found investment account, or from any domain that supports relationships to decorate onto related entities. These take the format {domain}/{scope}/{code} e.g. \"InvestmentAccount/ContactDetails/Address\".")] = None, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to retrieve the investment account. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the investment account. Defaults to return the latest version of the investment account if not specified.")] = None, relationship_definition_ids : Annotated[Optional[conlist(StrictStr)], Field(description="A list of relationship definitions that are used to decorate related entities onto the investment account in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.")] = None, **kwargs) -> InvestmentAccount: # noqa: E501
|
|
62
239
|
...
|