lusid-sdk 2.1.435__py3-none-any.whl → 2.1.449__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 (180) hide show
  1. lusid/__init__.py +18 -0
  2. lusid/api/abor_api.py +118 -117
  3. lusid/api/abor_configuration_api.py +46 -45
  4. lusid/api/address_key_definition_api.py +28 -27
  5. lusid/api/aggregation_api.py +37 -36
  6. lusid/api/allocations_api.py +37 -36
  7. lusid/api/amortisation_rule_sets_api.py +55 -54
  8. lusid/api/application_metadata_api.py +28 -27
  9. lusid/api/blocks_api.py +37 -36
  10. lusid/api/calendars_api.py +127 -126
  11. lusid/api/chart_of_accounts_api.py +289 -288
  12. lusid/api/complex_market_data_api.py +37 -36
  13. lusid/api/compliance_api.py +136 -135
  14. lusid/api/configuration_recipe_api.py +100 -99
  15. lusid/api/conventions_api.py +109 -108
  16. lusid/api/corporate_action_sources_api.py +82 -81
  17. lusid/api/counterparties_api.py +73 -72
  18. lusid/api/custom_entities_api.py +100 -99
  19. lusid/api/custom_entity_definitions_api.py +37 -36
  20. lusid/api/custom_entity_types_api.py +37 -36
  21. lusid/api/cut_label_definitions_api.py +46 -45
  22. lusid/api/data_types_api.py +82 -81
  23. lusid/api/derived_transaction_portfolios_api.py +19 -18
  24. lusid/api/entities_api.py +260 -55
  25. lusid/api/executions_api.py +37 -36
  26. lusid/api/fee_types_api.py +55 -54
  27. lusid/api/fund_configuration_api.py +221 -45
  28. lusid/api/funds_api.py +163 -162
  29. lusid/api/group_reconciliations_api.py +91 -90
  30. lusid/api/instrument_event_types_api.py +64 -63
  31. lusid/api/instrument_events_api.py +46 -45
  32. lusid/api/instruments_api.py +181 -180
  33. lusid/api/legacy_compliance_api.py +73 -72
  34. lusid/api/legal_entities_api.py +163 -162
  35. lusid/api/order_graph_api.py +28 -27
  36. lusid/api/order_instructions_api.py +37 -36
  37. lusid/api/order_management_api.py +91 -90
  38. lusid/api/orders_api.py +37 -36
  39. lusid/api/packages_api.py +37 -36
  40. lusid/api/participations_api.py +37 -36
  41. lusid/api/persons_api.py +163 -162
  42. lusid/api/placements_api.py +37 -36
  43. lusid/api/portfolio_groups_api.py +235 -234
  44. lusid/api/portfolios_api.py +280 -279
  45. lusid/api/property_definitions_api.py +100 -99
  46. lusid/api/queryable_keys_api.py +10 -9
  47. lusid/api/quotes_api.py +82 -81
  48. lusid/api/reconciliations_api.py +136 -135
  49. lusid/api/reference_lists_api.py +37 -36
  50. lusid/api/reference_portfolio_api.py +46 -45
  51. lusid/api/relation_definitions_api.py +28 -27
  52. lusid/api/relations_api.py +19 -18
  53. lusid/api/relationship_definitions_api.py +46 -45
  54. lusid/api/relationships_api.py +19 -18
  55. lusid/api/schemas_api.py +37 -36
  56. lusid/api/scopes_api.py +19 -18
  57. lusid/api/scripted_translation_api.py +73 -72
  58. lusid/api/search_api.py +37 -36
  59. lusid/api/sequences_api.py +37 -36
  60. lusid/api/staged_modifications_api.py +37 -36
  61. lusid/api/staging_rule_set_api.py +46 -45
  62. lusid/api/structured_result_data_api.py +82 -81
  63. lusid/api/system_configuration_api.py +64 -63
  64. lusid/api/tax_rule_sets_api.py +46 -45
  65. lusid/api/transaction_configuration_api.py +100 -99
  66. lusid/api/transaction_fees_api.py +46 -45
  67. lusid/api/transaction_portfolios_api.py +325 -324
  68. lusid/api/translation_api.py +19 -18
  69. lusid/api/workspace_api.py +181 -180
  70. lusid/api_client.py +26 -17
  71. lusid/configuration.py +87 -2
  72. lusid/extensions/api_client.py +25 -17
  73. lusid/extensions/api_client_factory.py +14 -5
  74. lusid/extensions/api_configuration.py +50 -1
  75. lusid/extensions/configuration_loaders.py +39 -11
  76. lusid/extensions/configuration_options.py +67 -0
  77. lusid/extensions/rest.py +78 -26
  78. lusid/extensions/retry.py +109 -37
  79. lusid/models/__init__.py +18 -0
  80. lusid/models/accounting_method.py +7 -0
  81. lusid/models/accumulation_event.py +3 -3
  82. lusid/models/amortisation_event.py +3 -3
  83. lusid/models/basket.py +3 -3
  84. lusid/models/bond.py +3 -3
  85. lusid/models/bond_coupon_event.py +3 -3
  86. lusid/models/bond_default_event.py +3 -3
  87. lusid/models/bond_principal_event.py +3 -3
  88. lusid/models/bonus_issue_event.py +166 -0
  89. lusid/models/cap_floor.py +3 -3
  90. lusid/models/capital_distribution_event.py +3 -3
  91. lusid/models/cash.py +3 -3
  92. lusid/models/cash_dividend_event.py +3 -3
  93. lusid/models/cash_flow_event.py +3 -3
  94. lusid/models/cash_perpetual.py +3 -3
  95. lusid/models/cds_credit_event.py +3 -3
  96. lusid/models/cds_index.py +3 -3
  97. lusid/models/cdx_credit_event.py +3 -3
  98. lusid/models/change_interval.py +123 -0
  99. lusid/models/change_interval_with_order_management_detail.py +3 -3
  100. lusid/models/close_event.py +3 -3
  101. lusid/models/complex_bond.py +3 -3
  102. lusid/models/contract_for_difference.py +3 -3
  103. lusid/models/create_derived_transaction_portfolio_request.py +3 -3
  104. lusid/models/create_transaction_portfolio_request.py +3 -3
  105. lusid/models/credit_default_swap.py +3 -3
  106. lusid/models/credit_premium_cash_flow_event.py +3 -3
  107. lusid/models/dividend_option_event.py +3 -3
  108. lusid/models/dividend_reinvestment_event.py +3 -3
  109. lusid/models/effective_range.py +71 -0
  110. lusid/models/equity.py +3 -3
  111. lusid/models/equity_option.py +3 -3
  112. lusid/models/equity_swap.py +3 -3
  113. lusid/models/exchange_traded_option.py +3 -3
  114. lusid/models/exercise_event.py +3 -3
  115. lusid/models/exotic_instrument.py +3 -3
  116. lusid/models/expiry_event.py +3 -3
  117. lusid/models/fixed_leg.py +3 -3
  118. lusid/models/flexible_loan.py +3 -3
  119. lusid/models/floating_leg.py +3 -3
  120. lusid/models/forward_rate_agreement.py +3 -3
  121. lusid/models/fund_share_class.py +23 -8
  122. lusid/models/funding_leg.py +3 -3
  123. lusid/models/future.py +3 -3
  124. lusid/models/future_expiry_event.py +3 -3
  125. lusid/models/fx_forward.py +3 -3
  126. lusid/models/fx_forward_settlement_event.py +3 -3
  127. lusid/models/fx_option.py +3 -3
  128. lusid/models/fx_swap.py +3 -3
  129. lusid/models/inflation_leg.py +3 -3
  130. lusid/models/inflation_linked_bond.py +3 -3
  131. lusid/models/inflation_swap.py +3 -3
  132. lusid/models/informational_error_event.py +3 -3
  133. lusid/models/informational_event.py +3 -3
  134. lusid/models/instrument_event.py +8 -5
  135. lusid/models/instrument_event_holder.py +9 -1
  136. lusid/models/instrument_event_type.py +3 -0
  137. lusid/models/instrument_leg.py +3 -3
  138. lusid/models/instrument_type.py +1 -0
  139. lusid/models/interest_rate_swap.py +3 -3
  140. lusid/models/interest_rate_swaption.py +3 -3
  141. lusid/models/lapse_election.py +73 -0
  142. lusid/models/lusid_instrument.py +6 -5
  143. lusid/models/mastered_instrument.py +139 -0
  144. lusid/models/maturity_event.py +3 -3
  145. lusid/models/mbs_coupon_event.py +3 -3
  146. lusid/models/mbs_interest_deferral_event.py +97 -0
  147. lusid/models/mbs_principal_event.py +3 -3
  148. lusid/models/mbs_principal_write_off_event.py +97 -0
  149. lusid/models/merger_event.py +3 -3
  150. lusid/models/open_event.py +3 -3
  151. lusid/models/portfolio.py +3 -3
  152. lusid/models/portfolio_details.py +3 -3
  153. lusid/models/portfolio_without_href.py +3 -3
  154. lusid/models/raw_vendor_event.py +3 -3
  155. lusid/models/reference_instrument.py +3 -3
  156. lusid/models/repo.py +3 -3
  157. lusid/models/reset_event.py +3 -3
  158. lusid/models/resource_list_of_change_interval.py +113 -0
  159. lusid/models/reverse_stock_split_event.py +3 -3
  160. lusid/models/scrip_dividend_event.py +3 -3
  161. lusid/models/share_class_details.py +18 -1
  162. lusid/models/simple_cash_flow_loan.py +3 -3
  163. lusid/models/simple_instrument.py +3 -3
  164. lusid/models/simple_rounding_convention.py +76 -0
  165. lusid/models/spin_off_event.py +3 -3
  166. lusid/models/staged_modification_effective_range.py +2 -2
  167. lusid/models/stock_dividend_event.py +3 -3
  168. lusid/models/stock_split_event.py +3 -3
  169. lusid/models/swap_cash_flow_event.py +3 -3
  170. lusid/models/swap_principal_event.py +3 -3
  171. lusid/models/term_deposit.py +3 -3
  172. lusid/models/total_return_swap.py +3 -3
  173. lusid/models/transition_event.py +3 -3
  174. lusid/models/trigger_event.py +3 -3
  175. lusid/models/valuation_point_data_query_parameters.py +3 -3
  176. lusid/models/valuation_point_data_response.py +8 -13
  177. lusid/rest.py +70 -20
  178. {lusid_sdk-2.1.435.dist-info → lusid_sdk-2.1.449.dist-info}/METADATA +12 -1
  179. {lusid_sdk-2.1.435.dist-info → lusid_sdk-2.1.449.dist-info}/RECORD +180 -170
  180. {lusid_sdk-2.1.435.dist-info → lusid_sdk-2.1.449.dist-info}/WHEEL +0 -0
