lusid-sdk 2.1.320__py3-none-any.whl → 2.1.347__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 +10 -0
- lusid/api/entities_api.py +172 -0
- lusid/api/funds_api.py +212 -0
- lusid/api/order_management_api.py +160 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +10 -0
- lusid/models/data_type.py +8 -8
- lusid/models/data_type_entity.py +131 -0
- lusid/models/fund_configuration.py +6 -6
- lusid/models/fund_configuration_request.py +6 -6
- lusid/models/journal_entry_line.py +5 -3
- lusid/models/order_update_request.py +116 -0
- lusid/models/paged_resource_list_of_valuation_point_overview.py +113 -0
- lusid/models/posting_module_rule.py +7 -32
- lusid/models/quote_access_metadata_rule_id.py +2 -2
- lusid/models/quote_series_id.py +2 -2
- lusid/models/scrip_dividend_event.py +17 -3
- lusid/models/share_class_details.py +5 -3
- lusid/models/stock_split_event.py +18 -4
- lusid/models/update_orders_response.py +153 -0
- lusid/models/valuation_point_overview.py +125 -0
- {lusid_sdk-2.1.320.dist-info → lusid_sdk-2.1.347.dist-info}/METADATA +9 -1
- {lusid_sdk-2.1.320.dist-info → lusid_sdk-2.1.347.dist-info}/RECORD +24 -19
- {lusid_sdk-2.1.320.dist-info → lusid_sdk-2.1.347.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -333,6 +333,7 @@ from lusid.models.data_map_key import DataMapKey
|
|
333
333
|
from lusid.models.data_mapping import DataMapping
|
334
334
|
from lusid.models.data_scope import DataScope
|
335
335
|
from lusid.models.data_type import DataType
|
336
|
+
from lusid.models.data_type_entity import DataTypeEntity
|
336
337
|
from lusid.models.data_type_summary import DataTypeSummary
|
337
338
|
from lusid.models.data_type_value_range import DataTypeValueRange
|
338
339
|
from lusid.models.date_attributes import DateAttributes
|
@@ -630,6 +631,7 @@ from lusid.models.order_instruction_request import OrderInstructionRequest
|
|
630
631
|
from lusid.models.order_instruction_set_request import OrderInstructionSetRequest
|
631
632
|
from lusid.models.order_request import OrderRequest
|
632
633
|
from lusid.models.order_set_request import OrderSetRequest
|
634
|
+
from lusid.models.order_update_request import OrderUpdateRequest
|
633
635
|
from lusid.models.otc_confirmation import OtcConfirmation
|
634
636
|
from lusid.models.output_transaction import OutputTransaction
|
635
637
|
from lusid.models.output_transition import OutputTransition
|
@@ -694,6 +696,7 @@ from lusid.models.paged_resource_list_of_staging_rule_set import PagedResourceLi
|
|
694
696
|
from lusid.models.paged_resource_list_of_transaction_template import PagedResourceListOfTransactionTemplate
|
695
697
|
from lusid.models.paged_resource_list_of_transaction_template_specification import PagedResourceListOfTransactionTemplateSpecification
|
696
698
|
from lusid.models.paged_resource_list_of_translation_script_id import PagedResourceListOfTranslationScriptId
|
699
|
+
from lusid.models.paged_resource_list_of_valuation_point_overview import PagedResourceListOfValuationPointOverview
|
697
700
|
from lusid.models.paged_resource_list_of_virtual_row import PagedResourceListOfVirtualRow
|
698
701
|
from lusid.models.participation import Participation
|
699
702
|
from lusid.models.participation_request import ParticipationRequest
|
@@ -1038,6 +1041,7 @@ from lusid.models.update_data_type_request import UpdateDataTypeRequest
|
|
1038
1041
|
from lusid.models.update_derived_property_definition_request import UpdateDerivedPropertyDefinitionRequest
|
1039
1042
|
from lusid.models.update_fee_type_request import UpdateFeeTypeRequest
|
1040
1043
|
from lusid.models.update_instrument_identifier_request import UpdateInstrumentIdentifierRequest
|
1044
|
+
from lusid.models.update_orders_response import UpdateOrdersResponse
|
1041
1045
|
from lusid.models.update_placements_response import UpdatePlacementsResponse
|
1042
1046
|
from lusid.models.update_portfolio_group_request import UpdatePortfolioGroupRequest
|
1043
1047
|
from lusid.models.update_portfolio_request import UpdatePortfolioRequest
|
@@ -1094,6 +1098,7 @@ from lusid.models.user import User
|
|
1094
1098
|
from lusid.models.valuation_point_data_query_parameters import ValuationPointDataQueryParameters
|
1095
1099
|
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
1096
1100
|
from lusid.models.valuation_point_data_response import ValuationPointDataResponse
|
1101
|
+
from lusid.models.valuation_point_overview import ValuationPointOverview
|
1097
1102
|
from lusid.models.valuation_request import ValuationRequest
|
1098
1103
|
from lusid.models.valuation_schedule import ValuationSchedule
|
1099
1104
|
from lusid.models.valuations_reconciliation_request import ValuationsReconciliationRequest
|
@@ -1442,6 +1447,7 @@ __all__ = [
|
|
1442
1447
|
"DataMapping",
|
1443
1448
|
"DataScope",
|
1444
1449
|
"DataType",
|
1450
|
+
"DataTypeEntity",
|
1445
1451
|
"DataTypeSummary",
|
1446
1452
|
"DataTypeValueRange",
|
1447
1453
|
"DateAttributes",
|
@@ -1739,6 +1745,7 @@ __all__ = [
|
|
1739
1745
|
"OrderInstructionSetRequest",
|
1740
1746
|
"OrderRequest",
|
1741
1747
|
"OrderSetRequest",
|
1748
|
+
"OrderUpdateRequest",
|
1742
1749
|
"OtcConfirmation",
|
1743
1750
|
"OutputTransaction",
|
1744
1751
|
"OutputTransition",
|
@@ -1803,6 +1810,7 @@ __all__ = [
|
|
1803
1810
|
"PagedResourceListOfTransactionTemplate",
|
1804
1811
|
"PagedResourceListOfTransactionTemplateSpecification",
|
1805
1812
|
"PagedResourceListOfTranslationScriptId",
|
1813
|
+
"PagedResourceListOfValuationPointOverview",
|
1806
1814
|
"PagedResourceListOfVirtualRow",
|
1807
1815
|
"Participation",
|
1808
1816
|
"ParticipationRequest",
|
@@ -2147,6 +2155,7 @@ __all__ = [
|
|
2147
2155
|
"UpdateDerivedPropertyDefinitionRequest",
|
2148
2156
|
"UpdateFeeTypeRequest",
|
2149
2157
|
"UpdateInstrumentIdentifierRequest",
|
2158
|
+
"UpdateOrdersResponse",
|
2150
2159
|
"UpdatePlacementsResponse",
|
2151
2160
|
"UpdatePortfolioGroupRequest",
|
2152
2161
|
"UpdatePortfolioRequest",
|
@@ -2203,6 +2212,7 @@ __all__ = [
|
|
2203
2212
|
"ValuationPointDataQueryParameters",
|
2204
2213
|
"ValuationPointDataRequest",
|
2205
2214
|
"ValuationPointDataResponse",
|
2215
|
+
"ValuationPointOverview",
|
2206
2216
|
"ValuationRequest",
|
2207
2217
|
"ValuationSchedule",
|
2208
2218
|
"ValuationsReconciliationRequest",
|
lusid/api/entities_api.py
CHANGED
@@ -26,6 +26,7 @@ from pydantic.v1 import Field, StrictStr, conlist, constr, validator
|
|
26
26
|
|
27
27
|
from typing import Optional
|
28
28
|
|
29
|
+
from lusid.models.data_type_entity import DataTypeEntity
|
29
30
|
from lusid.models.instrument_entity import InstrumentEntity
|
30
31
|
from lusid.models.portfolio_entity import PortfolioEntity
|
31
32
|
from lusid.models.property_definition_entity import PropertyDefinitionEntity
|
@@ -51,6 +52,177 @@ class EntitiesApi:
|
|
51
52
|
api_client = ApiClient.get_default()
|
52
53
|
self.api_client = api_client
|
53
54
|
|
55
|
+
@overload
|
56
|
+
async def get_data_type_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=40, min_length=30), 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
|
57
|
+
...
|
58
|
+
|
59
|
+
@overload
|
60
|
+
def get_data_type_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=40, min_length=30), 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
|
61
|
+
...
|
62
|
+
|
63
|
+
@validate_arguments
|
64
|
+
def get_data_type_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=40, min_length=30), 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
|
65
|
+
"""[EXPERIMENTAL] GetDataTypeByEntityUniqueId: Get DataType by EntityUniqueId # noqa: E501
|
66
|
+
|
67
|
+
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
|
68
|
+
This method makes a synchronous HTTP request by default. To make an
|
69
|
+
asynchronous HTTP request, please pass async_req=True
|
70
|
+
|
71
|
+
>>> thread = api.get_data_type_by_entity_unique_id(entity_unique_id, as_at, previews, async_req=True)
|
72
|
+
>>> result = thread.get()
|
73
|
+
|
74
|
+
:param entity_unique_id: The universally unique identifier of the DataType definition. (required)
|
75
|
+
:type entity_unique_id: str
|
76
|
+
:param as_at: The asAt datetime at which to retrieve the DataType definition. Defaults to returning the latest version of the DataType definition if not specified.
|
77
|
+
:type as_at: datetime
|
78
|
+
:param previews: The ids of the staged modifications to be previewed in the response.
|
79
|
+
:type previews: List[str]
|
80
|
+
:param async_req: Whether to execute the request asynchronously.
|
81
|
+
:type async_req: bool, optional
|
82
|
+
:param _request_timeout: timeout setting for this request.
|
83
|
+
If one number provided, it will be total request
|
84
|
+
timeout. It can also be a pair (tuple) of
|
85
|
+
(connection, read) timeouts.
|
86
|
+
:return: Returns the result object.
|
87
|
+
If the method is called asynchronously,
|
88
|
+
returns the request thread.
|
89
|
+
:rtype: DataTypeEntity
|
90
|
+
"""
|
91
|
+
kwargs['_return_http_data_only'] = True
|
92
|
+
if '_preload_content' in kwargs:
|
93
|
+
message = "Error! Please call the get_data_type_by_entity_unique_id_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
94
|
+
raise ValueError(message)
|
95
|
+
if async_req is not None:
|
96
|
+
kwargs['async_req'] = async_req
|
97
|
+
return self.get_data_type_by_entity_unique_id_with_http_info(entity_unique_id, as_at, previews, **kwargs) # noqa: E501
|
98
|
+
|
99
|
+
@validate_arguments
|
100
|
+
def get_data_type_by_entity_unique_id_with_http_info(self, entity_unique_id : Annotated[constr(strict=True, max_length=40, min_length=30), 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
|
101
|
+
"""[EXPERIMENTAL] GetDataTypeByEntityUniqueId: Get DataType by EntityUniqueId # noqa: E501
|
102
|
+
|
103
|
+
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
|
104
|
+
This method makes a synchronous HTTP request by default. To make an
|
105
|
+
asynchronous HTTP request, please pass async_req=True
|
106
|
+
|
107
|
+
>>> thread = api.get_data_type_by_entity_unique_id_with_http_info(entity_unique_id, as_at, previews, async_req=True)
|
108
|
+
>>> result = thread.get()
|
109
|
+
|
110
|
+
:param entity_unique_id: The universally unique identifier of the DataType definition. (required)
|
111
|
+
:type entity_unique_id: str
|
112
|
+
:param as_at: The asAt datetime at which to retrieve the DataType definition. Defaults to returning the latest version of the DataType definition if not specified.
|
113
|
+
:type as_at: datetime
|
114
|
+
:param previews: The ids of the staged modifications to be previewed in the response.
|
115
|
+
:type previews: List[str]
|
116
|
+
:param async_req: Whether to execute the request asynchronously.
|
117
|
+
:type async_req: bool, optional
|
118
|
+
:param _preload_content: if False, the ApiResponse.data will
|
119
|
+
be set to none and raw_data will store the
|
120
|
+
HTTP response body without reading/decoding.
|
121
|
+
Default is True.
|
122
|
+
:type _preload_content: bool, optional
|
123
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
124
|
+
object with status code, headers, etc
|
125
|
+
:type _return_http_data_only: bool, optional
|
126
|
+
:param _request_timeout: timeout setting for this request. If one
|
127
|
+
number provided, it will be total request
|
128
|
+
timeout. It can also be a pair (tuple) of
|
129
|
+
(connection, read) timeouts.
|
130
|
+
:param _request_auth: set to override the auth_settings for an a single
|
131
|
+
request; this effectively ignores the authentication
|
132
|
+
in the spec for a single request.
|
133
|
+
:type _request_auth: dict, optional
|
134
|
+
:type _content_type: string, optional: force content-type for the request
|
135
|
+
:return: Returns the result object.
|
136
|
+
If the method is called asynchronously,
|
137
|
+
returns the request thread.
|
138
|
+
:rtype: tuple(DataTypeEntity, status_code(int), headers(HTTPHeaderDict))
|
139
|
+
"""
|
140
|
+
|
141
|
+
_params = locals()
|
142
|
+
|
143
|
+
_all_params = [
|
144
|
+
'entity_unique_id',
|
145
|
+
'as_at',
|
146
|
+
'previews'
|
147
|
+
]
|
148
|
+
_all_params.extend(
|
149
|
+
[
|
150
|
+
'async_req',
|
151
|
+
'_return_http_data_only',
|
152
|
+
'_preload_content',
|
153
|
+
'_request_timeout',
|
154
|
+
'_request_auth',
|
155
|
+
'_content_type',
|
156
|
+
'_headers'
|
157
|
+
]
|
158
|
+
)
|
159
|
+
|
160
|
+
# validate the arguments
|
161
|
+
for _key, _val in _params['kwargs'].items():
|
162
|
+
if _key not in _all_params:
|
163
|
+
raise ApiTypeError(
|
164
|
+
"Got an unexpected keyword argument '%s'"
|
165
|
+
" to method get_data_type_by_entity_unique_id" % _key
|
166
|
+
)
|
167
|
+
_params[_key] = _val
|
168
|
+
del _params['kwargs']
|
169
|
+
|
170
|
+
_collection_formats = {}
|
171
|
+
|
172
|
+
# process the path parameters
|
173
|
+
_path_params = {}
|
174
|
+
if _params['entity_unique_id']:
|
175
|
+
_path_params['entityUniqueId'] = _params['entity_unique_id']
|
176
|
+
|
177
|
+
|
178
|
+
# process the query parameters
|
179
|
+
_query_params = []
|
180
|
+
if _params.get('as_at') is not None: # noqa: E501
|
181
|
+
if isinstance(_params['as_at'], datetime):
|
182
|
+
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
183
|
+
else:
|
184
|
+
_query_params.append(('asAt', _params['as_at']))
|
185
|
+
|
186
|
+
if _params.get('previews') is not None: # noqa: E501
|
187
|
+
_query_params.append(('previews', _params['previews']))
|
188
|
+
_collection_formats['previews'] = 'multi'
|
189
|
+
|
190
|
+
# process the header parameters
|
191
|
+
_header_params = dict(_params.get('_headers', {}))
|
192
|
+
# process the form parameters
|
193
|
+
_form_params = []
|
194
|
+
_files = {}
|
195
|
+
# process the body parameter
|
196
|
+
_body_params = None
|
197
|
+
# set the HTTP header `Accept`
|
198
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
199
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
200
|
+
|
201
|
+
# authentication setting
|
202
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
203
|
+
|
204
|
+
_response_types_map = {
|
205
|
+
'200': "DataTypeEntity",
|
206
|
+
'400': "LusidValidationProblemDetails",
|
207
|
+
}
|
208
|
+
|
209
|
+
return self.api_client.call_api(
|
210
|
+
'/api/entities/datatypes/{entityUniqueId}', 'GET',
|
211
|
+
_path_params,
|
212
|
+
_query_params,
|
213
|
+
_header_params,
|
214
|
+
body=_body_params,
|
215
|
+
post_params=_form_params,
|
216
|
+
files=_files,
|
217
|
+
response_types_map=_response_types_map,
|
218
|
+
auth_settings=_auth_settings,
|
219
|
+
async_req=_params.get('async_req'),
|
220
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
221
|
+
_preload_content=_params.get('_preload_content', True),
|
222
|
+
_request_timeout=_params.get('_request_timeout'),
|
223
|
+
collection_formats=_collection_formats,
|
224
|
+
_request_auth=_params.get('_request_auth'))
|
225
|
+
|
54
226
|
@overload
|
55
227
|
async def get_instrument_by_entity_unique_id(self, entity_unique_id : Annotated[constr(strict=True, max_length=40, min_length=30), 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
|
56
228
|
...
|
lusid/api/funds_api.py
CHANGED
@@ -38,6 +38,7 @@ from lusid.models.model_property import ModelProperty
|
|
38
38
|
from lusid.models.operation import Operation
|
39
39
|
from lusid.models.paged_resource_list_of_fee import PagedResourceListOfFee
|
40
40
|
from lusid.models.paged_resource_list_of_fund import PagedResourceListOfFund
|
41
|
+
from lusid.models.paged_resource_list_of_valuation_point_overview import PagedResourceListOfValuationPointOverview
|
41
42
|
from lusid.models.set_share_class_instruments_request import SetShareClassInstrumentsRequest
|
42
43
|
from lusid.models.upsert_valuation_point_request import UpsertValuationPointRequest
|
43
44
|
from lusid.models.valuation_point_data_query_parameters import ValuationPointDataQueryParameters
|
@@ -2236,6 +2237,217 @@ class FundsApi:
|
|
2236
2237
|
collection_formats=_collection_formats,
|
2237
2238
|
_request_auth=_params.get('_request_auth'))
|
2238
2239
|
|
2240
|
+
@overload
|
2241
|
+
async def list_valuation_point_overview(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.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to list the TimeVariant properties for the ValuationPoints. 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 ValuationPoints. Defaults to returning the latest version of each ValuationPoint 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 ValuationPoints; this value 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, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. 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 results by. For example, to filter on the NAV, specify \"NAV gt 300\". For more information about filtering 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 'DiaryEntry' domain to decorate onto each ValuationPoint. These must take the format {domain}/{scope}/{code}, for example 'DiaryEntry/ValuationPoint/Id'.")] = None, **kwargs) -> PagedResourceListOfValuationPointOverview: # noqa: E501
|
2242
|
+
...
|
2243
|
+
|
2244
|
+
@overload
|
2245
|
+
def list_valuation_point_overview(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.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to list the TimeVariant properties for the ValuationPoints. 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 ValuationPoints. Defaults to returning the latest version of each ValuationPoint 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 ValuationPoints; this value 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, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. 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 results by. For example, to filter on the NAV, specify \"NAV gt 300\". For more information about filtering 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 'DiaryEntry' domain to decorate onto each ValuationPoint. These must take the format {domain}/{scope}/{code}, for example 'DiaryEntry/ValuationPoint/Id'.")] = None, async_req: Optional[bool]=True, **kwargs) -> PagedResourceListOfValuationPointOverview: # noqa: E501
|
2246
|
+
...
|
2247
|
+
|
2248
|
+
@validate_arguments
|
2249
|
+
def list_valuation_point_overview(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.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to list the TimeVariant properties for the ValuationPoints. 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 ValuationPoints. Defaults to returning the latest version of each ValuationPoint 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 ValuationPoints; this value 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, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. 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 results by. For example, to filter on the NAV, specify \"NAV gt 300\". For more information about filtering 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 'DiaryEntry' domain to decorate onto each ValuationPoint. These must take the format {domain}/{scope}/{code}, for example 'DiaryEntry/ValuationPoint/Id'.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PagedResourceListOfValuationPointOverview, Awaitable[PagedResourceListOfValuationPointOverview]]: # noqa: E501
|
2250
|
+
"""[EXPERIMENTAL] ListValuationPointOverview: List Valuation Points Overview for a given Fund. # noqa: E501
|
2251
|
+
|
2252
|
+
List all the Valuation Points that match the given criteria for a given Fund. # noqa: E501
|
2253
|
+
This method makes a synchronous HTTP request by default. To make an
|
2254
|
+
asynchronous HTTP request, please pass async_req=True
|
2255
|
+
|
2256
|
+
>>> thread = api.list_valuation_point_overview(scope, code, effective_at, as_at, page, limit, filter, property_keys, async_req=True)
|
2257
|
+
>>> result = thread.get()
|
2258
|
+
|
2259
|
+
:param scope: The scope of the Fund. (required)
|
2260
|
+
:type scope: str
|
2261
|
+
:param code: The code of the Fund. (required)
|
2262
|
+
:type code: str
|
2263
|
+
:param effective_at: The effective datetime or cut label at which to list the TimeVariant properties for the ValuationPoints. Defaults to the current LUSID system datetime if not specified.
|
2264
|
+
:type effective_at: str
|
2265
|
+
:param as_at: The asAt datetime at which to list the ValuationPoints. Defaults to returning the latest version of each ValuationPoint if not specified.
|
2266
|
+
:type as_at: datetime
|
2267
|
+
:param page: The pagination token to use to continue listing ValuationPoints; this value 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.
|
2268
|
+
:type page: str
|
2269
|
+
:param limit: When paginating, limit the results to this number. Defaults to 100 if not specified.
|
2270
|
+
:type limit: int
|
2271
|
+
:param filter: Expression to filter the results by. For example, to filter on the NAV, specify \"NAV gt 300\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
|
2272
|
+
:type filter: str
|
2273
|
+
:param property_keys: A list of property keys from the 'DiaryEntry' domain to decorate onto each ValuationPoint. These must take the format {domain}/{scope}/{code}, for example 'DiaryEntry/ValuationPoint/Id'.
|
2274
|
+
:type property_keys: List[str]
|
2275
|
+
:param async_req: Whether to execute the request asynchronously.
|
2276
|
+
:type async_req: bool, optional
|
2277
|
+
:param _request_timeout: timeout setting for this request.
|
2278
|
+
If one number provided, it will be total request
|
2279
|
+
timeout. It can also be a pair (tuple) of
|
2280
|
+
(connection, read) timeouts.
|
2281
|
+
:return: Returns the result object.
|
2282
|
+
If the method is called asynchronously,
|
2283
|
+
returns the request thread.
|
2284
|
+
:rtype: PagedResourceListOfValuationPointOverview
|
2285
|
+
"""
|
2286
|
+
kwargs['_return_http_data_only'] = True
|
2287
|
+
if '_preload_content' in kwargs:
|
2288
|
+
message = "Error! Please call the list_valuation_point_overview_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
2289
|
+
raise ValueError(message)
|
2290
|
+
if async_req is not None:
|
2291
|
+
kwargs['async_req'] = async_req
|
2292
|
+
return self.list_valuation_point_overview_with_http_info(scope, code, effective_at, as_at, page, limit, filter, property_keys, **kwargs) # noqa: E501
|
2293
|
+
|
2294
|
+
@validate_arguments
|
2295
|
+
def list_valuation_point_overview_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.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to list the TimeVariant properties for the ValuationPoints. 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 ValuationPoints. Defaults to returning the latest version of each ValuationPoint 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 ValuationPoints; this value 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, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. 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 results by. For example, to filter on the NAV, specify \"NAV gt 300\". For more information about filtering 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 'DiaryEntry' domain to decorate onto each ValuationPoint. These must take the format {domain}/{scope}/{code}, for example 'DiaryEntry/ValuationPoint/Id'.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
2296
|
+
"""[EXPERIMENTAL] ListValuationPointOverview: List Valuation Points Overview for a given Fund. # noqa: E501
|
2297
|
+
|
2298
|
+
List all the Valuation Points that match the given criteria for a given Fund. # noqa: E501
|
2299
|
+
This method makes a synchronous HTTP request by default. To make an
|
2300
|
+
asynchronous HTTP request, please pass async_req=True
|
2301
|
+
|
2302
|
+
>>> thread = api.list_valuation_point_overview_with_http_info(scope, code, effective_at, as_at, page, limit, filter, property_keys, async_req=True)
|
2303
|
+
>>> result = thread.get()
|
2304
|
+
|
2305
|
+
:param scope: The scope of the Fund. (required)
|
2306
|
+
:type scope: str
|
2307
|
+
:param code: The code of the Fund. (required)
|
2308
|
+
:type code: str
|
2309
|
+
:param effective_at: The effective datetime or cut label at which to list the TimeVariant properties for the ValuationPoints. Defaults to the current LUSID system datetime if not specified.
|
2310
|
+
:type effective_at: str
|
2311
|
+
:param as_at: The asAt datetime at which to list the ValuationPoints. Defaults to returning the latest version of each ValuationPoint if not specified.
|
2312
|
+
:type as_at: datetime
|
2313
|
+
:param page: The pagination token to use to continue listing ValuationPoints; this value 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.
|
2314
|
+
:type page: str
|
2315
|
+
:param limit: When paginating, limit the results to this number. Defaults to 100 if not specified.
|
2316
|
+
:type limit: int
|
2317
|
+
:param filter: Expression to filter the results by. For example, to filter on the NAV, specify \"NAV gt 300\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
|
2318
|
+
:type filter: str
|
2319
|
+
:param property_keys: A list of property keys from the 'DiaryEntry' domain to decorate onto each ValuationPoint. These must take the format {domain}/{scope}/{code}, for example 'DiaryEntry/ValuationPoint/Id'.
|
2320
|
+
:type property_keys: List[str]
|
2321
|
+
:param async_req: Whether to execute the request asynchronously.
|
2322
|
+
:type async_req: bool, optional
|
2323
|
+
:param _preload_content: if False, the ApiResponse.data will
|
2324
|
+
be set to none and raw_data will store the
|
2325
|
+
HTTP response body without reading/decoding.
|
2326
|
+
Default is True.
|
2327
|
+
:type _preload_content: bool, optional
|
2328
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
2329
|
+
object with status code, headers, etc
|
2330
|
+
:type _return_http_data_only: bool, optional
|
2331
|
+
:param _request_timeout: timeout setting for this request. If one
|
2332
|
+
number provided, it will be total request
|
2333
|
+
timeout. It can also be a pair (tuple) of
|
2334
|
+
(connection, read) timeouts.
|
2335
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2336
|
+
request; this effectively ignores the authentication
|
2337
|
+
in the spec for a single request.
|
2338
|
+
:type _request_auth: dict, optional
|
2339
|
+
:type _content_type: string, optional: force content-type for the request
|
2340
|
+
:return: Returns the result object.
|
2341
|
+
If the method is called asynchronously,
|
2342
|
+
returns the request thread.
|
2343
|
+
:rtype: tuple(PagedResourceListOfValuationPointOverview, status_code(int), headers(HTTPHeaderDict))
|
2344
|
+
"""
|
2345
|
+
|
2346
|
+
_params = locals()
|
2347
|
+
|
2348
|
+
_all_params = [
|
2349
|
+
'scope',
|
2350
|
+
'code',
|
2351
|
+
'effective_at',
|
2352
|
+
'as_at',
|
2353
|
+
'page',
|
2354
|
+
'limit',
|
2355
|
+
'filter',
|
2356
|
+
'property_keys'
|
2357
|
+
]
|
2358
|
+
_all_params.extend(
|
2359
|
+
[
|
2360
|
+
'async_req',
|
2361
|
+
'_return_http_data_only',
|
2362
|
+
'_preload_content',
|
2363
|
+
'_request_timeout',
|
2364
|
+
'_request_auth',
|
2365
|
+
'_content_type',
|
2366
|
+
'_headers'
|
2367
|
+
]
|
2368
|
+
)
|
2369
|
+
|
2370
|
+
# validate the arguments
|
2371
|
+
for _key, _val in _params['kwargs'].items():
|
2372
|
+
if _key not in _all_params:
|
2373
|
+
raise ApiTypeError(
|
2374
|
+
"Got an unexpected keyword argument '%s'"
|
2375
|
+
" to method list_valuation_point_overview" % _key
|
2376
|
+
)
|
2377
|
+
_params[_key] = _val
|
2378
|
+
del _params['kwargs']
|
2379
|
+
|
2380
|
+
_collection_formats = {}
|
2381
|
+
|
2382
|
+
# process the path parameters
|
2383
|
+
_path_params = {}
|
2384
|
+
if _params['scope']:
|
2385
|
+
_path_params['scope'] = _params['scope']
|
2386
|
+
|
2387
|
+
if _params['code']:
|
2388
|
+
_path_params['code'] = _params['code']
|
2389
|
+
|
2390
|
+
|
2391
|
+
# process the query parameters
|
2392
|
+
_query_params = []
|
2393
|
+
if _params.get('effective_at') is not None: # noqa: E501
|
2394
|
+
_query_params.append(('effectiveAt', _params['effective_at']))
|
2395
|
+
|
2396
|
+
if _params.get('as_at') is not None: # noqa: E501
|
2397
|
+
if isinstance(_params['as_at'], datetime):
|
2398
|
+
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
2399
|
+
else:
|
2400
|
+
_query_params.append(('asAt', _params['as_at']))
|
2401
|
+
|
2402
|
+
if _params.get('page') is not None: # noqa: E501
|
2403
|
+
_query_params.append(('page', _params['page']))
|
2404
|
+
|
2405
|
+
if _params.get('limit') is not None: # noqa: E501
|
2406
|
+
_query_params.append(('limit', _params['limit']))
|
2407
|
+
|
2408
|
+
if _params.get('filter') is not None: # noqa: E501
|
2409
|
+
_query_params.append(('filter', _params['filter']))
|
2410
|
+
|
2411
|
+
if _params.get('property_keys') is not None: # noqa: E501
|
2412
|
+
_query_params.append(('propertyKeys', _params['property_keys']))
|
2413
|
+
_collection_formats['propertyKeys'] = 'multi'
|
2414
|
+
|
2415
|
+
# process the header parameters
|
2416
|
+
_header_params = dict(_params.get('_headers', {}))
|
2417
|
+
# process the form parameters
|
2418
|
+
_form_params = []
|
2419
|
+
_files = {}
|
2420
|
+
# process the body parameter
|
2421
|
+
_body_params = None
|
2422
|
+
# set the HTTP header `Accept`
|
2423
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2424
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
2425
|
+
|
2426
|
+
# authentication setting
|
2427
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
2428
|
+
|
2429
|
+
_response_types_map = {
|
2430
|
+
'200': "PagedResourceListOfValuationPointOverview",
|
2431
|
+
'400': "LusidValidationProblemDetails",
|
2432
|
+
}
|
2433
|
+
|
2434
|
+
return self.api_client.call_api(
|
2435
|
+
'/api/funds/{scope}/{code}/valuationPointOverview', 'GET',
|
2436
|
+
_path_params,
|
2437
|
+
_query_params,
|
2438
|
+
_header_params,
|
2439
|
+
body=_body_params,
|
2440
|
+
post_params=_form_params,
|
2441
|
+
files=_files,
|
2442
|
+
response_types_map=_response_types_map,
|
2443
|
+
auth_settings=_auth_settings,
|
2444
|
+
async_req=_params.get('async_req'),
|
2445
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2446
|
+
_preload_content=_params.get('_preload_content', True),
|
2447
|
+
_request_timeout=_params.get('_request_timeout'),
|
2448
|
+
collection_formats=_collection_formats,
|
2449
|
+
_request_auth=_params.get('_request_auth'))
|
2450
|
+
|
2239
2451
|
@overload
|
2240
2452
|
async def patch_fee(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.")], fee_code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fee.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902.")], **kwargs) -> Fee: # noqa: E501
|
2241
2453
|
...
|