lusid-sdk 2.1.401__py3-none-any.whl → 2.1.423__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.
Files changed (77) hide show
  1. lusid/__init__.py +44 -12
  2. lusid/api/__init__.py +2 -2
  3. lusid/api/abor_api.py +8 -16
  4. lusid/api/allocations_api.py +2 -2
  5. lusid/api/chart_of_accounts_api.py +174 -0
  6. lusid/api/custom_entities_api.py +2 -2
  7. lusid/api/entities_api.py +180 -0
  8. lusid/api/{fund_configurations_api.py → fund_configuration_entities_api.py} +1 -1
  9. lusid/api/group_reconciliations_api.py +1418 -27
  10. lusid/api/instruments_api.py +6 -6
  11. lusid/api/legal_entities_api.py +4 -4
  12. lusid/api/order_graph_api.py +4 -4
  13. lusid/api/order_management_api.py +25 -12
  14. lusid/api/persons_api.py +4 -4
  15. lusid/api/portfolios_api.py +27 -30
  16. lusid/api/reference_lists_api.py +2 -2
  17. lusid/api/reference_portfolio_api.py +176 -0
  18. lusid/api/transaction_portfolios_api.py +2 -2
  19. lusid/configuration.py +1 -1
  20. lusid/models/__init__.py +42 -10
  21. lusid/models/access_metadata_value.py +1 -1
  22. lusid/models/address_key_list.py +3 -3
  23. lusid/models/amount.py +69 -0
  24. lusid/models/batch_upsert_portfolio_access_metadata_request.py +27 -17
  25. lusid/models/batch_upsert_portfolio_access_metadata_response.py +56 -16
  26. lusid/models/{metadata_key_value.py → batch_upsert_portfolio_access_metadata_response_item.py} +15 -9
  27. lusid/models/{component_rule.py → break_code_source.py} +17 -21
  28. lusid/models/change_interval_with_order_management_detail.py +137 -0
  29. lusid/models/create_group_reconciliation_definition_request.py +113 -0
  30. lusid/models/custom_entity_entity.py +146 -0
  31. lusid/models/decimal_list.py +3 -3
  32. lusid/models/diary_entry_request.py +10 -1
  33. lusid/models/fixed_schedule.py +3 -3
  34. lusid/models/float_schedule.py +4 -4
  35. lusid/models/flow_conventions.py +7 -1
  36. lusid/models/fund_configuration.py +44 -17
  37. lusid/models/fund_configuration_request.py +31 -19
  38. lusid/models/fund_id_list.py +99 -0
  39. lusid/models/group_reconciliation_aggregate_attribute_rule.py +2 -2
  40. lusid/models/group_reconciliation_aggregate_comparison_rule_operand.py +1 -1
  41. lusid/models/group_reconciliation_core_comparison_rule_operand.py +1 -1
  42. lusid/models/group_reconciliation_definition.py +136 -0
  43. lusid/models/group_reconciliation_definition_comparison_ruleset_ids.py +83 -0
  44. lusid/models/group_reconciliation_definition_currencies.py +71 -0
  45. lusid/models/group_reconciliation_definition_portfolio_entity_ids.py +86 -0
  46. lusid/models/group_reconciliation_definition_recipe_ids.py +78 -0
  47. lusid/models/instrument.py +7 -1
  48. lusid/models/instrument_definition.py +8 -2
  49. lusid/models/instrument_list.py +3 -3
  50. lusid/models/market_data_key_rule.py +5 -3
  51. lusid/models/market_data_specific_rule.py +5 -3
  52. lusid/models/merger_event.py +19 -19
  53. lusid/models/output_transaction.py +9 -2
  54. lusid/models/paged_resource_list_of_group_reconciliation_comparison_ruleset.py +113 -0
  55. lusid/models/paged_resource_list_of_group_reconciliation_definition.py +113 -0
  56. lusid/models/portfolio_group_id_list.py +3 -3
  57. lusid/models/portfolio_id_list.py +3 -3
  58. lusid/models/property_list.py +3 -3
  59. lusid/models/reference_list.py +6 -5
  60. lusid/models/reference_list_type.py +1 -0
  61. lusid/models/{resource_list_of_entity_change_item.py → resource_list_of_change_interval_with_order_management_detail.py} +11 -11
  62. lusid/models/settlement_cycle.py +79 -0
  63. lusid/models/share_class_dealing_breakdown.py +3 -2
  64. lusid/models/stock_dividend_event.py +17 -3
  65. lusid/models/string_list.py +3 -3
  66. lusid/models/transaction.py +9 -2
  67. lusid/models/transaction_date_windows.py +85 -0
  68. lusid/models/transaction_request.py +9 -2
  69. lusid/models/update_group_reconciliation_comparison_ruleset_request.py +91 -0
  70. lusid/models/update_group_reconciliation_definition_request.py +107 -0
  71. lusid/models/upsert_reference_portfolio_constituent_properties_request.py +84 -0
  72. lusid/models/upsert_reference_portfolio_constituent_properties_response.py +115 -0
  73. {lusid_sdk-2.1.401.dist-info → lusid_sdk-2.1.423.dist-info}/METADATA +54 -27
  74. {lusid_sdk-2.1.401.dist-info → lusid_sdk-2.1.423.dist-info}/RECORD +75 -59
  75. lusid/models/entity_change_item.py +0 -121
  76. lusid/models/metadata_key_value_response.py +0 -86
  77. {lusid_sdk-2.1.401.dist-info → lusid_sdk-2.1.423.dist-info}/WHEEL +0 -0
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.custom_entity_entity import CustomEntityEntity
29
30
  from lusid.models.data_type_entity import DataTypeEntity