lusid/api/entities_api.py CHANGED
@@ -22,7 +22,7 @@ from typing import overload, Optional, Union, Awaitable
22
22
  from typing_extensions import Annotated
23
23
  from datetime import datetime
24
24
 
25
- from pydantic.v1 import Field, StrictStr, conlist, constr, validator
25
+ from pydantic.v1 import Field, StrictStr, conint, conlist, constr, validator
26
26
 
27
27
  from typing import Optional
28
28
 
@@ -32,6 +32,7 @@ from lusid.models.instrument_entity import InstrumentEntity
32
32
  from lusid.models.portfolio_entity import PortfolioEntity
33
33
  from lusid.models.property_definition_entity import PropertyDefinitionEntity
34
34
  from lusid.models.resource_list_of_change import ResourceListOfChange
35
+ from lusid.models.resource_list_of_change_interval import ResourceListOfChangeInterval
35
36
 
36
37
  from lusid.api_client import ApiClient
37
38
  from lusid.api_response import ApiResponse
@@ -39,6 +40,7 @@ from lusid.exceptions import ( # noqa: F401
39
40
  ApiTypeError,
40
41
  ApiValueError
41
42
  )
43
+ from lusid.extensions.configuration_options import ConfigurationOptions
42
44
 
43
45
 
44
46
  class EntitiesApi:
@@ -82,10 +84,9 @@ class EntitiesApi:
82
84
  :type previews: List[str]
83
85
  :param async_req: Whether to execute the request asynchronously.
84
86
  :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.
87
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
88
+ :param opts: Configuration options for this request
89
+ :type opts: ConfigurationOptions, optional
89
90
  :return: Returns the result object.
90
91
  If the method is called asynchronously,
91
92
  returns the request thread.
@@ -128,10 +129,9 @@ class EntitiesApi:
128
129
  :param _return_http_data_only: response data instead of ApiResponse
129
130
  object with status code, headers, etc
130
131
  :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.
132
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
133
+ :param opts: Configuration options for this request
134
+ :type opts: ConfigurationOptions, optional
135
135
  :param _request_auth: set to override the auth_settings for an a single
136
136
  request; this effectively ignores the authentication
137
137
  in the spec for a single request.
@@ -159,7 +159,8 @@ class EntitiesApi:
159
159
  '_request_timeout',
160
160
  '_request_auth',
161
161
  '_content_type',
162
- '_headers'
162
+ '_headers',
163
+ 'opts'
163
164
  ]
164
165
  )
165
166
 
@@ -229,6 +230,7 @@ class EntitiesApi:
229
230
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
230
231
  _preload_content=_params.get('_preload_content', True),
