lusid-sdk 2.1.880__py3-none-any.whl → 2.1.882__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 +6 -0
- lusid/api/investment_accounts_api.py +220 -5
- lusid/api/transaction_portfolios_api.py +32 -8
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +6 -0
- lusid/models/accumulation_event.py +3 -3
- lusid/models/adjust_global_commitment_event.py +3 -3
- lusid/models/amortisation_event.py +3 -3
- lusid/models/bond_coupon_event.py +3 -3
- lusid/models/bond_default_event.py +3 -3
- lusid/models/bond_principal_event.py +3 -3
- lusid/models/bonus_issue_event.py +3 -3
- lusid/models/call_on_intermediate_securities_event.py +3 -3
- lusid/models/capital_distribution_event.py +3 -3
- lusid/models/cash_dividend_event.py +3 -3
- lusid/models/cash_flow_event.py +3 -3
- lusid/models/cds_credit_event.py +3 -3
- lusid/models/cdx_credit_event.py +3 -3
- lusid/models/close_event.py +3 -3
- lusid/models/contract_initialisation_event.py +3 -3
- lusid/models/conversion_event.py +8 -8
- lusid/models/create_property_definition_request.py +11 -4
- lusid/models/credit_premium_cash_flow_event.py +3 -3
- lusid/models/data_type_entity.py +19 -4
- lusid/models/deposit_close_event.py +3 -3
- lusid/models/deposit_interest_payment_event.py +3 -3
- lusid/models/dividend_option_event.py +3 -3
- lusid/models/dividend_reinvestment_event.py +3 -3
- lusid/models/drawdown_event.py +3 -3
- lusid/models/early_redemption_event.py +3 -3
- lusid/models/exercise_event.py +3 -3
- lusid/models/expiry_event.py +3 -3
- lusid/models/flexible_repo_cash_flow_event.py +3 -3
- lusid/models/flexible_repo_collateral_event.py +3 -3
- lusid/models/flexible_repo_interest_payment_event.py +3 -3
- lusid/models/flexible_repo_partial_closure_event.py +167 -0
- lusid/models/future_expiry_event.py +3 -3
- lusid/models/future_mark_to_market_event.py +3 -3
- lusid/models/fx_forward_settlement_event.py +3 -3
- lusid/models/informational_error_event.py +3 -3
- lusid/models/informational_event.py +3 -3
- lusid/models/instrument_event.py +6 -5
- lusid/models/instrument_event_type.py +1 -0
- lusid/models/intermediate_securities_distribution_event.py +3 -3
- lusid/models/investor.py +14 -14
- lusid/models/investor_identifier.py +16 -21
- lusid/models/loan_facility_contract_rollover_event.py +3 -3
- lusid/models/loan_interest_repayment_event.py +3 -3
- lusid/models/loan_principal_repayment_event.py +3 -3
- lusid/models/maturity_event.py +3 -3
- lusid/models/mbs_coupon_event.py +3 -3
- lusid/models/mbs_interest_deferral_event.py +3 -3
- lusid/models/mbs_interest_shortfall_event.py +3 -3
- lusid/models/mbs_principal_event.py +3 -3
- lusid/models/mbs_principal_write_off_event.py +3 -3
- lusid/models/merger_event.py +3 -3
- lusid/models/nav_type_definition.py +1 -6
- lusid/models/open_event.py +3 -3
- lusid/models/option_exercise_cash_event.py +3 -3
- lusid/models/option_exercise_physical_event.py +3 -3
- lusid/models/partial_closure_constituent.py +85 -0
- lusid/models/portfolio.py +1 -1
- lusid/models/property_definition.py +8 -1
- lusid/models/protection_payout_cash_flow_event.py +3 -3
- lusid/models/raw_vendor_event.py +3 -3
- lusid/models/repo_cash_flow_event.py +3 -3
- lusid/models/repo_partial_closure_event.py +3 -3
- lusid/models/repurchase_offer_event.py +3 -3
- lusid/models/reset_event.py +3 -3
- lusid/models/resource_list_of_investment_account.py +121 -0
- lusid/models/reverse_stock_split_event.py +3 -3
- lusid/models/scrip_dividend_event.py +3 -3
- lusid/models/spin_off_event.py +3 -3
- lusid/models/stock_dividend_event.py +3 -3
- lusid/models/stock_split_event.py +3 -3
- lusid/models/swap_cash_flow_event.py +3 -3
- lusid/models/swap_principal_event.py +3 -3
- lusid/models/tender_event.py +3 -3
- lusid/models/term_deposit_interest_event.py +3 -3
- lusid/models/term_deposit_principal_event.py +3 -3
- lusid/models/transition_event.py +3 -3
- lusid/models/trigger_event.py +3 -3
- lusid/models/update_deposit_amount_event.py +3 -3
- lusid/models/update_property_definition_request.py +11 -4
- lusid/models/upsert_investor_record_request.py +1 -1
- {lusid_sdk-2.1.880.dist-info → lusid_sdk-2.1.882.dist-info}/METADATA +7 -3
- {lusid_sdk-2.1.880.dist-info → lusid_sdk-2.1.882.dist-info}/RECORD +88 -85
- {lusid_sdk-2.1.880.dist-info → lusid_sdk-2.1.882.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -505,6 +505,7 @@ from lusid.models.flexible_repo import FlexibleRepo
|
|
505
505
|
from lusid.models.flexible_repo_cash_flow_event import FlexibleRepoCashFlowEvent
|
506
506
|
from lusid.models.flexible_repo_collateral_event import FlexibleRepoCollateralEvent
|
507
507
|
from lusid.models.flexible_repo_interest_payment_event import FlexibleRepoInterestPaymentEvent
|
508
|
+
from lusid.models.flexible_repo_partial_closure_event import FlexibleRepoPartialClosureEvent
|
508
509
|
from lusid.models.float_schedule import FloatSchedule
|
509
510
|
from lusid.models.floating_leg import FloatingLeg
|
510
511
|
from lusid.models.flow_convention_name import FlowConventionName
|
@@ -869,6 +870,7 @@ from lusid.models.paged_resource_list_of_valuation_point_overview import PagedRe
|
|
869
870
|
from lusid.models.paged_resource_list_of_virtual_row import PagedResourceListOfVirtualRow
|
870
871
|
from lusid.models.paged_resource_list_of_workspace import PagedResourceListOfWorkspace
|
871
872
|
from lusid.models.paged_resource_list_of_workspace_item import PagedResourceListOfWorkspaceItem
|
873
|
+
from lusid.models.partial_closure_constituent import PartialClosureConstituent
|
872
874
|
from lusid.models.participation import Participation
|
873
875
|
from lusid.models.participation_request import ParticipationRequest
|
874
876
|
from lusid.models.participation_set_request import ParticipationSetRequest
|
@@ -1048,6 +1050,7 @@ from lusid.models.resource_list_of_i_unit_definition_dto import ResourceListOfIU
|
|
1048
1050
|
from lusid.models.resource_list_of_instrument_cash_flow import ResourceListOfInstrumentCashFlow
|
1049
1051
|
from lusid.models.resource_list_of_instrument_event_holder import ResourceListOfInstrumentEventHolder
|
1050
1052
|
from lusid.models.resource_list_of_instrument_id_type_descriptor import ResourceListOfInstrumentIdTypeDescriptor
|
1053
|
+
from lusid.models.resource_list_of_investment_account import ResourceListOfInvestmentAccount
|
1051
1054
|
from lusid.models.resource_list_of_investor_record import ResourceListOfInvestorRecord
|
1052
1055
|
from lusid.models.resource_list_of_legal_entity import ResourceListOfLegalEntity
|
1053
1056
|
from lusid.models.resource_list_of_list_complex_market_data_with_meta_data_response import ResourceListOfListComplexMarketDataWithMetaDataResponse
|
@@ -1858,6 +1861,7 @@ __all__ = [
|
|
1858
1861
|
"FlexibleRepoCashFlowEvent",
|
1859
1862
|
"FlexibleRepoCollateralEvent",
|
1860
1863
|
"FlexibleRepoInterestPaymentEvent",
|
1864
|
+
"FlexibleRepoPartialClosureEvent",
|
1861
1865
|
"FloatSchedule",
|
1862
1866
|
"FloatingLeg",
|
1863
1867
|
"FlowConventionName",
|
@@ -2222,6 +2226,7 @@ __all__ = [
|
|
2222
2226
|
"PagedResourceListOfVirtualRow",
|
2223
2227
|
"PagedResourceListOfWorkspace",
|
2224
2228
|
"PagedResourceListOfWorkspaceItem",
|
2229
|
+
"PartialClosureConstituent",
|
2225
2230
|
"Participation",
|
2226
2231
|
"ParticipationRequest",
|
2227
2232
|
"ParticipationSetRequest",
|
@@ -2401,6 +2406,7 @@ __all__ = [
|
|
2401
2406
|
"ResourceListOfInstrumentCashFlow",
|
2402
2407
|
"ResourceListOfInstrumentEventHolder",
|
2403
2408
|
"ResourceListOfInstrumentIdTypeDescriptor",
|
2409
|
+
"ResourceListOfInvestmentAccount",
|
2404
2410
|
"ResourceListOfInvestorRecord",
|
2405
2411
|
"ResourceListOfLegalEntity",
|
2406
2412
|
"ResourceListOfListComplexMarketDataWithMetaDataResponse",
|
@@ -22,11 +22,12 @@ from typing import overload, Optional, Union, Awaitable
|
|
22
22
|
from typing_extensions import Annotated
|
23
23
|
from datetime import datetime
|
24
24
|
|
25
|
-
from pydantic.v1 import Field, StrictStr, conlist, constr, validator
|
25
|
+
from pydantic.v1 import Field, StrictStr, conint, conlist, constr, validator
|
26
26
|
|
27
27
|
from typing import Dict, Optional
|
28
28
|
|
29
29
|
from lusid.models.investment_account import InvestmentAccount
|
30
|
+
from lusid.models.resource_list_of_investment_account import ResourceListOfInvestmentAccount
|
30
31
|
from lusid.models.upsert_investment_account_request import UpsertInvestmentAccountRequest
|
31
32
|
from lusid.models.upsert_investment_accounts_response import UpsertInvestmentAccountsResponse
|
32
33
|
|
@@ -66,7 +67,7 @@ class InvestmentAccountsApi:
|
|
66
67
|
|
67
68
|
@validate_arguments
|
68
69
|
def get_investment_account(self, id_type_scope : Annotated[StrictStr, Field(..., description="Scope of the investment account identifier type.")], id_type_code : Annotated[StrictStr, Field(..., description="Code of the investment account identifier type.")], code : Annotated[StrictStr, Field(..., description="Code of the investment account under specified identifier type's scope and code. This together with stated identifier type uniquely identifies the investment account.")], 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, async_req: Optional[bool]=None, **kwargs) -> Union[InvestmentAccount, Awaitable[InvestmentAccount]]: # noqa: E501
|
69
|
-
"""[
|
70
|
+
"""[EXPERIMENTAL] GetInvestmentAccount: Get Investment Account # noqa: E501
|
70
71
|
|
71
72
|
Retrieve the definition of an investment account. # noqa: E501
|
72
73
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -109,7 +110,7 @@ class InvestmentAccountsApi:
|
|
109
110
|
|
110
111
|
@validate_arguments
|
111
112
|
def get_investment_account_with_http_info(self, id_type_scope : Annotated[StrictStr, Field(..., description="Scope of the investment account identifier type.")], id_type_code : Annotated[StrictStr, Field(..., description="Code of the investment account identifier type.")], code : Annotated[StrictStr, Field(..., description="Code of the investment account under specified identifier type's scope and code. This together with stated identifier type uniquely identifies the investment account.")], 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) -> ApiResponse: # noqa: E501
|
112
|
-
"""[
|
113
|
+
"""[EXPERIMENTAL] GetInvestmentAccount: Get Investment Account # noqa: E501
|
113
114
|
|
114
115
|
Retrieve the definition of an investment account. # noqa: E501
|
115
116
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -261,6 +262,220 @@ class InvestmentAccountsApi:
|
|
261
262
|
_request_auth=_params.get('_request_auth'))
|
262
263
|
|
263
264
|
|
265
|
+
@overload
|
266
|
+
async def list_all_investment_accounts(self, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to list the investment accounts. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the investment accounts. Defaults to return the latest version of each investment accounts if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing investment accounts from a previous call to list investment accounts. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 5000 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, 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 each 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, relationship_definition_ids : Annotated[Optional[conlist(StrictStr)], Field(description="A list of relationship definitions that are used to decorate related entities onto each investment account in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.")] = None, **kwargs) -> ResourceListOfInvestmentAccount: # noqa: E501
|
267
|
+
...
|
268
|
+
|
269
|
+
@overload
|
270
|
+
def list_all_investment_accounts(self, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to list the investment accounts. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the investment accounts. Defaults to return the latest version of each investment accounts if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing investment accounts from a previous call to list investment accounts. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 5000 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, 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 each 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, relationship_definition_ids : Annotated[Optional[conlist(StrictStr)], Field(description="A list of relationship definitions that are used to decorate related entities onto each investment account in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.")] = None, async_req: Optional[bool]=True, **kwargs) -> ResourceListOfInvestmentAccount: # noqa: E501
|
271
|
+
...
|
272
|
+
|
273
|
+
@validate_arguments
|
274
|
+
def list_all_investment_accounts(self, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to list the investment accounts. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the investment accounts. Defaults to return the latest version of each investment accounts if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing investment accounts from a previous call to list investment accounts. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 5000 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, 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 each 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, relationship_definition_ids : Annotated[Optional[conlist(StrictStr)], Field(description="A list of relationship definitions that are used to decorate related entities onto each investment account in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ResourceListOfInvestmentAccount, Awaitable[ResourceListOfInvestmentAccount]]: # noqa: E501
|
275
|
+
"""[EXPERIMENTAL] ListAllInvestmentAccounts: List Investment Accounts # noqa: E501
|
276
|
+
|
277
|
+
List all investment accounts which the user is entitled to see. # noqa: E501
|
278
|
+
This method makes a synchronous HTTP request by default. To make an
|
279
|
+
asynchronous HTTP request, please pass async_req=True
|
280
|
+
|
281
|
+
>>> thread = api.list_all_investment_accounts(effective_at, as_at, page, limit, filter, sort_by, property_keys, relationship_definition_ids, async_req=True)
|
282
|
+
>>> result = thread.get()
|
283
|
+
|
284
|
+
:param effective_at: The effective datetime or cut label at which to list the investment accounts. Defaults to the current LUSID system datetime if not specified.
|
285
|
+
:type effective_at: str
|
286
|
+
:param as_at: The asAt datetime at which to list the investment accounts. Defaults to return the latest version of each investment accounts if not specified.
|
287
|
+
:type as_at: datetime
|
288
|
+
:param page: The pagination token to use to continue listing investment accounts from a previous call to list investment accounts. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.
|
289
|
+
:type page: str
|
290
|
+
:param limit: When paginating, limit the number of returned results to this many. Defaults to 5000 if not specified.
|
291
|
+
:type limit: int
|
292
|
+
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
|
293
|
+
:type filter: str
|
294
|
+
:param sort_by: A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\".
|
295
|
+
:type sort_by: List[str]
|
296
|
+
:param property_keys: A list of property keys or identifier types (as property keys) from the \"InvestmentAccount\" domain to include for each 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\".
|
297
|
+
:type property_keys: List[str]
|
298
|
+
:param relationship_definition_ids: A list of relationship definitions that are used to decorate related entities onto each investment account in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.
|
299
|
+
:type relationship_definition_ids: List[str]
|
300
|
+
:param async_req: Whether to execute the request asynchronously.
|
301
|
+
:type async_req: bool, optional
|
302
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
303
|
+
:param opts: Configuration options for this request
|
304
|
+
:type opts: ConfigurationOptions, optional
|
305
|
+
:return: Returns the result object.
|
306
|
+
If the method is called asynchronously,
|
307
|
+
returns the request thread.
|
308
|
+
:rtype: ResourceListOfInvestmentAccount
|
309
|
+
"""
|
310
|
+
kwargs['_return_http_data_only'] = True
|
311
|
+
if '_preload_content' in kwargs:
|
312
|
+
message = "Error! Please call the list_all_investment_accounts_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
313
|
+
raise ValueError(message)
|
314
|
+
if async_req is not None:
|
315
|
+
kwargs['async_req'] = async_req
|
316
|
+
return self.list_all_investment_accounts_with_http_info(effective_at, as_at, page, limit, filter, sort_by, property_keys, relationship_definition_ids, **kwargs) # noqa: E501
|
317
|
+
|
318
|
+
@validate_arguments
|
319
|
+
def list_all_investment_accounts_with_http_info(self, effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to list the investment accounts. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the investment accounts. Defaults to return the latest version of each investment accounts if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing investment accounts from a previous call to list investment accounts. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 5000 if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\".")] = None, 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 each 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, relationship_definition_ids : Annotated[Optional[conlist(StrictStr)], Field(description="A list of relationship definitions that are used to decorate related entities onto each investment account in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
320
|
+
"""[EXPERIMENTAL] ListAllInvestmentAccounts: List Investment Accounts # noqa: E501
|
321
|
+
|
322
|
+
List all investment accounts which the user is entitled to see. # noqa: E501
|
323
|
+
This method makes a synchronous HTTP request by default. To make an
|
324
|
+
asynchronous HTTP request, please pass async_req=True
|
325
|
+
|
326
|
+
>>> thread = api.list_all_investment_accounts_with_http_info(effective_at, as_at, page, limit, filter, sort_by, property_keys, relationship_definition_ids, async_req=True)
|
327
|
+
>>> result = thread.get()
|
328
|
+
|
329
|
+
:param effective_at: The effective datetime or cut label at which to list the investment accounts. Defaults to the current LUSID system datetime if not specified.
|
330
|
+
:type effective_at: str
|
331
|
+
:param as_at: The asAt datetime at which to list the investment accounts. Defaults to return the latest version of each investment accounts if not specified.
|
332
|
+
:type as_at: datetime
|
333
|
+
:param page: The pagination token to use to continue listing investment accounts from a previous call to list investment accounts. This value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy and asAt fields must not have changed since the original request.
|
334
|
+
:type page: str
|
335
|
+
:param limit: When paginating, limit the number of returned results to this many. Defaults to 5000 if not specified.
|
336
|
+
:type limit: int
|
337
|
+
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
|
338
|
+
:type filter: str
|
339
|
+
:param sort_by: A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\".
|
340
|
+
:type sort_by: List[str]
|
341
|
+
:param property_keys: A list of property keys or identifier types (as property keys) from the \"InvestmentAccount\" domain to include for each 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\".
|
342
|
+
:type property_keys: List[str]
|
343
|
+
:param relationship_definition_ids: A list of relationship definitions that are used to decorate related entities onto each investment account in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}.
|
344
|
+
:type relationship_definition_ids: List[str]
|
345
|
+
:param async_req: Whether to execute the request asynchronously.
|
346
|
+
:type async_req: bool, optional
|
347
|
+
:param _preload_content: if False, the ApiResponse.data will
|
348
|
+
be set to none and raw_data will store the
|
349
|
+
HTTP response body without reading/decoding.
|
350
|
+
Default is True.
|
351
|
+
:type _preload_content: bool, optional
|
352
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
353
|
+
object with status code, headers, etc
|
354
|
+
:type _return_http_data_only: bool, optional
|
355
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
356
|
+
:param opts: Configuration options for this request
|
357
|
+
:type opts: ConfigurationOptions, optional
|
358
|
+
:param _request_auth: set to override the auth_settings for an a single
|
359
|
+
request; this effectively ignores the authentication
|
360
|
+
in the spec for a single request.
|
361
|
+
:type _request_auth: dict, optional
|
362
|
+
:type _content_type: string, optional: force content-type for the request
|
363
|
+
:return: Returns the result object.
|
364
|
+
If the method is called asynchronously,
|
365
|
+
returns the request thread.
|
366
|
+
:rtype: tuple(ResourceListOfInvestmentAccount, status_code(int), headers(HTTPHeaderDict))
|
367
|
+
"""
|
368
|
+
|
369
|
+
_params = locals()
|
370
|
+
|
371
|
+
_all_params = [
|
372
|
+
'effective_at',
|
373
|
+
'as_at',
|
374
|
+
'page',
|
375
|
+
'limit',
|
376
|
+
'filter',
|
377
|
+
'sort_by',
|
378
|
+
'property_keys',
|
379
|
+
'relationship_definition_ids'
|
380
|
+
]
|
381
|
+
_all_params.extend(
|
382
|
+
[
|
383
|
+
'async_req',
|
384
|
+
'_return_http_data_only',
|
385
|
+
'_preload_content',
|
386
|
+
'_request_timeout',
|
387
|
+
'_request_auth',
|
388
|
+
'_content_type',
|
389
|
+
'_headers',
|
390
|
+
'opts'
|
391
|
+
]
|
392
|
+
)
|
393
|
+
|
394
|
+
# validate the arguments
|
395
|
+
for _key, _val in _params['kwargs'].items():
|
396
|
+
if _key not in _all_params:
|
397
|
+
raise ApiTypeError(
|
398
|
+
"Got an unexpected keyword argument '%s'"
|
399
|
+
" to method list_all_investment_accounts" % _key
|
400
|
+
)
|
401
|
+
_params[_key] = _val
|
402
|
+
del _params['kwargs']
|
403
|
+
|
404
|
+
_collection_formats = {}
|
405
|
+
|
406
|
+
# process the path parameters
|
407
|
+
_path_params = {}
|
408
|
+
|
409
|
+
# process the query parameters
|
410
|
+
_query_params = []
|
411
|
+
if _params.get('effective_at') is not None: # noqa: E501
|
412
|
+
_query_params.append(('effectiveAt', _params['effective_at']))
|
413
|
+
|
414
|
+
if _params.get('as_at') is not None: # noqa: E501
|
415
|
+
if isinstance(_params['as_at'], datetime):
|
416
|
+
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
417
|
+
else:
|
418
|
+
_query_params.append(('asAt', _params['as_at']))
|
419
|
+
|
420
|
+
if _params.get('page') is not None: # noqa: E501
|
421
|
+
_query_params.append(('page', _params['page']))
|
422
|
+
|
423
|
+
if _params.get('limit') is not None: # noqa: E501
|
424
|
+
_query_params.append(('limit', _params['limit']))
|
425
|
+
|
426
|
+
if _params.get('filter') is not None: # noqa: E501
|
427
|
+
_query_params.append(('filter', _params['filter']))
|
428
|
+
|
429
|
+
if _params.get('sort_by') is not None: # noqa: E501
|
430
|
+
_query_params.append(('sortBy', _params['sort_by']))
|
431
|
+
_collection_formats['sortBy'] = 'multi'
|
432
|
+
|
433
|
+
if _params.get('property_keys') is not None: # noqa: E501
|
434
|
+
_query_params.append(('propertyKeys', _params['property_keys']))
|
435
|
+
_collection_formats['propertyKeys'] = 'multi'
|
436
|
+
|
437
|
+
if _params.get('relationship_definition_ids') is not None: # noqa: E501
|
438
|
+
_query_params.append(('relationshipDefinitionIds', _params['relationship_definition_ids']))
|
439
|
+
_collection_formats['relationshipDefinitionIds'] = 'multi'
|
440
|
+
|
441
|
+
# process the header parameters
|
442
|
+
_header_params = dict(_params.get('_headers', {}))
|
443
|
+
# process the form parameters
|
444
|
+
_form_params = []
|
445
|
+
_files = {}
|
446
|
+
# process the body parameter
|
447
|
+
_body_params = None
|
448
|
+
# set the HTTP header `Accept`
|
449
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
450
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
451
|
+
|
452
|
+
# authentication setting
|
453
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
454
|
+
|
455
|
+
_response_types_map = {
|
456
|
+
'200': "ResourceListOfInvestmentAccount",
|
457
|
+
'400': "LusidValidationProblemDetails",
|
458
|
+
}
|
459
|
+
|
460
|
+
return self.api_client.call_api(
|
461
|
+
'/api/investmentaccounts', 'GET',
|
462
|
+
_path_params,
|
463
|
+
_query_params,
|
464
|
+
_header_params,
|
465
|
+
body=_body_params,
|
466
|
+
post_params=_form_params,
|
467
|
+
files=_files,
|
468
|
+
response_types_map=_response_types_map,
|
469
|
+
auth_settings=_auth_settings,
|
470
|
+
async_req=_params.get('async_req'),
|
471
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
472
|
+
_preload_content=_params.get('_preload_content', True),
|
473
|
+
_request_timeout=_params.get('_request_timeout'),
|
474
|
+
opts=_params.get('opts'),
|
475
|
+
collection_formats=_collection_formats,
|
476
|
+
_request_auth=_params.get('_request_auth'))
|
477
|
+
|
478
|
+
|
264
479
|
@overload
|
265
480
|
async def upsert_investment_accounts(self, success_mode : Annotated[StrictStr, Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial")], request_body : Annotated[Dict[str, UpsertInvestmentAccountRequest], Field(..., description="A collection of requests to create or update Investment Accounts.")], **kwargs) -> UpsertInvestmentAccountsResponse: # noqa: E501
|
266
481
|
...
|
@@ -271,7 +486,7 @@ class InvestmentAccountsApi:
|
|
271
486
|
|
272
487
|
@validate_arguments
|
273
488
|
def upsert_investment_accounts(self, success_mode : Annotated[StrictStr, Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial")], request_body : Annotated[Dict[str, UpsertInvestmentAccountRequest], Field(..., description="A collection of requests to create or update Investment Accounts.")], async_req: Optional[bool]=None, **kwargs) -> Union[UpsertInvestmentAccountsResponse, Awaitable[UpsertInvestmentAccountsResponse]]: # noqa: E501
|
274
|
-
"""[
|
489
|
+
"""[EXPERIMENTAL] UpsertInvestmentAccounts: Upsert Investment Accounts # noqa: E501
|
275
490
|
|
276
491
|
Creates or updates a collection of Investment Accounts # noqa: E501
|
277
492
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -304,7 +519,7 @@ class InvestmentAccountsApi:
|
|
304
519
|
|
305
520
|
@validate_arguments
|
306
521
|
def upsert_investment_accounts_with_http_info(self, success_mode : Annotated[StrictStr, Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial")], request_body : Annotated[Dict[str, UpsertInvestmentAccountRequest], Field(..., description="A collection of requests to create or update Investment Accounts.")], **kwargs) -> ApiResponse: # noqa: E501
|
307
|
-
"""[
|
522
|
+
"""[EXPERIMENTAL] UpsertInvestmentAccounts: Upsert Investment Accounts # noqa: E501
|
308
523
|
|
309
524
|
Creates or updates a collection of Investment Accounts # noqa: E501
|
310
525
|
This method makes a synchronous HTTP request by default. To make an
|
@@ -3715,22 +3715,22 @@ class TransactionPortfoliosApi:
|
|
3715
3715
|
|
3716
3716
|
|
3717
3717
|
@overload
|
3718
|
-
async def get_holdings(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to retrieve the holdings of the transaction portfolio. 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 holdings of the transaction portfolio. Defaults to return the latest version if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. For example, to filter on the Holding Type, use \"holdingType eq 'p'\". For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\", \"Custodian Account\", \"Legal Entity\" or \"Portfolio\" domain to decorate onto holdings. These must have the format {domain}/{scope}/{code}, for example \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether or not to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, **kwargs) -> VersionedResourceListOfPortfolioHolding: # noqa: E501
|
3718
|
+
async def get_holdings(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to retrieve the holdings of the transaction portfolio. 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 holdings of the transaction portfolio. Defaults to return the latest version if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. For example, to filter on the Holding Type, use \"holdingType eq 'p'\". For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\", \"Custodian Account\", \"Legal Entity\" or \"Portfolio\" domain to decorate onto holdings. These must have the format {domain}/{scope}/{code}, for example \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether or not to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The closed period ID. If this is specified, both timelineScope and timelineCode must be specified. Either closedPeriodId or effectiveAt can be used with a Timeline.")] = None, **kwargs) -> VersionedResourceListOfPortfolioHolding: # noqa: E501
|
3719
3719
|
...
|
3720
3720
|
|
3721
3721
|
@overload
|
3722
|
-
def get_holdings(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to retrieve the holdings of the transaction portfolio. 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 holdings of the transaction portfolio. Defaults to return the latest version if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. For example, to filter on the Holding Type, use \"holdingType eq 'p'\". For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\", \"Custodian Account\", \"Legal Entity\" or \"Portfolio\" domain to decorate onto holdings. These must have the format {domain}/{scope}/{code}, for example \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether or not to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListOfPortfolioHolding: # noqa: E501
|
3722
|
+
def get_holdings(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to retrieve the holdings of the transaction portfolio. 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 holdings of the transaction portfolio. Defaults to return the latest version if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. For example, to filter on the Holding Type, use \"holdingType eq 'p'\". For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\", \"Custodian Account\", \"Legal Entity\" or \"Portfolio\" domain to decorate onto holdings. These must have the format {domain}/{scope}/{code}, for example \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether or not to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The closed period ID. If this is specified, both timelineScope and timelineCode must be specified. Either closedPeriodId or effectiveAt can be used with a Timeline.")] = None, async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListOfPortfolioHolding: # noqa: E501
|
3723
3723
|
...
|
3724
3724
|
|
3725
3725
|
@validate_arguments
|
3726
|
-
def get_holdings(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to retrieve the holdings of the transaction portfolio. 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 holdings of the transaction portfolio. Defaults to return the latest version if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. For example, to filter on the Holding Type, use \"holdingType eq 'p'\". For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\", \"Custodian Account\", \"Legal Entity\" or \"Portfolio\" domain to decorate onto holdings. These must have the format {domain}/{scope}/{code}, for example \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether or not to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListOfPortfolioHolding, Awaitable[VersionedResourceListOfPortfolioHolding]]: # noqa: E501
|
3726
|
+
def get_holdings(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to retrieve the holdings of the transaction portfolio. 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 holdings of the transaction portfolio. Defaults to return the latest version if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. For example, to filter on the Holding Type, use \"holdingType eq 'p'\". For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\", \"Custodian Account\", \"Legal Entity\" or \"Portfolio\" domain to decorate onto holdings. These must have the format {domain}/{scope}/{code}, for example \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether or not to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The closed period ID. If this is specified, both timelineScope and timelineCode must be specified. Either closedPeriodId or effectiveAt can be used with a Timeline.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListOfPortfolioHolding, Awaitable[VersionedResourceListOfPortfolioHolding]]: # noqa: E501
|
3727
3727
|
"""GetHoldings: Get holdings # noqa: E501
|
3728
3728
|
|
3729
3729
|
Calculate holdings for a transaction portfolio. # noqa: E501
|
3730
3730
|
This method makes a synchronous HTTP request by default. To make an
|
3731
3731
|
asynchronous HTTP request, please pass async_req=True
|
3732
3732
|
|
3733
|
-
>>> thread = api.get_holdings(scope, code, effective_at, as_at, filter, property_keys, by_taxlots, include_settlement_events_after_days, async_req=True)
|
3733
|
+
>>> thread = api.get_holdings(scope, code, effective_at, as_at, filter, property_keys, by_taxlots, include_settlement_events_after_days, timeline_scope, timeline_code, closed_period_id, async_req=True)
|
3734
3734
|
>>> result = thread.get()
|
3735
3735
|
|
3736
3736
|
:param scope: The scope of the transaction portfolio. (required)
|
@@ -3749,6 +3749,12 @@ class TransactionPortfoliosApi:
|
|
3749
3749
|
:type by_taxlots: bool
|
3750
3750
|
:param include_settlement_events_after_days: Number of days ahead to bring back settlements from, in relation to the specified effectiveAt
|
3751
3751
|
:type include_settlement_events_after_days: int
|
3752
|
+
:param timeline_scope: The scope of the Timeline.
|
3753
|
+
:type timeline_scope: str
|
3754
|
+
:param timeline_code: The code of the Timeline.
|
3755
|
+
:type timeline_code: str
|
3756
|
+
:param closed_period_id: The closed period ID. If this is specified, both timelineScope and timelineCode must be specified. Either closedPeriodId or effectiveAt can be used with a Timeline.
|
3757
|
+
:type closed_period_id: str
|
3752
3758
|
:param async_req: Whether to execute the request asynchronously.
|
3753
3759
|
:type async_req: bool, optional
|
3754
3760
|
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
@@ -3765,17 +3771,17 @@ class TransactionPortfoliosApi:
|
|
3765
3771
|
raise ValueError(message)
|
3766
3772
|
if async_req is not None:
|
3767
3773
|
kwargs['async_req'] = async_req
|
3768
|
-
return self.get_holdings_with_http_info(scope, code, effective_at, as_at, filter, property_keys, by_taxlots, include_settlement_events_after_days, **kwargs) # noqa: E501
|
3774
|
+
return self.get_holdings_with_http_info(scope, code, effective_at, as_at, filter, property_keys, by_taxlots, include_settlement_events_after_days, timeline_scope, timeline_code, closed_period_id, **kwargs) # noqa: E501
|
3769
3775
|
|
3770
3776
|
@validate_arguments
|
3771
|
-
def get_holdings_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to retrieve the holdings of the transaction portfolio. 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 holdings of the transaction portfolio. Defaults to return the latest version if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. For example, to filter on the Holding Type, use \"holdingType eq 'p'\". For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\", \"Custodian Account\", \"Legal Entity\" or \"Portfolio\" domain to decorate onto holdings. These must have the format {domain}/{scope}/{code}, for example \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether or not to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
3777
|
+
def get_holdings_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which to retrieve the holdings of the transaction portfolio. 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 holdings of the transaction portfolio. Defaults to return the latest version if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. For example, to filter on the Holding Type, use \"holdingType eq 'p'\". For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\", \"Custodian Account\", \"Legal Entity\" or \"Portfolio\" domain to decorate onto holdings. These must have the format {domain}/{scope}/{code}, for example \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether or not to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, timeline_scope : Annotated[Optional[StrictStr], Field( description="The scope of the Timeline.")] = None, timeline_code : Annotated[Optional[StrictStr], Field( description="The code of the Timeline.")] = None, closed_period_id : Annotated[Optional[StrictStr], Field( description="The closed period ID. If this is specified, both timelineScope and timelineCode must be specified. Either closedPeriodId or effectiveAt can be used with a Timeline.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
3772
3778
|
"""GetHoldings: Get holdings # noqa: E501
|
3773
3779
|
|
3774
3780
|
Calculate holdings for a transaction portfolio. # noqa: E501
|
3775
3781
|
This method makes a synchronous HTTP request by default. To make an
|
3776
3782
|
asynchronous HTTP request, please pass async_req=True
|
3777
3783
|
|
3778
|
-
>>> thread = api.get_holdings_with_http_info(scope, code, effective_at, as_at, filter, property_keys, by_taxlots, include_settlement_events_after_days, async_req=True)
|
3784
|
+
>>> thread = api.get_holdings_with_http_info(scope, code, effective_at, as_at, filter, property_keys, by_taxlots, include_settlement_events_after_days, timeline_scope, timeline_code, closed_period_id, async_req=True)
|
3779
3785
|
>>> result = thread.get()
|
3780
3786
|
|
3781
3787
|
:param scope: The scope of the transaction portfolio. (required)
|
@@ -3794,6 +3800,12 @@ class TransactionPortfoliosApi:
|
|
3794
3800
|
:type by_taxlots: bool
|
3795
3801
|
:param include_settlement_events_after_days: Number of days ahead to bring back settlements from, in relation to the specified effectiveAt
|
3796
3802
|
:type include_settlement_events_after_days: int
|
3803
|
+
:param timeline_scope: The scope of the Timeline.
|
3804
|
+
:type timeline_scope: str
|
3805
|
+
:param timeline_code: The code of the Timeline.
|
3806
|
+
:type timeline_code: str
|
3807
|
+
:param closed_period_id: The closed period ID. If this is specified, both timelineScope and timelineCode must be specified. Either closedPeriodId or effectiveAt can be used with a Timeline.
|
3808
|
+
:type closed_period_id: str
|
3797
3809
|
:param async_req: Whether to execute the request asynchronously.
|
3798
3810
|
:type async_req: bool, optional
|
3799
3811
|
:param _preload_content: if False, the ApiResponse.data will
|
@@ -3828,7 +3840,10 @@ class TransactionPortfoliosApi:
|
|
3828
3840
|
'filter',
|
3829
3841
|
'property_keys',
|
3830
3842
|
'by_taxlots',
|
3831
|
-
'include_settlement_events_after_days'
|
3843
|
+
'include_settlement_events_after_days',
|
3844
|
+
'timeline_scope',
|
3845
|
+
'timeline_code',
|
3846
|
+
'closed_period_id'
|
3832
3847
|
]
|
3833
3848
|
_all_params.extend(
|
3834
3849
|
[
|
@@ -3888,6 +3903,15 @@ class TransactionPortfoliosApi:
|
|
3888
3903
|
if _params.get('include_settlement_events_after_days') is not None: # noqa: E501
|
3889
3904
|
_query_params.append(('includeSettlementEventsAfterDays', _params['include_settlement_events_after_days']))
|
3890
3905
|
|
3906
|
+
if _params.get('timeline_scope') is not None: # noqa: E501
|
3907
|
+
_query_params.append(('timelineScope', _params['timeline_scope']))
|
3908
|
+
|
3909
|
+
if _params.get('timeline_code') is not None: # noqa: E501
|
3910
|
+
_query_params.append(('timelineCode', _params['timeline_code']))
|
3911
|
+
|
3912
|
+
if _params.get('closed_period_id') is not None: # noqa: E501
|
3913
|
+
_query_params.append(('closedPeriodId', _params['closed_period_id']))
|
3914
|
+
|
3891
3915
|
# process the header parameters
|
3892
3916
|
_header_params = dict(_params.get('_headers', {}))
|
3893
3917
|
# process the form parameters
|
lusid/configuration.py
CHANGED
@@ -445,7 +445,7 @@ class Configuration:
|
|
445
445
|
return "Python SDK Debug Report:\n"\
|
446
446
|
"OS: {env}\n"\
|
447
447
|
"Python Version: {pyversion}\n"\
|
448
|
-
"Version of the API: 0.11.
|
448
|
+
"Version of the API: 0.11.8083\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
lusid/models/__init__.py
CHANGED
@@ -415,6 +415,7 @@ from lusid.models.flexible_repo import FlexibleRepo
|
|
415
415
|
from lusid.models.flexible_repo_cash_flow_event import FlexibleRepoCashFlowEvent
|
416
416
|
from lusid.models.flexible_repo_collateral_event import FlexibleRepoCollateralEvent
|
417
417
|
from lusid.models.flexible_repo_interest_payment_event import FlexibleRepoInterestPaymentEvent
|
418
|
+
from lusid.models.flexible_repo_partial_closure_event import FlexibleRepoPartialClosureEvent
|
418
419
|
from lusid.models.float_schedule import FloatSchedule
|
419
420
|
from lusid.models.floating_leg import FloatingLeg
|
420
421
|
from lusid.models.flow_convention_name import FlowConventionName
|
@@ -779,6 +780,7 @@ from lusid.models.paged_resource_list_of_valuation_point_overview import PagedRe
|
|
779
780
|
from lusid.models.paged_resource_list_of_virtual_row import PagedResourceListOfVirtualRow
|
780
781
|
from lusid.models.paged_resource_list_of_workspace import PagedResourceListOfWorkspace
|
781
782
|
from lusid.models.paged_resource_list_of_workspace_item import PagedResourceListOfWorkspaceItem
|
783
|
+
from lusid.models.partial_closure_constituent import PartialClosureConstituent
|
782
784
|
from lusid.models.participation import Participation
|
783
785
|
from lusid.models.participation_request import ParticipationRequest
|
784
786
|
from lusid.models.participation_set_request import ParticipationSetRequest
|
@@ -958,6 +960,7 @@ from lusid.models.resource_list_of_i_unit_definition_dto import ResourceListOfIU
|
|
958
960
|
from lusid.models.resource_list_of_instrument_cash_flow import ResourceListOfInstrumentCashFlow
|
959
961
|
from lusid.models.resource_list_of_instrument_event_holder import ResourceListOfInstrumentEventHolder
|
960
962
|
from lusid.models.resource_list_of_instrument_id_type_descriptor import ResourceListOfInstrumentIdTypeDescriptor
|
963
|
+
from lusid.models.resource_list_of_investment_account import ResourceListOfInvestmentAccount
|
961
964
|
from lusid.models.resource_list_of_investor_record import ResourceListOfInvestorRecord
|
962
965
|
from lusid.models.resource_list_of_legal_entity import ResourceListOfLegalEntity
|
963
966
|
from lusid.models.resource_list_of_list_complex_market_data_with_meta_data_response import ResourceListOfListComplexMarketDataWithMetaDataResponse
|
@@ -1679,6 +1682,7 @@ __all__ = [
|
|
1679
1682
|
"FlexibleRepoCashFlowEvent",
|
1680
1683
|
"FlexibleRepoCollateralEvent",
|
1681
1684
|
"FlexibleRepoInterestPaymentEvent",
|
1685
|
+
"FlexibleRepoPartialClosureEvent",
|
1682
1686
|
"FloatSchedule",
|
1683
1687
|
"FloatingLeg",
|
1684
1688
|
"FlowConventionName",
|
@@ -2043,6 +2047,7 @@ __all__ = [
|
|
2043
2047
|
"PagedResourceListOfVirtualRow",
|
2044
2048
|
"PagedResourceListOfWorkspace",
|
2045
2049
|
"PagedResourceListOfWorkspaceItem",
|
2050
|
+
"PartialClosureConstituent",
|
2046
2051
|
"Participation",
|
2047
2052
|
"ParticipationRequest",
|
2048
2053
|
"ParticipationSetRequest",
|
@@ -2222,6 +2227,7 @@ __all__ = [
|
|
2222
2227
|
"ResourceListOfInstrumentCashFlow",
|
2223
2228
|
"ResourceListOfInstrumentEventHolder",
|
2224
2229
|
"ResourceListOfInstrumentIdTypeDescriptor",
|
2230
|
+
"ResourceListOfInvestmentAccount",
|
2225
2231
|
"ResourceListOfInvestorRecord",
|
2226
2232
|
"ResourceListOfLegalEntity",
|
2227
2233
|
"ResourceListOfListComplexMarketDataWithMetaDataResponse",
|
@@ -31,7 +31,7 @@ class AccumulationEvent(InstrumentEvent):
|
|
31
31
|
dividend_rate: Union[StrictFloat, StrictInt] = Field(..., alias="dividendRate", description="Dividend rate or payment rate as a percentage. i.e. 5% is written as 0.05")
|
32
32
|
ex_date: Optional[datetime] = Field(None, alias="exDate", description="The first business day on which the dividend is not owed to the buying party. Typically this is T-1 from the RecordDate.")
|
33
33
|
payment_date: Optional[datetime] = Field(None, alias="paymentDate", description="The date the company pays out dividends to shareholders.")
|
34
|
-
instrument_event_type: StrictStr = Field(...,alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent, FutureMarkToMarketEvent, AdjustGlobalCommitmentEvent, ContractInitialisationEvent, DrawdownEvent, LoanInterestRepaymentEvent, UpdateDepositAmountEvent, LoanPrincipalRepaymentEvent, DepositInterestPaymentEvent, DepositCloseEvent, LoanFacilityContractRolloverEvent, RepurchaseOfferEvent, RepoPartialClosureEvent, RepoCashFlowEvent, FlexibleRepoInterestPaymentEvent, FlexibleRepoCashFlowEvent, FlexibleRepoCollateralEvent, ConversionEvent")
|
34
|
+
instrument_event_type: StrictStr = Field(...,alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent, FutureMarkToMarketEvent, AdjustGlobalCommitmentEvent, ContractInitialisationEvent, DrawdownEvent, LoanInterestRepaymentEvent, UpdateDepositAmountEvent, LoanPrincipalRepaymentEvent, DepositInterestPaymentEvent, DepositCloseEvent, LoanFacilityContractRolloverEvent, RepurchaseOfferEvent, RepoPartialClosureEvent, RepoCashFlowEvent, FlexibleRepoInterestPaymentEvent, FlexibleRepoCashFlowEvent, FlexibleRepoCollateralEvent, ConversionEvent, FlexibleRepoPartialClosureEvent")
|
35
35
|
additional_properties: Dict[str, Any] = {}
|
36
36
|
__properties = ["instrumentEventType", "announcementDate", "dividendCurrency", "dividendRate", "exDate", "paymentDate"]
|
37
37
|
|
@@ -90,8 +90,8 @@ class AccumulationEvent(InstrumentEvent):
|
|
90
90
|
if "instrument_event_type" != "type":
|
91
91
|
return value
|
92
92
|
|
93
|
-
if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent', 'LoanFacilityContractRolloverEvent', 'RepurchaseOfferEvent', 'RepoPartialClosureEvent', 'RepoCashFlowEvent', 'FlexibleRepoInterestPaymentEvent', 'FlexibleRepoCashFlowEvent', 'FlexibleRepoCollateralEvent', 'ConversionEvent'):
|
94
|
-
raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent', 'LoanFacilityContractRolloverEvent', 'RepurchaseOfferEvent', 'RepoPartialClosureEvent', 'RepoCashFlowEvent', 'FlexibleRepoInterestPaymentEvent', 'FlexibleRepoCashFlowEvent', 'FlexibleRepoCollateralEvent', 'ConversionEvent')")
|
93
|
+
if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent', 'LoanFacilityContractRolloverEvent', 'RepurchaseOfferEvent', 'RepoPartialClosureEvent', 'RepoCashFlowEvent', 'FlexibleRepoInterestPaymentEvent', 'FlexibleRepoCashFlowEvent', 'FlexibleRepoCollateralEvent', 'ConversionEvent', 'FlexibleRepoPartialClosureEvent'):
|
94
|
+
raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent', 'UpdateDepositAmountEvent', 'LoanPrincipalRepaymentEvent', 'DepositInterestPaymentEvent', 'DepositCloseEvent', 'LoanFacilityContractRolloverEvent', 'RepurchaseOfferEvent', 'RepoPartialClosureEvent', 'RepoCashFlowEvent', 'FlexibleRepoInterestPaymentEvent', 'FlexibleRepoCashFlowEvent', 'FlexibleRepoCollateralEvent', 'ConversionEvent', 'FlexibleRepoPartialClosureEvent')")
|
95
95
|
return value
|
96
96
|
|
97
97
|
class Config:
|