lusid-sdk 2.1.619__py3-none-any.whl → 2.1.624__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/entities_api.py +24 -24
- lusid/api/funds_api.py +219 -0
- lusid/api/order_management_api.py +16 -8
- lusid/api/staged_modifications_api.py +12 -12
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +8 -0
- lusid/models/accounted_transaction.py +88 -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/cap_floor.py +19 -4
- 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/complex_bond.py +10 -3
- lusid/models/contract_initialisation_event.py +3 -3
- lusid/models/credit_premium_cash_flow_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/eligibility_calculation.py +6 -4
- lusid/models/exercise_event.py +3 -3
- lusid/models/expiry_event.py +3 -3
- lusid/models/fee_accrual.py +3 -1
- 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_instruction.py +9 -2
- lusid/models/instrument_event_instruction_request.py +10 -3
- lusid/models/instrument_event_type.py +1 -0
- lusid/models/intermediate_securities_distribution_event.py +3 -3
- lusid/models/loan_interest_repayment_event.py +97 -0
- 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/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/portfolio_id.py +80 -0
- lusid/models/protection_payout_cash_flow_event.py +3 -3
- lusid/models/raw_vendor_event.py +3 -3
- lusid/models/reset_event.py +3 -3
- 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/valuation_point_resource_list_of_accounted_transaction.py +125 -0
- {lusid_sdk-2.1.619.dist-info → lusid_sdk-2.1.624.dist-info}/METADATA +6 -1
- {lusid_sdk-2.1.619.dist-info → lusid_sdk-2.1.624.dist-info}/RECORD +75 -71
- {lusid_sdk-2.1.619.dist-info → lusid_sdk-2.1.624.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -114,6 +114,7 @@ from lusid.models.access_metadata_operation import AccessMetadataOperation
|
|
114
114
|
from lusid.models.access_metadata_value import AccessMetadataValue
|
115
115
|
from lusid.models.account import Account
|
116
116
|
from lusid.models.account_properties import AccountProperties
|
117
|
+
from lusid.models.accounted_transaction import AccountedTransaction
|
117
118
|
from lusid.models.accounting_method import AccountingMethod
|
118
119
|
from lusid.models.accounts_upsert_response import AccountsUpsertResponse
|
119
120
|
from lusid.models.accumulation_event import AccumulationEvent
|
@@ -635,6 +636,7 @@ from lusid.models.list_aggregation_reconciliation import ListAggregationReconcil
|
|
635
636
|
from lusid.models.list_aggregation_response import ListAggregationResponse
|
636
637
|
from lusid.models.list_complex_market_data_with_meta_data_response import ListComplexMarketDataWithMetaDataResponse
|
637
638
|
from lusid.models.loan_facility import LoanFacility
|
639
|
+
from lusid.models.loan_interest_repayment_event import LoanInterestRepaymentEvent
|
638
640
|
from lusid.models.loan_period import LoanPeriod
|
639
641
|
from lusid.models.lock_period_diary_entry_request import LockPeriodDiaryEntryRequest
|
640
642
|
from lusid.models.lusid_instrument import LusidInstrument
|
@@ -824,6 +826,7 @@ from lusid.models.portfolio_group_id_list_compliance_parameter import PortfolioG
|
|
824
826
|
from lusid.models.portfolio_group_properties import PortfolioGroupProperties
|
825
827
|
from lusid.models.portfolio_group_search_result import PortfolioGroupSearchResult
|
826
828
|
from lusid.models.portfolio_holding import PortfolioHolding
|
829
|
+
from lusid.models.portfolio_id import PortfolioId
|
827
830
|
from lusid.models.portfolio_id_compliance_parameter import PortfolioIdComplianceParameter
|
828
831
|
from lusid.models.portfolio_id_list import PortfolioIdList
|
829
832
|
from lusid.models.portfolio_id_list_compliance_parameter import PortfolioIdListComplianceParameter
|
@@ -1223,6 +1226,7 @@ from lusid.models.valuation_point_data_query_parameters import ValuationPointDat
|
|
1223
1226
|
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
1224
1227
|
from lusid.models.valuation_point_data_response import ValuationPointDataResponse
|
1225
1228
|
from lusid.models.valuation_point_overview import ValuationPointOverview
|
1229
|
+
from lusid.models.valuation_point_resource_list_of_accounted_transaction import ValuationPointResourceListOfAccountedTransaction
|
1226
1230
|
from lusid.models.valuation_point_resource_list_of_journal_entry_line import ValuationPointResourceListOfJournalEntryLine
|
1227
1231
|
from lusid.models.valuation_point_resource_list_of_pnl_journal_entry_line import ValuationPointResourceListOfPnlJournalEntryLine
|
1228
1232
|
from lusid.models.valuation_point_resource_list_of_trial_balance import ValuationPointResourceListOfTrialBalance
|
@@ -1361,6 +1365,7 @@ __all__ = [
|
|
1361
1365
|
"AccessMetadataValue",
|
1362
1366
|
"Account",
|
1363
1367
|
"AccountProperties",
|
1368
|
+
"AccountedTransaction",
|
1364
1369
|
"AccountingMethod",
|
1365
1370
|
"AccountsUpsertResponse",
|
1366
1371
|
"AccumulationEvent",
|
@@ -1882,6 +1887,7 @@ __all__ = [
|
|
1882
1887
|
"ListAggregationResponse",
|
1883
1888
|
"ListComplexMarketDataWithMetaDataResponse",
|
1884
1889
|
"LoanFacility",
|
1890
|
+
"LoanInterestRepaymentEvent",
|
1885
1891
|
"LoanPeriod",
|
1886
1892
|
"LockPeriodDiaryEntryRequest",
|
1887
1893
|
"LusidInstrument",
|
@@ -2071,6 +2077,7 @@ __all__ = [
|
|
2071
2077
|
"PortfolioGroupProperties",
|
2072
2078
|
"PortfolioGroupSearchResult",
|
2073
2079
|
"PortfolioHolding",
|
2080
|
+
"PortfolioId",
|
2074
2081
|
"PortfolioIdComplianceParameter",
|
2075
2082
|
"PortfolioIdList",
|
2076
2083
|
"PortfolioIdListComplianceParameter",
|
@@ -2470,6 +2477,7 @@ __all__ = [
|
|
2470
2477
|
"ValuationPointDataRequest",
|
2471
2478
|
"ValuationPointDataResponse",
|
2472
2479
|
"ValuationPointOverview",
|
2480
|
+
"ValuationPointResourceListOfAccountedTransaction",
|
2473
2481
|
"ValuationPointResourceListOfJournalEntryLine",
|
2474
2482
|
"ValuationPointResourceListOfPnlJournalEntryLine",
|
2475
2483
|
"ValuationPointResourceListOfTrialBalance",
|
lusid/api/entities_api.py
CHANGED
@@ -56,15 +56,15 @@ class EntitiesApi:
|
|
56
56
|
self.api_client = api_client
|
57
57
|
|
58
58
|
@overload
|
59
|
-
async def get_custom_entity_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
59
|
+
async def get_custom_entity_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the Custom Entity.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the Custom Entity. 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 Custom Entity. Defaults to returning the latest version of the Custom Entity if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, **kwargs) -> CustomEntityEntity: # noqa: E501
|
60
60
|
...
|
61
61
|
|
62
62
|
@overload
|
63
|
-
def get_custom_entity_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
63
|
+
def get_custom_entity_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the Custom Entity.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the Custom Entity. 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 Custom Entity. Defaults to returning the latest version of the Custom Entity if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, async_req: Optional[bool]=True, **kwargs) -> CustomEntityEntity: # noqa: E501
|
64
64
|
...
|
65
65
|
|
66
66
|
@validate_arguments
|
67
|
-
def get_custom_entity_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
67
|
+
def get_custom_entity_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the Custom Entity.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the Custom Entity. 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 Custom Entity. Defaults to returning the latest version of the Custom Entity if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[CustomEntityEntity, Awaitable[CustomEntityEntity]]: # noqa: E501
|
68
68
|
"""[EXPERIMENTAL] GetCustomEntityByEntityUniqueId: Get a Custom Entity instance by its EntityUniqueId # noqa: E501
|
69
69
|
|
70
70
|
Retrieve a particular Custom Entity instance. If the Custom Entity is deleted, this will return the state of the Custom Entity immediately prior to deletion. # noqa: E501
|
@@ -101,7 +101,7 @@ class EntitiesApi:
|
|
101
101
|
return self.get_custom_entity_by_entity_unique_id_with_http_info(entity_unique_id, effective_at, as_at, previews, **kwargs) # noqa: E501
|
102
102
|
|
103
103
|
@validate_arguments
|
104
|
-
def get_custom_entity_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
104
|
+
def get_custom_entity_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the Custom Entity.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the Custom Entity. 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 Custom Entity. Defaults to returning the latest version of the Custom Entity if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
105
105
|
"""[EXPERIMENTAL] GetCustomEntityByEntityUniqueId: Get a Custom Entity instance by its EntityUniqueId # noqa: E501
|
106
106
|
|
107
107
|
Retrieve a particular Custom Entity instance. If the Custom Entity is deleted, this will return the state of the Custom Entity immediately prior to deletion. # noqa: E501
|
@@ -235,15 +235,15 @@ class EntitiesApi:
|
|
235
235
|
_request_auth=_params.get('_request_auth'))
|
236
236
|
|
237
237
|
@overload
|
238
|
-
async def get_data_type_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
238
|
+
async def get_data_type_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the DataType definition.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the DataType definition. Defaults to returning the latest version of the DataType definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, **kwargs) -> DataTypeEntity: # noqa: E501
|
239
239
|
...
|
240
240
|
|
241
241
|
@overload
|
242
|
-
def get_data_type_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
242
|
+
def get_data_type_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the DataType definition.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the DataType definition. Defaults to returning the latest version of the DataType definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, async_req: Optional[bool]=True, **kwargs) -> DataTypeEntity: # noqa: E501
|
243
243
|
...
|
244
244
|
|
245
245
|
@validate_arguments
|
246
|
-
def get_data_type_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
246
|
+
def get_data_type_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the DataType definition.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the DataType definition. Defaults to returning the latest version of the DataType definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[DataTypeEntity, Awaitable[DataTypeEntity]]: # noqa: E501
|
247
247
|
"""[EXPERIMENTAL] GetDataTypeByEntityUniqueId: Get DataType by EntityUniqueId # noqa: E501
|
248
248
|
|
249
249
|
Retrieve the definition of a particular DataType. If the DataType is deleted, this will return the state of the DataType immediately prior to deletion. # noqa: E501
|
@@ -278,7 +278,7 @@ class EntitiesApi:
|
|
278
278
|
return self.get_data_type_by_entity_unique_id_with_http_info(entity_unique_id, as_at, previews, **kwargs) # noqa: E501
|
279
279
|
|
280
280
|
@validate_arguments
|
281
|
-
def get_data_type_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
281
|
+
def get_data_type_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the DataType definition.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the DataType definition. Defaults to returning the latest version of the DataType definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
282
282
|
"""[EXPERIMENTAL] GetDataTypeByEntityUniqueId: Get DataType by EntityUniqueId # noqa: E501
|
283
283
|
|
284
284
|
Retrieve the definition of a particular DataType. If the DataType is deleted, this will return the state of the DataType immediately prior to deletion. # noqa: E501
|
@@ -406,15 +406,15 @@ class EntitiesApi:
|
|
406
406
|
_request_auth=_params.get('_request_auth'))
|
407
407
|
|
408
408
|
@overload
|
409
|
-
async def get_entity_history(self, entity_type : Annotated[constr(strict=True, max_length=256, min_length=1), Field(..., description="The type of the entity to list the change history for.")], entity_unique_id : Annotated[constr(strict=True, max_length=
|
409
|
+
async def get_entity_history(self, entity_type : Annotated[constr(strict=True, max_length=256, min_length=1), Field(..., description="The type of the entity to list the change history for.")], entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the entity.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list change history information. Defaults to return the change history at the latest datetime if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing change history information from a previous call to list change history information. This value is returned from the previous call. If a pagination token is provided the filter, sortBy and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], 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 suffixed by \" ASC\" or \" DESC\"")] = None, **kwargs) -> ResourceListOfChangeInterval: # noqa: E501
|
410
410
|
...
|
411
411
|
|
412
412
|
@overload
|
413
|
-
def get_entity_history(self, entity_type : Annotated[constr(strict=True, max_length=256, min_length=1), Field(..., description="The type of the entity to list the change history for.")], entity_unique_id : Annotated[constr(strict=True, max_length=
|
413
|
+
def get_entity_history(self, entity_type : Annotated[constr(strict=True, max_length=256, min_length=1), Field(..., description="The type of the entity to list the change history for.")], entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the entity.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list change history information. Defaults to return the change history at the latest datetime if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing change history information from a previous call to list change history information. This value is returned from the previous call. If a pagination token is provided the filter, sortBy and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], 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 suffixed by \" ASC\" or \" DESC\"")] = None, async_req: Optional[bool]=True, **kwargs) -> ResourceListOfChangeInterval: # noqa: E501
|
414
414
|
...
|
415
415
|
|
416
416
|
@validate_arguments
|
417
|
-
def get_entity_history(self, entity_type : Annotated[constr(strict=True, max_length=256, min_length=1), Field(..., description="The type of the entity to list the change history for.")], entity_unique_id : Annotated[constr(strict=True, max_length=
|
417
|
+
def get_entity_history(self, entity_type : Annotated[constr(strict=True, max_length=256, min_length=1), Field(..., description="The type of the entity to list the change history for.")], entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the entity.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list change history information. Defaults to return the change history at the latest datetime if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing change history information from a previous call to list change history information. This value is returned from the previous call. If a pagination token is provided the filter, sortBy and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], 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 suffixed by \" ASC\" or \" DESC\"")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ResourceListOfChangeInterval, Awaitable[ResourceListOfChangeInterval]]: # noqa: E501
|
418
418
|
"""[EXPERIMENTAL] GetEntityHistory: List an entity's history information # noqa: E501
|
419
419
|
|
420
420
|
Retrieve a page of an entity's change history up to a particular point in AsAt time. # noqa: E501
|
@@ -457,7 +457,7 @@ class EntitiesApi:
|
|
457
457
|
return self.get_entity_history_with_http_info(entity_type, entity_unique_id, as_at, page, limit, filter, sort_by, **kwargs) # noqa: E501
|
458
458
|
|
459
459
|
@validate_arguments
|
460
|
-
def get_entity_history_with_http_info(self, entity_type : Annotated[constr(strict=True, max_length=256, min_length=1), Field(..., description="The type of the entity to list the change history for.")], entity_unique_id : Annotated[constr(strict=True, max_length=
|
460
|
+
def get_entity_history_with_http_info(self, entity_type : Annotated[constr(strict=True, max_length=256, min_length=1), Field(..., description="The type of the entity to list the change history for.")], entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the entity.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list change history information. Defaults to return the change history at the latest datetime if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing change history information from a previous call to list change history information. This value is returned from the previous call. If a pagination token is provided the filter, sortBy and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], 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 suffixed by \" ASC\" or \" DESC\"")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
461
461
|
"""[EXPERIMENTAL] GetEntityHistory: List an entity's history information # noqa: E501
|
462
462
|
|
463
463
|
Retrieve a page of an entity's change history up to a particular point in AsAt time. # noqa: E501
|
@@ -609,15 +609,15 @@ class EntitiesApi:
|
|
609
609
|
_request_auth=_params.get('_request_auth'))
|
610
610
|
|
611
611
|
@overload
|
612
|
-
async def get_instrument_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
612
|
+
async def get_instrument_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the instrument definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the Instrument definition. 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 instrument definition. Defaults to returning the latest version of the instrument definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, **kwargs) -> InstrumentEntity: # noqa: E501
|
613
613
|
...
|
614
614
|
|
615
615
|
@overload
|
616
|
-
def get_instrument_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
616
|
+
def get_instrument_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the instrument definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the Instrument definition. 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 instrument definition. Defaults to returning the latest version of the instrument definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, async_req: Optional[bool]=True, **kwargs) -> InstrumentEntity: # noqa: E501
|
617
617
|
...
|
618
618
|
|
619
619
|
@validate_arguments
|
620
|
-
def get_instrument_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
620
|
+
def get_instrument_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the instrument definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the Instrument definition. 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 instrument definition. Defaults to returning the latest version of the instrument definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[InstrumentEntity, Awaitable[InstrumentEntity]]: # noqa: E501
|
621
621
|
"""[EXPERIMENTAL] GetInstrumentByEntityUniqueId: Get instrument by EntityUniqueId # noqa: E501
|
622
622
|
|
623
623
|
Retrieve the definition of a particular instrument. If the instrument is deleted, this will return the state of the instrument immediately prior to deletion. # noqa: E501
|
@@ -654,7 +654,7 @@ class EntitiesApi:
|
|
654
654
|
return self.get_instrument_by_entity_unique_id_with_http_info(entity_unique_id, effective_at, as_at, previews, **kwargs) # noqa: E501
|
655
655
|
|
656
656
|
@validate_arguments
|
657
|
-
def get_instrument_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
657
|
+
def get_instrument_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the instrument definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the Instrument definition. 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 instrument definition. Defaults to returning the latest version of the instrument definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
658
658
|
"""[EXPERIMENTAL] GetInstrumentByEntityUniqueId: Get instrument by EntityUniqueId # noqa: E501
|
659
659
|
|
660
660
|
Retrieve the definition of a particular instrument. If the instrument is deleted, this will return the state of the instrument immediately prior to deletion. # noqa: E501
|
@@ -788,15 +788,15 @@ class EntitiesApi:
|
|
788
788
|
_request_auth=_params.get('_request_auth'))
|
789
789
|
|
790
790
|
@overload
|
791
|
-
async def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
791
|
+
async def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the portfolio definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the portfolio definition. 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 portfolio definition. Defaults to returning the latest version of the portfolio definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, **kwargs) -> PortfolioEntity: # noqa: E501
|
792
792
|
...
|
793
793
|
|
794
794
|
@overload
|
795
|
-
def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
795
|
+
def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the portfolio definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the portfolio definition. 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 portfolio definition. Defaults to returning the latest version of the portfolio definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, async_req: Optional[bool]=True, **kwargs) -> PortfolioEntity: # noqa: E501
|
796
796
|
...
|
797
797
|
|
798
798
|
@validate_arguments
|
799
|
-
def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
799
|
+
def get_portfolio_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the portfolio definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the portfolio definition. 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 portfolio definition. Defaults to returning the latest version of the portfolio definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PortfolioEntity, Awaitable[PortfolioEntity]]: # noqa: E501
|
800
800
|
"""[EXPERIMENTAL] GetPortfolioByEntityUniqueId: Get portfolio by EntityUniqueId # noqa: E501
|
801
801
|
|
802
802
|
Retrieve the definition of a particular portfolio. If the portfolio is deleted, this will return the state of the portfolio immediately prior to deletion. # noqa: E501
|
@@ -833,7 +833,7 @@ class EntitiesApi:
|
|
833
833
|
return self.get_portfolio_by_entity_unique_id_with_http_info(entity_unique_id, effective_at, as_at, previews, **kwargs) # noqa: E501
|
834
834
|
|
835
835
|
@validate_arguments
|
836
|
-
def get_portfolio_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
836
|
+
def get_portfolio_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the portfolio definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to retrieve the portfolio definition. 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 portfolio definition. Defaults to returning the latest version of the portfolio definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
837
837
|
"""[EXPERIMENTAL] GetPortfolioByEntityUniqueId: Get portfolio by EntityUniqueId # noqa: E501
|
838
838
|
|
839
839
|
Retrieve the definition of a particular portfolio. If the portfolio is deleted, this will return the state of the portfolio immediately prior to deletion. # noqa: E501
|
@@ -1137,15 +1137,15 @@ class EntitiesApi:
|
|
1137
1137
|
_request_auth=_params.get('_request_auth'))
|
1138
1138
|
|
1139
1139
|
@overload
|
1140
|
-
async def get_property_definition_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
1140
|
+
async def get_property_definition_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the property definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime at which to retrieve the property definition. 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 property definition. Defaults to returning the latest version of the property definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, **kwargs) -> PropertyDefinitionEntity: # noqa: E501
|
1141
1141
|
...
|
1142
1142
|
|
1143
1143
|
@overload
|
1144
|
-
def get_property_definition_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
1144
|
+
def get_property_definition_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the property definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime at which to retrieve the property definition. 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 property definition. Defaults to returning the latest version of the property definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, async_req: Optional[bool]=True, **kwargs) -> PropertyDefinitionEntity: # noqa: E501
|
1145
1145
|
...
|
1146
1146
|
|
1147
1147
|
@validate_arguments
|
1148
|
-
def get_property_definition_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
1148
|
+
def get_property_definition_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the property definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime at which to retrieve the property definition. 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 property definition. Defaults to returning the latest version of the property definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PropertyDefinitionEntity, Awaitable[PropertyDefinitionEntity]]: # noqa: E501
|
1149
1149
|
"""[EXPERIMENTAL] GetPropertyDefinitionByEntityUniqueId: Get property definition by EntityUniqueId # noqa: E501
|
1150
1150
|
|
1151
1151
|
Retrieve a particular property definition. If the property definition is deleted, this will return the state of the property definition immediately prior to deletion. # noqa: E501
|
@@ -1182,7 +1182,7 @@ class EntitiesApi:
|
|
1182
1182
|
return self.get_property_definition_by_entity_unique_id_with_http_info(entity_unique_id, effective_at, as_at, previews, **kwargs) # noqa: E501
|
1183
1183
|
|
1184
1184
|
@validate_arguments
|
1185
|
-
def get_property_definition_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=
|
1185
|
+
def get_property_definition_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=36, min_length=36), Field(..., description="The universally unique identifier of the property definition.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime at which to retrieve the property definition. 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 property definition. Defaults to returning the latest version of the property definition if not specified.")] = None, previews : Annotated[Optional[conlist(StrictStr)], Field(description="The ids of the staged modifications to be previewed in the response.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
1186
1186
|
"""[EXPERIMENTAL] GetPropertyDefinitionByEntityUniqueId: Get property definition by EntityUniqueId # noqa: E501
|
1187
1187
|
|
1188
1188
|
Retrieve a particular property definition. If the property definition is deleted, this will return the state of the property definition immediately prior to deletion. # noqa: E501
|
lusid/api/funds_api.py
CHANGED
@@ -45,6 +45,7 @@ from lusid.models.upsert_valuation_point_request import UpsertValuationPointRequ
|
|
45
45
|
from lusid.models.valuation_point_data_query_parameters import ValuationPointDataQueryParameters
|
46
46
|
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
47
47
|
from lusid.models.valuation_point_data_response import ValuationPointDataResponse
|
48
|
+
from lusid.models.valuation_point_resource_list_of_accounted_transaction import ValuationPointResourceListOfAccountedTransaction
|
48
49
|
from lusid.models.valuation_point_resource_list_of_journal_entry_line import ValuationPointResourceListOfJournalEntryLine
|
49
50
|
from lusid.models.valuation_point_resource_list_of_pnl_journal_entry_line import ValuationPointResourceListOfPnlJournalEntryLine
|
50
51
|
from lusid.models.valuation_point_resource_list_of_trial_balance import ValuationPointResourceListOfTrialBalance
|
@@ -2261,6 +2262,224 @@ class FundsApi:
|
|
2261
2262
|
collection_formats=_collection_formats,
|
2262
2263
|
_request_auth=_params.get('_request_auth'))
|
2263
2264
|
|
2265
|
+
@overload
|
2266
|
+
async def get_valuation_point_transactions(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope is creating the unique identifier for the given Fund.")], valuation_point_data_query_parameters : Annotated[ValuationPointDataQueryParameters, Field(..., description="The arguments to use for querying the transactions.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing transactions from a previous call to GetValuationPointTransactions.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, **kwargs) -> ValuationPointResourceListOfAccountedTransaction: # noqa: E501
|
2267
|
+
...
|
2268
|
+
|
2269
|
+
@overload
|
2270
|
+
def get_valuation_point_transactions(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope is creating the unique identifier for the given Fund.")], valuation_point_data_query_parameters : Annotated[ValuationPointDataQueryParameters, Field(..., description="The arguments to use for querying the transactions.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing transactions from a previous call to GetValuationPointTransactions.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, async_req: Optional[bool]=True, **kwargs) -> ValuationPointResourceListOfAccountedTransaction: # noqa: E501
|
2271
|
+
...
|
2272
|
+
|
2273
|
+
@validate_arguments
|
2274
|
+
def get_valuation_point_transactions(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope is creating the unique identifier for the given Fund.")], valuation_point_data_query_parameters : Annotated[ValuationPointDataQueryParameters, Field(..., description="The arguments to use for querying the transactions.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing transactions from a previous call to GetValuationPointTransactions.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ValuationPointResourceListOfAccountedTransaction, Awaitable[ValuationPointResourceListOfAccountedTransaction]]: # noqa: E501
|
2275
|
+
"""[EXPERIMENTAL] GetValuationPointTransactions: Get the Transactions for the given Fund. # noqa: E501
|
2276
|
+
|
2277
|
+
Gets the Transactions for the given Valuation Point for a Fund # noqa: E501
|
2278
|
+
This method makes a synchronous HTTP request by default. To make an
|
2279
|
+
asynchronous HTTP request, please pass async_req=True
|
2280
|
+
|
2281
|
+
>>> thread = api.get_valuation_point_transactions(scope, code, valuation_point_data_query_parameters, as_at, filter, limit, page, property_keys, async_req=True)
|
2282
|
+
>>> result = thread.get()
|
2283
|
+
|
2284
|
+
:param scope: The scope of the Fund. (required)
|
2285
|
+
:type scope: str
|
2286
|
+
:param code: The code of the Fund. Together with the scope is creating the unique identifier for the given Fund. (required)
|
2287
|
+
:type code: str
|
2288
|
+
:param valuation_point_data_query_parameters: The arguments to use for querying the transactions. (required)
|
2289
|
+
:type valuation_point_data_query_parameters: ValuationPointDataQueryParameters
|
2290
|
+
:param as_at: The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.
|
2291
|
+
:type as_at: datetime
|
2292
|
+
:param filter: Expression to filter the result set.
|
2293
|
+
:type filter: str
|
2294
|
+
:param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
|
2295
|
+
:type limit: int
|
2296
|
+
:param page: The pagination token to use to continue listing transactions from a previous call to GetValuationPointTransactions.
|
2297
|
+
:type page: str
|
2298
|
+
:param property_keys: A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.
|
2299
|
+
:type property_keys: List[str]
|
2300
|
+
:param async_req: Whether to execute the request asynchronously.
|
2301
|
+
:type async_req: bool, optional
|
2302
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2303
|
+
:param opts: Configuration options for this request
|
2304
|
+
:type opts: ConfigurationOptions, optional
|
2305
|
+
:return: Returns the result object.
|
2306
|
+
If the method is called asynchronously,
|
2307
|
+
returns the request thread.
|
2308
|
+
:rtype: ValuationPointResourceListOfAccountedTransaction
|
2309
|
+
"""
|
2310
|
+
kwargs['_return_http_data_only'] = True
|
2311
|
+
if '_preload_content' in kwargs:
|
2312
|
+
message = "Error! Please call the get_valuation_point_transactions_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
2313
|
+
raise ValueError(message)
|
2314
|
+
if async_req is not None:
|
2315
|
+
kwargs['async_req'] = async_req
|
2316
|
+
return self.get_valuation_point_transactions_with_http_info(scope, code, valuation_point_data_query_parameters, as_at, filter, limit, page, property_keys, **kwargs) # noqa: E501
|
2317
|
+
|
2318
|
+
@validate_arguments
|
2319
|
+
def get_valuation_point_transactions_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope is creating the unique identifier for the given Fund.")], valuation_point_data_query_parameters : Annotated[ValuationPointDataQueryParameters, Field(..., description="The arguments to use for querying the transactions.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing transactions from a previous call to GetValuationPointTransactions.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
2320
|
+
"""[EXPERIMENTAL] GetValuationPointTransactions: Get the Transactions for the given Fund. # noqa: E501
|
2321
|
+
|
2322
|
+
Gets the Transactions for the given Valuation Point for a Fund # noqa: E501
|
2323
|
+
This method makes a synchronous HTTP request by default. To make an
|
2324
|
+
asynchronous HTTP request, please pass async_req=True
|
2325
|
+
|
2326
|
+
>>> thread = api.get_valuation_point_transactions_with_http_info(scope, code, valuation_point_data_query_parameters, as_at, filter, limit, page, property_keys, async_req=True)
|
2327
|
+
>>> result = thread.get()
|
2328
|
+
|
2329
|
+
:param scope: The scope of the Fund. (required)
|
2330
|
+
:type scope: str
|
2331
|
+
:param code: The code of the Fund. Together with the scope is creating the unique identifier for the given Fund. (required)
|
2332
|
+
:type code: str
|
2333
|
+
:param valuation_point_data_query_parameters: The arguments to use for querying the transactions. (required)
|
2334
|
+
:type valuation_point_data_query_parameters: ValuationPointDataQueryParameters
|
2335
|
+
:param as_at: The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.
|
2336
|
+
:type as_at: datetime
|
2337
|
+
:param filter: Expression to filter the result set.
|
2338
|
+
:type filter: str
|
2339
|
+
:param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
|
2340
|
+
:type limit: int
|
2341
|
+
:param page: The pagination token to use to continue listing transactions from a previous call to GetValuationPointTransactions.
|
2342
|
+
:type page: str
|
2343
|
+
:param property_keys: A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.
|
2344
|
+
:type property_keys: List[str]
|
2345
|
+
:param async_req: Whether to execute the request asynchronously.
|
2346
|
+
:type async_req: bool, optional
|
2347
|
+
:param _preload_content: if False, the ApiResponse.data will
|
2348
|
+
be set to none and raw_data will store the
|
2349
|
+
HTTP response body without reading/decoding.
|
2350
|
+
Default is True.
|
2351
|
+
:type _preload_content: bool, optional
|
2352
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
2353
|
+
object with status code, headers, etc
|
2354
|
+
:type _return_http_data_only: bool, optional
|
2355
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2356
|
+
:param opts: Configuration options for this request
|
2357
|
+
:type opts: ConfigurationOptions, optional
|
2358
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2359
|
+
request; this effectively ignores the authentication
|
2360
|
+
in the spec for a single request.
|
2361
|
+
:type _request_auth: dict, optional
|
2362
|
+
:type _content_type: string, optional: force content-type for the request
|
2363
|
+
:return: Returns the result object.
|
2364
|
+
If the method is called asynchronously,
|
2365
|
+
returns the request thread.
|
2366
|
+
:rtype: tuple(ValuationPointResourceListOfAccountedTransaction, status_code(int), headers(HTTPHeaderDict))
|
2367
|
+
"""
|
2368
|
+
|
2369
|
+
_params = locals()
|
2370
|
+
|
2371
|
+
_all_params = [
|
2372
|
+
'scope',
|
2373
|
+
'code',
|
2374
|
+
'valuation_point_data_query_parameters',
|
2375
|
+
'as_at',
|
2376
|
+
'filter',
|
2377
|
+
'limit',
|
2378
|
+
'page',
|
2379
|
+
'property_keys'
|
2380
|
+
]
|
2381
|
+
_all_params.extend(
|
2382
|
+
[
|
2383
|
+
'async_req',
|
2384
|
+
'_return_http_data_only',
|
2385
|
+
'_preload_content',
|
2386
|
+
'_request_timeout',
|
2387
|
+
'_request_auth',
|
2388
|
+
'_content_type',
|
2389
|
+
'_headers',
|
2390
|
+
'opts'
|
2391
|
+
]
|
2392
|
+
)
|
2393
|
+
|
2394
|
+
# validate the arguments
|
2395
|
+
for _key, _val in _params['kwargs'].items():
|
2396
|
+
if _key not in _all_params:
|
2397
|
+
raise ApiTypeError(
|
2398
|
+
"Got an unexpected keyword argument '%s'"
|
2399
|
+
" to method get_valuation_point_transactions" % _key
|
2400
|
+
)
|
2401
|
+
_params[_key] = _val
|
2402
|
+
del _params['kwargs']
|
2403
|
+
|
2404
|
+
_collection_formats = {}
|
2405
|
+
|
2406
|
+
# process the path parameters
|
2407
|
+
_path_params = {}
|
2408
|
+
if _params['scope']:
|
2409
|
+
_path_params['scope'] = _params['scope']
|
2410
|
+
|
2411
|
+
if _params['code']:
|
2412
|
+
_path_params['code'] = _params['code']
|
2413
|
+
|
2414
|
+
|
2415
|
+
# process the query parameters
|
2416
|
+
_query_params = []
|
2417
|
+
if _params.get('as_at') is not None: # noqa: E501
|
2418
|
+
if isinstance(_params['as_at'], datetime):
|
2419
|
+
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
2420
|
+
else:
|
2421
|
+
_query_params.append(('asAt', _params['as_at']))
|
2422
|
+
|
2423
|
+
if _params.get('filter') is not None: # noqa: E501
|
2424
|
+
_query_params.append(('filter', _params['filter']))
|
2425
|
+
|
2426
|
+
if _params.get('limit') is not None: # noqa: E501
|
2427
|
+
_query_params.append(('limit', _params['limit']))
|
2428
|
+
|
2429
|
+
if _params.get('page') is not None: # noqa: E501
|
2430
|
+
_query_params.append(('page', _params['page']))
|
2431
|
+
|
2432
|
+
if _params.get('property_keys') is not None: # noqa: E501
|
2433
|
+
_query_params.append(('propertyKeys', _params['property_keys']))
|
2434
|
+
_collection_formats['propertyKeys'] = 'multi'
|
2435
|
+
|
2436
|
+
# process the header parameters
|
2437
|
+
_header_params = dict(_params.get('_headers', {}))
|
2438
|
+
# process the form parameters
|
2439
|
+
_form_params = []
|
2440
|
+
_files = {}
|
2441
|
+
# process the body parameter
|
2442
|
+
_body_params = None
|
2443
|
+
if _params['valuation_point_data_query_parameters'] is not None:
|
2444
|
+
_body_params = _params['valuation_point_data_query_parameters']
|
2445
|
+
|
2446
|
+
# set the HTTP header `Accept`
|
2447
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2448
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
2449
|
+
|
2450
|
+
# set the HTTP header `Content-Type`
|
2451
|
+
_content_types_list = _params.get('_content_type',
|
2452
|
+
self.api_client.select_header_content_type(
|
2453
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
2454
|
+
if _content_types_list:
|
2455
|
+
_header_params['Content-Type'] = _content_types_list
|
2456
|
+
|
2457
|
+
# authentication setting
|
2458
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
2459
|
+
|
2460
|
+
_response_types_map = {
|
2461
|
+
'200': "ValuationPointResourceListOfAccountedTransaction",
|
2462
|
+
'400': "LusidValidationProblemDetails",
|
2463
|
+
}
|
2464
|
+
|
2465
|
+
return self.api_client.call_api(
|
2466
|
+
'/api/funds/{scope}/{code}/valuationpoints/transactions/$query', 'POST',
|
2467
|
+
_path_params,
|
2468
|
+
_query_params,
|
2469
|
+
_header_params,
|
2470
|
+
body=_body_params,
|
2471
|
+
post_params=_form_params,
|
2472
|
+
files=_files,
|
2473
|
+
response_types_map=_response_types_map,
|
2474
|
+
auth_settings=_auth_settings,
|
2475
|
+
async_req=_params.get('async_req'),
|
2476
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2477
|
+
_preload_content=_params.get('_preload_content', True),
|
2478
|
+
_request_timeout=_params.get('_request_timeout'),
|
2479
|
+
opts=_params.get('opts'),
|
2480
|
+
collection_formats=_collection_formats,
|
2481
|
+
_request_auth=_params.get('_request_auth'))
|
2482
|
+
|
2264
2483
|
@overload
|
2265
2484
|
async def get_valuation_point_trial_balance(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], valuation_point_data_query_parameters : Annotated[ValuationPointDataQueryParameters, Field(..., description="The query parameters used in running the generation of the Trial Balance.")], general_ledger_profile_code : Annotated[Optional[constr(strict=True, max_length=64, min_length=1)], Field(description="The optional code of a general ledger profile used to decorate journal entry lines with levels.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, **kwargs) -> ValuationPointResourceListOfTrialBalance: # noqa: E501
|
2266
2485
|
...
|