231
232
  _request_timeout=_params.get('_request_timeout'),
233
+ opts=_params.get('opts'),
232
234
  collection_formats=_collection_formats,
233
235
  _request_auth=_params.get('_request_auth'))
234
236
 
@@ -259,10 +261,9 @@ class EntitiesApi:
259
261
  :type previews: List[str]
260
262
  :param async_req: Whether to execute the request asynchronously.
261
263
  :type async_req: bool, optional
262
- :param _request_timeout: timeout setting for this request.
263
- If one number provided, it will be total request
264
- timeout. It can also be a pair (tuple) of
265
- (connection, read) timeouts.
264
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
265
+ :param opts: Configuration options for this request
266
+ :type opts: ConfigurationOptions, optional
266
267
  :return: Returns the result object.
267
268
  If the method is called asynchronously,
268
269
  returns the request thread.
@@ -303,10 +304,9 @@ class EntitiesApi:
303
304
  :param _return_http_data_only: response data instead of ApiResponse
304
305
  object with status code, headers, etc
305
306
  :type _return_http_data_only: bool, optional
306
- :param _request_timeout: timeout setting for this request. If one
307
- number provided, it will be total request
308
- timeout. It can also be a pair (tuple) of
309
- (connection, read) timeouts.
307
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
308
+ :param opts: Configuration options for this request
309
+ :type opts: ConfigurationOptions, optional
310
310
  :param _request_auth: set to override the auth_settings for an a single
311
311
  request; this effectively ignores the authentication
312
312
  in the spec for a single request.
@@ -333,7 +333,8 @@ class EntitiesApi:
333
333
  '_request_timeout',
334
334
  '_request_auth',
335
335
  '_content_type',
336
- '_headers'
336
+ '_headers',
337
+ 'opts'
337
338
  ]
338
339
  )
339
340
 
@@ -400,6 +401,210 @@ class EntitiesApi:
400
401
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
401
402
  _preload_content=_params.get('_preload_content', True),
402
403
  _request_timeout=_params.get('_request_timeout'),