30
31
  from lusid.models.instrument_entity import InstrumentEntity
31
32
  from lusid.models.portfolio_entity import PortfolioEntity
@@ -52,6 +53,185 @@ class EntitiesApi:
52
53
  api_client = ApiClient.get_default()
53
54
  self.api_client = api_client
54
55
 
56
+ @overload
57
+ async def get_custom_entity_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 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
58
+ ...
59
+
60
+ @overload
61
+ def get_custom_entity_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 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
62
+ ...
63
+
64
+ @validate_arguments
65
+ def get_custom_entity_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 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
66
+ """[EXPERIMENTAL] GetCustomEntityByEntityUniqueId: Get a Custom Entity instance by its EntityUniqueId # noqa: E501
67
+
68
+ 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
69
+ This method makes a synchronous HTTP request by default. To make an
70
+ asynchronous HTTP request, please pass async_req=True
71
+
72
+ >>> thread = api.get_custom_entity_by_entity_unique_id(entity_unique_id, effective_at, as_at, previews, async_req=True)
73
+ >>> result = thread.get()
74
+
75
+ :param entity_unique_id: The universally unique identifier of the Custom Entity. (required)
76
+ :type entity_unique_id: str
77
+ :param effective_at: The effective datetime or cut label at which to retrieve the Custom Entity. Defaults to the current LUSID system datetime if not specified.
78
+ :type effective_at: str
79
+ :param as_at: The asAt datetime at which to retrieve the Custom Entity. Defaults to returning the latest version of the Custom Entity if not specified.
80
+ :type as_at: datetime
81
+ :param previews: The ids of the staged modifications to be previewed in the response.
82
+ :type previews: List[str]
83
+ :param async_req: Whether to execute the request asynchronously.
84
+ :type async_req: bool, optional
85
+ :param _request_timeout: timeout setting for this request.
86
+ If one number provided, it will be total request
87
+ timeout. It can also be a pair (tuple) of
88
+ (connection, read) timeouts.
89
+ :return: Returns the result object.
90
+ If the method is called asynchronously,
91
+ returns the request thread.
92
+ :rtype: CustomEntityEntity
93
+ """
94
+ kwargs['_return_http_data_only'] = True
95
+ if '_preload_content' in kwargs:
96
+ message = "Error! Please call the get_custom_entity_by_entity_unique_id_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
97
+ raise ValueError(message)
98
+ if async_req is not None:
99
+ kwargs['async_req'] = async_req
100
+ return self.get_custom_entity_by_entity_unique_id_with_http_info(entity_unique_id, effective_at, as_at, previews, **kwargs) # noqa: E501
101
+
102
+ @validate_arguments
103
+ def get_custom_entity_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 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
104
+ """[EXPERIMENTAL] GetCustomEntityByEntityUniqueId: Get a Custom Entity instance by its EntityUniqueId # noqa: E501
105
+
106
+ 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
107
+ This method makes a synchronous HTTP request by default. To make an
108
+ asynchronous HTTP request, please pass async_req=True
109
+
110
+ >>> thread = api.get_custom_entity_by_entity_unique_id_with_http_info(entity_unique_id, effective_at, as_at, previews, async_req=True)
111
+ >>> result = thread.get()
112
+
113
+ :param entity_unique_id: The universally unique identifier of the Custom Entity. (required)
114
+ :type entity_unique_id: str
115
+ :param effective_at: The effective datetime or cut label at which to retrieve the Custom Entity. Defaults to the current LUSID system datetime if not specified.
116
+ :type effective_at: str
117
+ :param as_at: The asAt datetime at which to retrieve the Custom Entity. Defaults to returning the latest version of the Custom Entity if not specified.
118
+ :type as_at: datetime
119
+ :param previews: The ids of the staged modifications to be previewed in the response.
120
+ :type previews: List[str]
121
+ :param async_req: Whether to execute the request asynchronously.
122
+ :type async_req: bool, optional
123
+ :param _preload_content: if False, the ApiResponse.data will
124
+ be set to none and raw_data will store the
125
+ HTTP response body without reading/decoding.
126
+ Default is True.
127
+ :type _preload_content: bool, optional
128
+ :param _return_http_data_only: response data instead of ApiResponse
129
+ object with status code, headers, etc
130
+ :type _return_http_data_only: bool, optional
131
+ :param _request_timeout: timeout setting for this request. If one
132
+ number provided, it will be total request
133
+ timeout. It can also be a pair (tuple) of
134
+ (connection, read) timeouts.
135
+ :param _request_auth: set to override the auth_settings for an a single
136
+ request; this effectively ignores the authentication
137
+ in the spec for a single request.
138
+ :type _request_auth: dict, optional
139
+ :type _content_type: string, optional: force content-type for the request
140
+ :return: Returns the result object.
141
+ If the method is called asynchronously,
142
+ returns the request thread.
143
+ :rtype: tuple(CustomEntityEntity, status_code(int), headers(HTTPHeaderDict))
144
+ """
145
+
146
+ _params = locals()
147
+
148
+ _all_params = [
149
+ 'entity_unique_id',
150
+ 'effective_at',
151
+ 'as_at',
152
+ 'previews'
153
+ ]
154
+ _all_params.extend(
155
+ [
156
+ 'async_req',
157
+ '_return_http_data_only',
158
+ '_preload_content',
159
+ '_request_timeout',
160
+ '_request_auth',
161
+ '_content_type',
162
+ '_headers'
163
+ ]
164
+ )
165
+
166
+ # validate the arguments
167
+ for _key, _val in _params['kwargs'].items():
168
+ if _key not in _all_params:
169
+ raise ApiTypeError(
170
+ "Got an unexpected keyword argument '%s'"
171
+ " to method get_custom_entity_by_entity_unique_id" % _key
172
+ )
173
+ _params[_key] = _val
174
+ del _params['kwargs']
175
+
176
+ _collection_formats = {}
177
+
178
+ # process the path parameters
179
+ _path_params = {}
180
+ if _params['entity_unique_id']:
181
+ _path_params['entityUniqueId'] = _params['entity_unique_id']
182
+
183
+
184
+ # process the query parameters
185
+ _query_params = []
186
+ if _params.get('effective_at') is not None: # noqa: E501
187
+ _query_params.append(('effectiveAt', _params['effective_at']))
188
+
189
+ if _params.get('as_at') is not None: # noqa: E501
190
+ if isinstance(_params['as_at'], datetime):
191
+ _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
192
+ else:
193
+ _query_params.append(('asAt', _params['as_at']))
194
+
195
+ if _params.get('previews') is not None: # noqa: E501
196
+ _query_params.append(('previews', _params['previews']))
197
+ _collection_formats['previews'] = 'multi'
198
+
199
+ # process the header parameters
200
+ _header_params = dict(_params.get('_headers', {}))
201
+ # process the form parameters
202
+ _form_params = []
203
+ _files = {}
204
+ # process the body parameter
205
+ _body_params = None
206
+ # set the HTTP header `Accept`
207
+ _header_params['Accept'] = self.api_client.select_header_accept(
208
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
209
+
210
+ # authentication setting
211
+ _auth_settings = ['oauth2'] # noqa: E501
212
+
213
+ _response_types_map = {
214
+ '200': "CustomEntityEntity",
215
+ '400': "LusidValidationProblemDetails",
216
+ }
217
+
218
+ return self.api_client.call_api(
219
+ '/api/entities/customentities/{entityUniqueId}', 'GET',
220
+ _path_params,
221
+ _query_params,
222
+ _header_params,
223
+ body=_body_params,
224
+ post_params=_form_params,
225
+ files=_files,
226
+ response_types_map=_response_types_map,
227
+ auth_settings=_auth_settings,
228
+ async_req=_params.get('async_req'),
229
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
230
+ _preload_content=_params.get('_preload_content', True),
231
+ _request_timeout=_params.get('_request_timeout'),
232
+ collection_formats=_collection_formats,
233
+ _request_auth=_params.get('_request_auth'))
234
+
55
235
  @overload
56
236
  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
237
  ...
@@ -41,7 +41,7 @@ from lusid.exceptions import ( # noqa: F401
41
41
  )
42
42
 
43
43
 
44
- class FundConfigurationsApi:
44
+ class FundConfigurationEntitiesApi:
45
45
  """NOTE: This class is auto generated by OpenAPI Generator
46
46
  Ref: https://openapi-generator.tech
47
47