404
+ opts=_params.get('opts'),
405
+ collection_formats=_collection_formats,
406
+ _request_auth=_params.get('_request_auth'))
407
+
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=40, min_length=30), 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
+ ...
411
+
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=40, min_length=30), 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
+ ...
415
+
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=40, min_length=30), 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
+ """[EXPERIMENTAL] GetEntityHistory: List an entity's history information # noqa: E501
419
+
420
+ Retrieve a page of an entity's change history up to a particular point in AsAt time. # noqa: E501
421
+ This method makes a synchronous HTTP request by default. To make an
422
+ asynchronous HTTP request, please pass async_req=True
423
+
424
+ >>> thread = api.get_entity_history(entity_type, entity_unique_id, as_at, page, limit, filter, sort_by, async_req=True)
425
+ >>> result = thread.get()
426
+
427
+ :param entity_type: The type of the entity to list the change history for. (required)
428
+ :type entity_type: str
429
+ :param entity_unique_id: The universally unique identifier of the entity. (required)
430
+ :type entity_unique_id: str
431
+ :param as_at: The asAt datetime at which to list change history information. Defaults to return the change history at the latest datetime if not specified.
432
+ :type as_at: datetime
433
+ :param page: 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.
434
+ :type page: str
435
+ :param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
436
+ :type limit: int
437
+ :param filter: Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
438
+ :type filter: str
439
+ :param sort_by: A list of field names suffixed by \" ASC\" or \" DESC\"
440
+ :type sort_by: List[str]
441
+ :param async_req: Whether to execute the request asynchronously.
442
+ :type async_req: bool, optional
443
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
444
+ :param opts: Configuration options for this request
445
+ :type opts: ConfigurationOptions, optional
446
+ :return: Returns the result object.
447
+ If the method is called asynchronously,
448
+ returns the request thread.
449
+ :rtype: ResourceListOfChangeInterval
450
+ """
451
+ kwargs['_return_http_data_only'] = True
452
+ if '_preload_content' in kwargs:
453
+ message = "Error! Please call the get_entity_history_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
454
+ raise ValueError(message)
455
+ if async_req is not None:
456
+ kwargs['async_req'] = async_req
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
+
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=40, min_length=30), 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
+ """[EXPERIMENTAL] GetEntityHistory: List an entity's history information # noqa: E501
462
+
463
+ Retrieve a page of an entity's change history up to a particular point in AsAt time. # noqa: E501
464
+ This method makes a synchronous HTTP request by default. To make an
465
+ asynchronous HTTP request, please pass async_req=True
466
+
467
+ >>> thread = api.get_entity_history_with_http_info(entity_type, entity_unique_id, as_at, page, limit, filter, sort_by, async_req=True)
468
+ >>> result = thread.get()
469
+
470
+ :param entity_type: The type of the entity to list the change history for. (required)
471
+ :type entity_type: str
472
+ :param entity_unique_id: The universally unique identifier of the entity. (required)
473
+ :type entity_unique_id: str
474
+ :param as_at: The asAt datetime at which to list change history information. Defaults to return the change history at the latest datetime if not specified.
475
+ :type as_at: datetime
476
+ :param page: 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.
477
+ :type page: str
478
+ :param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
479
+ :type limit: int
480
+ :param filter: Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
481
+ :type filter: str
482
+ :param sort_by: A list of field names suffixed by \" ASC\" or \" DESC\"
483
+ :type sort_by: List[str]
484
+ :param async_req: Whether to execute the request asynchronously.
485
+ :type async_req: bool, optional
486
+ :param _preload_content: if False, the ApiResponse.data will
487
+ be set to none and raw_data will store the
488
+ HTTP response body without reading/decoding.
489
+ Default is True.
490
+ :type _preload_content: bool, optional
491
+ :param _return_http_data_only: response data instead of ApiResponse
492
+ object with status code, headers, etc
493
+ :type _return_http_data_only: bool, optional
494
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
495
+ :param opts: Configuration options for this request
496
+ :type opts: ConfigurationOptions, optional
497
+ :param _request_auth: set to override the auth_settings for an a single
498
+ request; this effectively ignores the authentication
499
+ in the spec for a single request.
500
+ :type _request_auth: dict, optional
501
+ :type _content_type: string, optional: force content-type for the request
502
+ :return: Returns the result object.
503
+ If the method is called asynchronously,
504
+ returns the request thread.
505
+ :rtype: tuple(ResourceListOfChangeInterval, status_code(int), headers(HTTPHeaderDict))
506
+ """
507
+
508
+ _params = locals()
509
+
510
+ _all_params = [
511
+ 'entity_type',
512
+ 'entity_unique_id',
513
+ 'as_at',
514
+ 'page',
515
+ 'limit',
516
+ 'filter',
517
+ 'sort_by'
518
+ ]
519
+ _all_params.extend(
520
+ [
521
+ 'async_req',
522
+ '_return_http_data_only',
523
+ '_preload_content',
524
+ '_request_timeout',
525
+ '_request_auth',
526
+ '_content_type',
527
+ '_headers',
528
+ 'opts'
529
+ ]
530
+ )
531
+
532
+ # validate the arguments
533
+ for _key, _val in _params['kwargs'].items():
534
+ if _key not in _all_params:
535
+ raise ApiTypeError(
536
+ "Got an unexpected keyword argument '%s'"
537
+ " to method get_entity_history" % _key
538
+ )
539
+ _params[_key] = _val
540
+ del _params['kwargs']
541
+
542
+ _collection_formats = {}
543
+
544
+ # process the path parameters
545
+ _path_params = {}
546
+ if _params['entity_type']:
547
+ _path_params['entityType'] = _params['entity_type']
548
+
549
+ if _params['entity_unique_id']:
550
+ _path_params['entityUniqueId'] = _params['entity_unique_id']
551
+
552
+
553
+ # process the query parameters
554
+ _query_params = []
555
+ if _params.get('as_at') is not None: # noqa: E501
556
+ if isinstance(_params['as_at'], datetime):
557
+ _query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
558
+ else:
559
+ _query_params.append(('asAt', _params['as_at']))
560
+
561
+ if _params.get('page') is not None: # noqa: E501
562
+ _query_params.append(('page', _params['page']))
563
+
564
+ if _params.get('limit') is not None: # noqa: E501
565
+ _query_params.append(('limit', _params['limit']))
566
+
567
+ if _params.get('filter') is not None: # noqa: E501
568
+ _query_params.append(('filter', _params['filter']))
569
+
570
+ if _params.get('sort_by') is not None: # noqa: E501
571
+ _query_params.append(('sortBy', _params['sort_by']))
572
+ _collection_formats['sortBy'] = 'multi'
573
+
574
+ # process the header parameters
575
+ _header_params = dict(_params.get('_headers', {}))
576
+ # process the form parameters
577
+ _form_params = []
578
+ _files = {}
579
+ # process the body parameter
580
+ _body_params = None
581
+ # set the HTTP header `Accept`
582
+ _header_params['Accept'] = self.api_client.select_header_accept(
583
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
584
+
585
+ # authentication setting
586
+ _auth_settings = ['oauth2'] # noqa: E501
587
+
588
+ _response_types_map = {
589
+ '200': "ResourceListOfChangeInterval",
590
+ '400': "LusidValidationProblemDetails",
591
+ }
592
+
593
+ return self.api_client.call_api(
594
+ '/api/entities/{entityType}/{entityUniqueId}/history', 'GET',
595
+ _path_params,
596
+ _query_params,
597
+ _header_params,
598
+ body=_body_params,
599
+ post_params=_form_params,
600
+ files=_files,
601
+ response_types_map=_response_types_map,
602
+ auth_settings=_auth_settings,
603
+ async_req=_params.get('async_req'),
604
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
605
+ _preload_content=_params.get('_preload_content', True),
606
+ _request_timeout=_params.get('_request_timeout'),
607
+ opts=_params.get('opts'),
403
608
  collection_formats=_collection_formats,
404
609
  _request_auth=_params.get('_request_auth'))
405
610
 
@@ -432,10 +637,9 @@ class EntitiesApi:
432
637
  :type previews: List[str]
433
638
  :param async_req: Whether to execute the request asynchronously.
434
639
  :type async_req: bool, optional
435
- :param _request_timeout: timeout setting for this request.
436
- If one number provided, it will be total request
437
- timeout. It can also be a pair (tuple) of
438
- (connection, read) timeouts.
640
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
641
+ :param opts: Configuration options for this request
642
+ :type opts: ConfigurationOptions, optional
439
643
  :return: Returns the result object.
440
644
  If the method is called asynchronously,
441
645
  returns the request thread.
@@ -478,10 +682,9 @@ class EntitiesApi:
478
682
  :param _return_http_data_only: response data instead of ApiResponse
479
683
  object with status code, headers, etc
480
684
  :type _return_http_data_only: bool, optional
481
- :param _request_timeout: timeout setting for this request. If one
482
- number provided, it will be total request
483
- timeout. It can also be a pair (tuple) of
484
- (connection, read) timeouts.
685
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
686
+ :param opts: Configuration options for this request
687
+ :type opts: ConfigurationOptions, optional
485
688
  :param _request_auth: set to override the auth_settings for an a single
486
689
  request; this effectively ignores the authentication
487
690
  in the spec for a single request.
@@ -509,7 +712,8 @@ class EntitiesApi:
509
712
  '_request_timeout',
510
713
  '_request_auth',
511
714
  '_content_type',
512
- '_headers'
715
+ '_headers',
716
+ 'opts'
513
717
  ]
514
718
  )
515
719
 
@@ -579,6 +783,7 @@ class EntitiesApi:
579
783
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
580
784
  _preload_content=_params.get('_preload_content', True),
581
785
  _request_timeout=_params.get('_request_timeout'),
786
+ opts=_params.get('opts'),
582
787
  collection_formats=_collection_formats,
583
788
  _request_auth=_params.get('_request_auth'))
584
789
 
@@ -611,10 +816,9 @@ class EntitiesApi:
611
816
  :type previews: List[str]
612
817
  :param async_req: Whether to execute the request asynchronously.
613
818
  :type async_req: bool, optional
614
- :param _request_timeout: timeout setting for this request.
615
- If one number provided, it will be total request
616
- timeout. It can also be a pair (tuple) of
617
- (connection, read) timeouts.
819
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
820
+ :param opts: Configuration options for this request
821
+ :type opts: ConfigurationOptions, optional
618
822
  :return: Returns the result object.
619
823
  If the method is called asynchronously,
620
824
  returns the request thread.
@@ -657,10 +861,9 @@ class EntitiesApi:
657
861
  :param _return_http_data_only: response data instead of ApiResponse
658
862
  object with status code, headers, etc
659
863
  :type _return_http_data_only: bool, optional
660
- :param _request_timeout: timeout setting for this request. If one
661
- number provided, it will be total request
662
- timeout. It can also be a pair (tuple) of
663
- (connection, read) timeouts.
864
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
865
+ :param opts: Configuration options for this request
866
+ :type opts: ConfigurationOptions, optional
664
867
  :param _request_auth: set to override the auth_settings for an a single
665
868
  request; this effectively ignores the authentication
666
869
  in the spec for a single request.
@@ -688,7 +891,8 @@ class EntitiesApi:
688
891
  '_request_timeout',
689
892
  '_request_auth',
690
893
  '_content_type',
691
- '_headers'
894
+ '_headers',
895
+ 'opts'
692
896
  ]
693
897
  )
694
898
 
@@ -758,6 +962,7 @@ class EntitiesApi:
758
962
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
759
963
  _preload_content=_params.get('_preload_content', True),
760
964
  _request_timeout=_params.get('_request_timeout'),
965
+ opts=_params.get('opts'),
761
966
  collection_formats=_collection_formats,
762
967
  _request_auth=_params.get('_request_auth'))
763
968
 
@@ -788,10 +993,9 @@ class EntitiesApi:
788
993
  :type as_at: datetime
789
994
  :param async_req: Whether to execute the request asynchronously.
790
995
  :type async_req: bool, optional
791
- :param _request_timeout: timeout setting for this request.
792
- If one number provided, it will be total request
793
- timeout. It can also be a pair (tuple) of
794
- (connection, read) timeouts.
996
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
997
+ :param opts: Configuration options for this request
998
+ :type opts: ConfigurationOptions, optional
795
999
  :return: Returns the result object.
796
1000
  If the method is called asynchronously,
797
1001
  returns the request thread.
@@ -832,10 +1036,9 @@ class EntitiesApi:
832
1036
  :param _return_http_data_only: response data instead of ApiResponse
833
1037
  object with status code, headers, etc
834
1038
  :type _return_http_data_only: bool, optional
835
- :param _request_timeout: timeout setting for this request. If one
836
- number provided, it will be total request
837
- timeout. It can also be a pair (tuple) of
838
- (connection, read) timeouts.
1039
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1040
+ :param opts: Configuration options for this request
1041
+ :type opts: ConfigurationOptions, optional
839
1042
  :param _request_auth: set to override the auth_settings for an a single
840
1043
  request; this effectively ignores the authentication
841
1044
  in the spec for a single request.
@@ -862,7 +1065,8 @@ class EntitiesApi:
862
1065
  '_request_timeout',
863
1066
  '_request_auth',
864
1067
  '_content_type',
865
- '_headers'
1068
+ '_headers',
1069
+ 'opts'
866
1070
  ]
867
1071
  )
868
1072
 
@@ -928,6 +1132,7 @@ class EntitiesApi:
928
1132
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
929
1133
  _preload_content=_params.get('_preload_content', True),
930
1134
  _request_timeout=_params.get('_request_timeout'),
1135
+ opts=_params.get('opts'),
931
1136
  collection_formats=_collection_formats,
932
1137
  _request_auth=_params.get('_request_auth'))
933
1138
 
@@ -960,10 +1165,9 @@ class EntitiesApi:
960
1165
  :type previews: List[str]
961
1166
  :param async_req: Whether to execute the request asynchronously.
962
1167
  :type async_req: bool, optional
963
- :param _request_timeout: timeout setting for this request.
964
- If one number provided, it will be total request
965
- timeout. It can also be a pair (tuple) of
966
- (connection, read) timeouts.
1168
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1169
+ :param opts: Configuration options for this request
1170
+ :type opts: ConfigurationOptions, optional
967
1171
  :return: Returns the result object.
968
1172
  If the method is called asynchronously,
969
1173
  returns the request thread.
@@ -1006,10 +1210,9 @@ class EntitiesApi:
1006
1210
  :param _return_http_data_only: response data instead of ApiResponse
1007
1211
  object with status code, headers, etc
1008
1212
  :type _return_http_data_only: bool, optional
1009
- :param _request_timeout: timeout setting for this request. If one
1010
- number provided, it will be total request
1011
- timeout. It can also be a pair (tuple) of
1012
- (connection, read) timeouts.
1213
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1214
+ :param opts: Configuration options for this request
1215
+ :type opts: ConfigurationOptions, optional
1013
1216
  :param _request_auth: set to override the auth_settings for an a single
1014
1217
  request; this effectively ignores the authentication
1015
1218
  in the spec for a single request.
@@ -1037,7 +1240,8 @@ class EntitiesApi:
1037
1240
  '_request_timeout',
1038
1241
  '_request_auth',
1039
1242
  '_content_type',
1040
- '_headers'
1243
+ '_headers',
1244
+ 'opts'
1041
1245
  ]
1042
1246
  )
1043
1247
 
@@ -1107,5 +1311,6 @@ class EntitiesApi:
1107
1311
  _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1108
1312
  _preload_content=_params.get('_preload_content', True),
1109
1313
  _request_timeout=_params.get('_request_timeout'),
1314
+ opts=_params.get('opts'),
1110
1315
  collection_formats=_collection_formats,
1111
1316
  _request_auth=_params.get('_request_auth'))