lusid-sdk 2.1.900__py3-none-any.whl → 2.1.902__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/api/funds_api.py CHANGED
@@ -33,6 +33,7 @@ from lusid.models.fee import Fee
33
33
  from lusid.models.fee_properties import FeeProperties
34
34
  from lusid.models.fee_request import FeeRequest
35
35
  from lusid.models.fund import Fund
36
+ from lusid.models.fund_calendar_entry import FundCalendarEntry
36
37
  from lusid.models.fund_definition_request import FundDefinitionRequest
37
38
  from lusid.models.fund_properties import FundProperties
38
39
  from lusid.models.fund_request import FundRequest
@@ -46,6 +47,7 @@ from lusid.models.paged_resource_list_of_fund_calendar_entry import PagedResourc
46
47
  from lusid.models.paged_resource_list_of_valuation_point_overview import PagedResourceListOfValuationPointOverview
47
48
  from lusid.models.set_share_class_instruments_request import SetShareClassInstrumentsRequest
48
49
  from lusid.models.single_valuation_point_query_parameters import SingleValuationPointQueryParameters
50
+ from lusid.models.upsert_fund_bookmark_request import UpsertFundBookmarkRequest
49
51
  from lusid.models.upsert_valuation_point_request import UpsertValuationPointRequest
50
52
  from lusid.models.valuation_point_data_query_parameters import ValuationPointDataQueryParameters
51
53
  from lusid.models.valuation_point_data_request import ValuationPointDataRequest
@@ -782,6 +784,182 @@ class FundsApi:
782
784
  _request_auth=_params.get('_request_auth'))
783
785
 
784
786
 
787
+ @overload
788
+ async def delete_bookmark(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund for the Bookmark to be deleted.")], code : Annotated[StrictStr, Field(..., description="The code of the Fund containing the Bookmark to be deleted. Together with the scope this uniquely identifies the Fund.")], bookmark_code : Annotated[StrictStr, Field(..., description="The bookmark code for the bookmark to be deleted")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided, Deletes the Bookmark against the specified NAV Type. When not provided the Primary NAV Type will be Deleted.")] = None, **kwargs) -> DeletedEntityResponse: # noqa: E501
789
+ ...
790
+
791
+ @overload
792
+ def delete_bookmark(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund for the Bookmark to be deleted.")], code : Annotated[StrictStr, Field(..., description="The code of the Fund containing the Bookmark to be deleted. Together with the scope this uniquely identifies the Fund.")], bookmark_code : Annotated[StrictStr, Field(..., description="The bookmark code for the bookmark to be deleted")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided, Deletes the Bookmark against the specified NAV Type. When not provided the Primary NAV Type will be Deleted.")] = None, async_req: Optional[bool]=True, **kwargs) -> DeletedEntityResponse: # noqa: E501
793
+ ...
794
+
795
+ @validate_arguments
796
+ def delete_bookmark(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund for the Bookmark to be deleted.")], code : Annotated[StrictStr, Field(..., description="The code of the Fund containing the Bookmark to be deleted. Together with the scope this uniquely identifies the Fund.")], bookmark_code : Annotated[StrictStr, Field(..., description="The bookmark code for the bookmark to be deleted")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided, Deletes the Bookmark against the specified NAV Type. When not provided the Primary NAV Type will be Deleted.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[DeletedEntityResponse, Awaitable[DeletedEntityResponse]]: # noqa: E501
797
+ """[EXPERIMENTAL] DeleteBookmark: Delete a Bookmark. # noqa: E501
798
+
799
+ Deletes the given Bookmark. # noqa: E501
800
+ This method makes a synchronous HTTP request by default. To make an
801
+ asynchronous HTTP request, please pass async_req=True
802
+
803
+ >>> thread = api.delete_bookmark(scope, code, bookmark_code, nav_type_code, async_req=True)
804
+ >>> result = thread.get()
805
+
806
+ :param scope: The scope of the Fund for the Bookmark to be deleted. (required)
807
+ :type scope: str
808
+ :param code: The code of the Fund containing the Bookmark to be deleted. Together with the scope this uniquely identifies the Fund. (required)
809
+ :type code: str
810
+ :param bookmark_code: The bookmark code for the bookmark to be deleted (required)
811
+ :type bookmark_code: str
812
+ :param nav_type_code: When provided, Deletes the Bookmark against the specified NAV Type. When not provided the Primary NAV Type will be Deleted.
813
+ :type nav_type_code: str
814
+ :param async_req: Whether to execute the request asynchronously.
815
+ :type async_req: bool, optional
816
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
817
+ :param opts: Configuration options for this request
818
+ :type opts: ConfigurationOptions, optional
819
+ :return: Returns the result object.
820
+ If the method is called asynchronously,
821
+ returns the request thread.
822
+ :rtype: DeletedEntityResponse
823
+ """
824
+ kwargs['_return_http_data_only'] = True
825
+ if '_preload_content' in kwargs:
826
+ message = "Error! Please call the delete_bookmark_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
827
+ raise ValueError(message)
828
+ if async_req is not None:
829
+ kwargs['async_req'] = async_req
830
+ return self.delete_bookmark_with_http_info(scope, code, bookmark_code, nav_type_code, **kwargs) # noqa: E501
831
+
832
+ @validate_arguments
833
+ def delete_bookmark_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund for the Bookmark to be deleted.")], code : Annotated[StrictStr, Field(..., description="The code of the Fund containing the Bookmark to be deleted. Together with the scope this uniquely identifies the Fund.")], bookmark_code : Annotated[StrictStr, Field(..., description="The bookmark code for the bookmark to be deleted")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided, Deletes the Bookmark against the specified NAV Type. When not provided the Primary NAV Type will be Deleted.")] = None, **kwargs) -> ApiResponse: # noqa: E501
834
+ """[EXPERIMENTAL] DeleteBookmark: Delete a Bookmark. # noqa: E501
835
+
836
+ Deletes the given Bookmark. # noqa: E501
837
+ This method makes a synchronous HTTP request by default. To make an
838
+ asynchronous HTTP request, please pass async_req=True
839
+
840
+ >>> thread = api.delete_bookmark_with_http_info(scope, code, bookmark_code, nav_type_code, async_req=True)
841
+ >>> result = thread.get()
842
+
843
+ :param scope: The scope of the Fund for the Bookmark to be deleted. (required)
844
+ :type scope: str
845
+ :param code: The code of the Fund containing the Bookmark to be deleted. Together with the scope this uniquely identifies the Fund. (required)
846
+ :type code: str
847
+ :param bookmark_code: The bookmark code for the bookmark to be deleted (required)
848
+ :type bookmark_code: str
849
+ :param nav_type_code: When provided, Deletes the Bookmark against the specified NAV Type. When not provided the Primary NAV Type will be Deleted.
850
+ :type nav_type_code: str
851
+ :param async_req: Whether to execute the request asynchronously.
852
+ :type async_req: bool, optional
853
+ :param _preload_content: if False, the ApiResponse.data will
854
+ be set to none and raw_data will store the
855
+ HTTP response body without reading/decoding.
856
+ Default is True.
857
+ :type _preload_content: bool, optional
858
+ :param _return_http_data_only: response data instead of ApiResponse
859
+ object with status code, headers, etc
860
+ :type _return_http_data_only: bool, optional
861
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
862
+ :param opts: Configuration options for this request
863
+ :type opts: ConfigurationOptions, optional
864
+ :param _request_auth: set to override the auth_settings for an a single
865
+ request; this effectively ignores the authentication
866
+ in the spec for a single request.
867
+ :type _request_auth: dict, optional
868
+ :type _content_type: string, optional: force content-type for the request
869
+ :return: Returns the result object.
870
+ If the method is called asynchronously,
871
+ returns the request thread.
872
+ :rtype: tuple(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))
873
+ """
874
+
875
+ _params = locals()
876
+
877
+ _all_params = [
878
+ 'scope',
879
+ 'code',
880
+ 'bookmark_code',
881
+ 'nav_type_code'
882
+ ]
883
+ _all_params.extend(
884
+ [
885
+ 'async_req',
886
+ '_return_http_data_only',
887
+ '_preload_content',
888
+ '_request_timeout',
889
+ '_request_auth',
890
+ '_content_type',
891
+ '_headers',
892
+ 'opts'
893
+ ]
894
+ )
895
+
896
+ # validate the arguments
897
+ for _key, _val in _params['kwargs'].items():
898
+ if _key not in _all_params:
899
+ raise ApiTypeError(
900
+ "Got an unexpected keyword argument '%s'"
901
+ " to method delete_bookmark" % _key
902
+ )
903
+ _params[_key] = _val
904
+ del _params['kwargs']
905
+
906
+ _collection_formats = {}
907
+
908
+ # process the path parameters
909
+ _path_params = {}
910
+ if _params['scope']:
911
+ _path_params['scope'] = _params['scope']
912
+
913
+ if _params['code']:
914
+ _path_params['code'] = _params['code']
915
+
916
+ if _params['bookmark_code']:
917
+ _path_params['bookmarkCode'] = _params['bookmark_code']
918
+
919
+
920
+ # process the query parameters
921
+ _query_params = []
922
+ if _params.get('nav_type_code') is not None: # noqa: E501
923
+ _query_params.append(('navTypeCode', _params['nav_type_code']))
924
+
925
+ # process the header parameters
926
+ _header_params = dict(_params.get('_headers', {}))
927
+ # process the form parameters
928
+ _form_params = []
929
+ _files = {}
930
+ # process the body parameter
931
+ _body_params = None
932
+ # set the HTTP header `Accept`
933
+ _header_params['Accept'] = self.api_client.select_header_accept(
934
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
935
+
936
+ # authentication setting
937
+ _auth_settings = ['oauth2'] # noqa: E501
938
+
939
+ _response_types_map = {
940
+ '200': "DeletedEntityResponse",
941
+ '400': "LusidValidationProblemDetails",
942
+ }
943
+
944
+ return self.api_client.call_api(
945
+ '/api/funds/{scope}/{code}/bookmarks/{bookmarkCode}', 'DELETE',
946
+ _path_params,
947
+ _query_params,
948
+ _header_params,
949
+ body=_body_params,
950
+ post_params=_form_params,
951
+ files=_files,
952
+ response_types_map=_response_types_map,
953
+ auth_settings=_auth_settings,
954
+ async_req=_params.get('async_req'),
955
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
956
+ _preload_content=_params.get('_preload_content', True),
957
+ _request_timeout=_params.get('_request_timeout'),
958
+ opts=_params.get('opts'),
959
+ collection_formats=_collection_formats,
960
+ _request_auth=_params.get('_request_auth'))
961
+
962
+
785
963
  @overload
786
964
  async def delete_fee(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund")], code : Annotated[StrictStr, Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], fee_code : Annotated[StrictStr, Field(..., description="The code of the Fee to be deleted.")], **kwargs) -> DeletedEntityResponse: # noqa: E501
787
965
  ...
@@ -5129,6 +5307,189 @@ class FundsApi:
5129
5307
  _request_auth=_params.get('_request_auth'))
5130
5308
 
5131
5309
 
5310
+ @overload
5311
+ async def upsert_bookmark(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund.")], code : Annotated[StrictStr, Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], upsert_fund_bookmark_request : Annotated[UpsertFundBookmarkRequest, Field(..., description="The bookmark definition to Upsert")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided, Upserts the Valuation Point against the specified NAV Type. When not provided, the Primary NAV Type will be used.")] = None, **kwargs) -> FundCalendarEntry: # noqa: E501
5312
+ ...
5313
+
5314
+ @overload
5315
+ def upsert_bookmark(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund.")], code : Annotated[StrictStr, Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], upsert_fund_bookmark_request : Annotated[UpsertFundBookmarkRequest, Field(..., description="The bookmark definition to Upsert")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided, Upserts the Valuation Point against the specified NAV Type. When not provided, the Primary NAV Type will be used.")] = None, async_req: Optional[bool]=True, **kwargs) -> FundCalendarEntry: # noqa: E501
5316
+ ...
5317
+
5318
+ @validate_arguments
5319
+ def upsert_bookmark(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund.")], code : Annotated[StrictStr, Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], upsert_fund_bookmark_request : Annotated[UpsertFundBookmarkRequest, Field(..., description="The bookmark definition to Upsert")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided, Upserts the Valuation Point against the specified NAV Type. When not provided, the Primary NAV Type will be used.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[FundCalendarEntry, Awaitable[FundCalendarEntry]]: # noqa: E501
5320
+ """[EXPERIMENTAL] UpsertBookmark: Upsert a bookmark. # noqa: E501
5321
+
5322
+ This method will update or upsert a Bookmark for the Fund. # noqa: E501
5323
+ This method makes a synchronous HTTP request by default. To make an
5324
+ asynchronous HTTP request, please pass async_req=True
5325
+
5326
+ >>> thread = api.upsert_bookmark(scope, code, upsert_fund_bookmark_request, nav_type_code, async_req=True)
5327
+ >>> result = thread.get()
5328
+
5329
+ :param scope: The scope of the Fund. (required)
5330
+ :type scope: str
5331
+ :param code: The code of the Fund. Together with the scope this uniquely identifies the Fund. (required)
5332
+ :type code: str
5333
+ :param upsert_fund_bookmark_request: The bookmark definition to Upsert (required)
5334
+ :type upsert_fund_bookmark_request: UpsertFundBookmarkRequest
5335
+ :param nav_type_code: When provided, Upserts the Valuation Point against the specified NAV Type. When not provided, the Primary NAV Type will be used.
5336
+ :type nav_type_code: str
5337
+ :param async_req: Whether to execute the request asynchronously.
5338
+ :type async_req: bool, optional
5339
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
5340
+ :param opts: Configuration options for this request
5341
+ :type opts: ConfigurationOptions, optional
5342
+ :return: Returns the result object.
5343
+ If the method is called asynchronously,
5344
+ returns the request thread.
5345
+ :rtype: FundCalendarEntry
5346
+ """
5347
+ kwargs['_return_http_data_only'] = True
5348
+ if '_preload_content' in kwargs:
5349
+ message = "Error! Please call the upsert_bookmark_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
5350
+ raise ValueError(message)
5351
+ if async_req is not None:
5352
+ kwargs['async_req'] = async_req
5353
+ return self.upsert_bookmark_with_http_info(scope, code, upsert_fund_bookmark_request, nav_type_code, **kwargs) # noqa: E501
5354
+
5355
+ @validate_arguments
5356
+ def upsert_bookmark_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund.")], code : Annotated[StrictStr, Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], upsert_fund_bookmark_request : Annotated[UpsertFundBookmarkRequest, Field(..., description="The bookmark definition to Upsert")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided, Upserts the Valuation Point against the specified NAV Type. When not provided, the Primary NAV Type will be used.")] = None, **kwargs) -> ApiResponse: # noqa: E501
5357
+ """[EXPERIMENTAL] UpsertBookmark: Upsert a bookmark. # noqa: E501
5358
+
5359
+ This method will update or upsert a Bookmark for the Fund. # noqa: E501
5360
+ This method makes a synchronous HTTP request by default. To make an
5361
+ asynchronous HTTP request, please pass async_req=True
5362
+
5363
+ >>> thread = api.upsert_bookmark_with_http_info(scope, code, upsert_fund_bookmark_request, nav_type_code, async_req=True)
5364
+ >>> result = thread.get()
5365
+
5366
+ :param scope: The scope of the Fund. (required)
5367
+ :type scope: str
5368
+ :param code: The code of the Fund. Together with the scope this uniquely identifies the Fund. (required)
5369
+ :type code: str
5370
+ :param upsert_fund_bookmark_request: The bookmark definition to Upsert (required)
5371
+ :type upsert_fund_bookmark_request: UpsertFundBookmarkRequest
5372
+ :param nav_type_code: When provided, Upserts the Valuation Point against the specified NAV Type. When not provided, the Primary NAV Type will be used.
5373
+ :type nav_type_code: str
5374
+ :param async_req: Whether to execute the request asynchronously.
5375
+ :type async_req: bool, optional
5376
+ :param _preload_content: if False, the ApiResponse.data will
5377
+ be set to none and raw_data will store the
5378
+ HTTP response body without reading/decoding.
5379
+ Default is True.
5380
+ :type _preload_content: bool, optional
5381
+ :param _return_http_data_only: response data instead of ApiResponse
5382
+ object with status code, headers, etc
5383
+ :type _return_http_data_only: bool, optional
5384
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
5385
+ :param opts: Configuration options for this request
5386
+ :type opts: ConfigurationOptions, optional
5387
+ :param _request_auth: set to override the auth_settings for an a single
5388
+ request; this effectively ignores the authentication
5389
+ in the spec for a single request.
5390
+ :type _request_auth: dict, optional
5391
+ :type _content_type: string, optional: force content-type for the request
5392
+ :return: Returns the result object.
5393
+ If the method is called asynchronously,
5394
+ returns the request thread.
5395
+ :rtype: tuple(FundCalendarEntry, status_code(int), headers(HTTPHeaderDict))
5396
+ """
5397
+
5398
+ _params = locals()
5399
+
5400
+ _all_params = [
5401
+ 'scope',
5402
+ 'code',
5403
+ 'upsert_fund_bookmark_request',
5404
+ 'nav_type_code'
5405
+ ]
5406
+ _all_params.extend(
5407
+ [
5408
+ 'async_req',
5409
+ '_return_http_data_only',
5410
+ '_preload_content',
5411
+ '_request_timeout',
5412
+ '_request_auth',
5413
+ '_content_type',
5414
+ '_headers',
5415
+ 'opts'
5416
+ ]
5417
+ )
5418
+
5419
+ # validate the arguments
5420
+ for _key, _val in _params['kwargs'].items():
5421
+ if _key not in _all_params:
5422
+ raise ApiTypeError(
5423
+ "Got an unexpected keyword argument '%s'"
5424
+ " to method upsert_bookmark" % _key
5425
+ )
5426
+ _params[_key] = _val
5427
+ del _params['kwargs']
5428
+
5429
+ _collection_formats = {}
5430
+
5431
+ # process the path parameters
5432
+ _path_params = {}
5433
+ if _params['scope']:
5434
+ _path_params['scope'] = _params['scope']
5435
+
5436
+ if _params['code']:
5437
+ _path_params['code'] = _params['code']
5438
+
5439
+
5440
+ # process the query parameters
5441
+ _query_params = []
5442
+ if _params.get('nav_type_code') is not None: # noqa: E501
5443
+ _query_params.append(('navTypeCode', _params['nav_type_code']))
5444
+
5445
+ # process the header parameters
5446
+ _header_params = dict(_params.get('_headers', {}))
5447
+ # process the form parameters
5448
+ _form_params = []
5449
+ _files = {}
5450
+ # process the body parameter
5451
+ _body_params = None
5452
+ if _params['upsert_fund_bookmark_request'] is not None:
5453
+ _body_params = _params['upsert_fund_bookmark_request']
5454
+
5455
+ # set the HTTP header `Accept`
5456
+ _header_params['Accept'] = self.api_client.select_header_accept(
5457
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
5458
+
5459
+ # set the HTTP header `Content-Type`
5460
+ _content_types_list = _params.get('_content_type',
5461
+ self.api_client.select_header_content_type(
5462
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
5463
+ if _content_types_list:
5464
+ _header_params['Content-Type'] = _content_types_list
5465
+
5466
+ # authentication setting
5467
+ _auth_settings = ['oauth2'] # noqa: E501
5468
+
5469
+ _response_types_map = {
5470
+ '200': "FundCalendarEntry",
5471
+ '400': "LusidValidationProblemDetails",
5472
+ }
5473
+
5474
+ return self.api_client.call_api(
5475
+ '/api/funds/{scope}/{code}/bookmarks', 'POST',
5476
+ _path_params,
5477
+ _query_params,
5478
+ _header_params,
5479
+ body=_body_params,
5480
+ post_params=_form_params,
5481
+ files=_files,
5482
+ response_types_map=_response_types_map,
5483
+ auth_settings=_auth_settings,
5484
+ async_req=_params.get('async_req'),
5485
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
5486
+ _preload_content=_params.get('_preload_content', True),
5487
+ _request_timeout=_params.get('_request_timeout'),
5488
+ opts=_params.get('opts'),
5489
+ collection_formats=_collection_formats,
5490
+ _request_auth=_params.get('_request_auth'))
5491
+
5492
+
5132
5493
  @overload
5133
5494
  async def upsert_diary_entry_type_valuation_point(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund.")], code : Annotated[StrictStr, Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], upsert_valuation_point_request : Annotated[UpsertValuationPointRequest, Field(..., description="The Valuation Point Estimate definition to Upsert")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided, Upserts the Valuation Point against the specified NAV Type. When not provided the Primary NAV Type will be used.")] = None, **kwargs) -> DiaryEntry: # noqa: E501
5134
5495
  ...
@@ -3667,22 +3667,22 @@ class TransactionPortfoliosApi:
3667
3667
 
3668
3668
 
3669
3669
  @overload
3670
- async def get_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_id : Annotated[conint(strict=True), Field(..., description="The unique holding identifier")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_trade_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_trade_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, **kwargs) -> VersionedResourceListOfHoldingContributor: # noqa: E501
3670
+ async def get_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_id : Annotated[conint(strict=True), Field(..., description="The unique holding identifier")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_trade_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_trade_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, include_unsettled_movements : Annotated[Optional[StrictBool], Field(description="If true, contributing transaction which have not settled yet will also be returned. False by default")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, **kwargs) -> VersionedResourceListOfHoldingContributor: # noqa: E501
3671
3671
  ...
3672
3672
 
3673
3673
  @overload
3674
- def get_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_id : Annotated[conint(strict=True), Field(..., description="The unique holding identifier")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_trade_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_trade_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListOfHoldingContributor: # noqa: E501
3674
+ def get_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_id : Annotated[conint(strict=True), Field(..., description="The unique holding identifier")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_trade_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_trade_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, include_unsettled_movements : Annotated[Optional[StrictBool], Field(description="If true, contributing transaction which have not settled yet will also be returned. False by default")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListOfHoldingContributor: # noqa: E501
3675
3675
  ...
3676
3676
 
3677
3677
  @validate_arguments
3678
- def get_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_id : Annotated[conint(strict=True), Field(..., description="The unique holding identifier")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_trade_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_trade_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListOfHoldingContributor, Awaitable[VersionedResourceListOfHoldingContributor]]: # noqa: E501
3678
+ def get_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_id : Annotated[conint(strict=True), Field(..., description="The unique holding identifier")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_trade_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_trade_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, include_unsettled_movements : Annotated[Optional[StrictBool], Field(description="If true, contributing transaction which have not settled yet will also be returned. False by default")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListOfHoldingContributor, Awaitable[VersionedResourceListOfHoldingContributor]]: # noqa: E501
3679
3679
  """GetHoldingContributors: Get Holdings Contributors # noqa: E501
3680
3680
 
3681
3681
  Lists all transactions that affect the holdings of a portfolio over a given effective interval. This includes transactions automatically generated by LUSID such as holding adjustments. # noqa: E501
3682
3682
  This method makes a synchronous HTTP request by default. To make an
3683
3683
  asynchronous HTTP request, please pass async_req=True
3684
3684
 
3685
- >>> thread = api.get_holding_contributors(scope, code, holding_id, effective_date, from_trade_date, to_trade_date, include_historic, tax_lot_id, limit, as_at, page, async_req=True)
3685
+ >>> thread = api.get_holding_contributors(scope, code, holding_id, effective_date, from_trade_date, to_trade_date, include_historic, tax_lot_id, include_unsettled_movements, limit, as_at, page, async_req=True)
3686
3686
  >>> result = thread.get()
3687
3687
 
3688
3688
  :param scope: The scope of the transaction portfolio. (required)
@@ -3701,6 +3701,8 @@ class TransactionPortfoliosApi:
3701
3701
  :type include_historic: bool
3702
3702
  :param tax_lot_id: Constrains the Holding Contributors to those which contributed to the specified tax lot.
3703
3703
  :type tax_lot_id: str
3704
+ :param include_unsettled_movements: If true, contributing transaction which have not settled yet will also be returned. False by default
3705
+ :type include_unsettled_movements: bool
3704
3706
  :param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
3705
3707
  :type limit: int
3706
3708
  :param as_at: The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.
@@ -3723,17 +3725,17 @@ class TransactionPortfoliosApi:
3723
3725
  raise ValueError(message)
3724
3726
  if async_req is not None:
3725
3727
  kwargs['async_req'] = async_req
3726
- return self.get_holding_contributors_with_http_info(scope, code, holding_id, effective_date, from_trade_date, to_trade_date, include_historic, tax_lot_id, limit, as_at, page, **kwargs) # noqa: E501
3728
+ return self.get_holding_contributors_with_http_info(scope, code, holding_id, effective_date, from_trade_date, to_trade_date, include_historic, tax_lot_id, include_unsettled_movements, limit, as_at, page, **kwargs) # noqa: E501
3727
3729
 
3728
3730
  @validate_arguments
3729
- def get_holding_contributors_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_id : Annotated[conint(strict=True), Field(..., description="The unique holding identifier")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_trade_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_trade_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, **kwargs) -> ApiResponse: # noqa: E501
3731
+ def get_holding_contributors_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_id : Annotated[conint(strict=True), Field(..., description="The unique holding identifier")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_trade_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_trade_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, include_unsettled_movements : Annotated[Optional[StrictBool], Field(description="If true, contributing transaction which have not settled yet will also be returned. False by default")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, **kwargs) -> ApiResponse: # noqa: E501
3730
3732
  """GetHoldingContributors: Get Holdings Contributors # noqa: E501
3731
3733
 
3732
3734
  Lists all transactions that affect the holdings of a portfolio over a given effective interval. This includes transactions automatically generated by LUSID such as holding adjustments. # noqa: E501
3733
3735
  This method makes a synchronous HTTP request by default. To make an
3734
3736
  asynchronous HTTP request, please pass async_req=True
3735
3737
 
3736
- >>> thread = api.get_holding_contributors_with_http_info(scope, code, holding_id, effective_date, from_trade_date, to_trade_date, include_historic, tax_lot_id, limit, as_at, page, async_req=True)
3738
+ >>> thread = api.get_holding_contributors_with_http_info(scope, code, holding_id, effective_date, from_trade_date, to_trade_date, include_historic, tax_lot_id, include_unsettled_movements, limit, as_at, page, async_req=True)
3737
3739
  >>> result = thread.get()
3738
3740
 
3739
3741
  :param scope: The scope of the transaction portfolio. (required)
@@ -3752,6 +3754,8 @@ class TransactionPortfoliosApi:
3752
3754
  :type include_historic: bool
3753
3755
  :param tax_lot_id: Constrains the Holding Contributors to those which contributed to the specified tax lot.
3754
3756
  :type tax_lot_id: str
3757
+ :param include_unsettled_movements: If true, contributing transaction which have not settled yet will also be returned. False by default
3758
+ :type include_unsettled_movements: bool
3755
3759
  :param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
3756
3760
  :type limit: int
3757
3761
  :param as_at: The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.
@@ -3793,6 +3797,7 @@ class TransactionPortfoliosApi:
3793
3797
  'to_trade_date',
3794
3798
  'include_historic',
3795
3799
  'tax_lot_id',
3800
+ 'include_unsettled_movements',
3796
3801
  'limit',
3797
3802
  'as_at',
3798
3803
  'page'
@@ -3851,6 +3856,9 @@ class TransactionPortfoliosApi:
3851
3856
  if _params.get('tax_lot_id') is not None: # noqa: E501
3852
3857
  _query_params.append(('taxLotId', _params['tax_lot_id']))
3853
3858
 
3859
+ if _params.get('include_unsettled_movements') is not None: # noqa: E501
3860
+ _query_params.append(('includeUnsettledMovements', _params['include_unsettled_movements']))
3861
+
3854
3862
  if _params.get('limit') is not None: # noqa: E501
3855
3863
  _query_params.append(('limit', _params['limit']))
3856
3864
 
@@ -4554,22 +4562,22 @@ class TransactionPortfoliosApi:
4554
4562
 
4555
4563
 
4556
4564
  @overload
4557
- async def get_multiple_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_ids_request : Annotated[HoldingIdsRequest, Field(..., description="The array of unique holding identifiers")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_transaction_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, **kwargs) -> VersionedResourceListOfHoldingContributor: # noqa: E501
4565
+ async def get_multiple_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_ids_request : Annotated[HoldingIdsRequest, Field(..., description="The array of unique holding identifiers")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_transaction_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, include_unsettled_movements : Annotated[Optional[StrictBool], Field(description="If true, contributing transaction which have not settled yet will also be returned. False by default")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, **kwargs) -> VersionedResourceListOfHoldingContributor: # noqa: E501
4558
4566
  ...
4559
4567
 
4560
4568
  @overload
4561
- def get_multiple_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_ids_request : Annotated[HoldingIdsRequest, Field(..., description="The array of unique holding identifiers")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_transaction_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListOfHoldingContributor: # noqa: E501
4569
+ def get_multiple_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_ids_request : Annotated[HoldingIdsRequest, Field(..., description="The array of unique holding identifiers")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_transaction_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, include_unsettled_movements : Annotated[Optional[StrictBool], Field(description="If true, contributing transaction which have not settled yet will also be returned. False by default")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListOfHoldingContributor: # noqa: E501
4562
4570
  ...
4563
4571
 
4564
4572
  @validate_arguments
4565
- def get_multiple_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_ids_request : Annotated[HoldingIdsRequest, Field(..., description="The array of unique holding identifiers")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_transaction_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListOfHoldingContributor, Awaitable[VersionedResourceListOfHoldingContributor]]: # noqa: E501
4573
+ def get_multiple_holding_contributors(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_ids_request : Annotated[HoldingIdsRequest, Field(..., description="The array of unique holding identifiers")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_transaction_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, include_unsettled_movements : Annotated[Optional[StrictBool], Field(description="If true, contributing transaction which have not settled yet will also be returned. False by default")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListOfHoldingContributor, Awaitable[VersionedResourceListOfHoldingContributor]]: # noqa: E501
4566
4574
  """GetMultipleHoldingContributors: Get Multiple Holding Contributors # noqa: E501
4567
4575
 
4568
4576
  Lists all transactions that affect multiple specified holdings of a portfolio over a given effective interval. This includes transactions automatically generated by LUSID such as holding adjustments. # noqa: E501
4569
4577
  This method makes a synchronous HTTP request by default. To make an
4570
4578
  asynchronous HTTP request, please pass async_req=True
4571
4579
 
4572
- >>> thread = api.get_multiple_holding_contributors(scope, code, holding_ids_request, effective_date, from_transaction_date, to_transaction_date, include_historic, tax_lot_id, limit, as_at, page, async_req=True)
4580
+ >>> thread = api.get_multiple_holding_contributors(scope, code, holding_ids_request, effective_date, from_transaction_date, to_transaction_date, include_historic, tax_lot_id, include_unsettled_movements, limit, as_at, page, async_req=True)
4573
4581
  >>> result = thread.get()
4574
4582
 
4575
4583
  :param scope: The scope of the transaction portfolio. (required)
@@ -4588,6 +4596,8 @@ class TransactionPortfoliosApi:
4588
4596
  :type include_historic: bool
4589
4597
  :param tax_lot_id: Constrains the Holding Contributors to those which contributed to the specified tax lot.
4590
4598
  :type tax_lot_id: str
4599
+ :param include_unsettled_movements: If true, contributing transaction which have not settled yet will also be returned. False by default
4600
+ :type include_unsettled_movements: bool
4591
4601
  :param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
4592
4602
  :type limit: int
4593
4603
  :param as_at: The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.
@@ -4610,17 +4620,17 @@ class TransactionPortfoliosApi:
4610
4620
  raise ValueError(message)
4611
4621
  if async_req is not None:
4612
4622
  kwargs['async_req'] = async_req
4613
- return self.get_multiple_holding_contributors_with_http_info(scope, code, holding_ids_request, effective_date, from_transaction_date, to_transaction_date, include_historic, tax_lot_id, limit, as_at, page, **kwargs) # noqa: E501
4623
+ return self.get_multiple_holding_contributors_with_http_info(scope, code, holding_ids_request, effective_date, from_transaction_date, to_transaction_date, include_historic, tax_lot_id, include_unsettled_movements, limit, as_at, page, **kwargs) # noqa: E501
4614
4624
 
4615
4625
  @validate_arguments
4616
- def get_multiple_holding_contributors_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_ids_request : Annotated[HoldingIdsRequest, Field(..., description="The array of unique holding identifiers")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_transaction_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, **kwargs) -> ApiResponse: # noqa: E501
4626
+ def get_multiple_holding_contributors_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the transaction portfolio.")], code : Annotated[StrictStr, Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], holding_ids_request : Annotated[HoldingIdsRequest, Field(..., description="The array of unique holding identifiers")], effective_date : Annotated[Optional[StrictStr], Field( description="Effective date")] = None, from_transaction_date : Annotated[Optional[StrictStr], Field( description="The from trade date, defaults to first time this holding is opened, lower bound for transactions")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The to trade date upper bound date, defaults to effectiveDate. upper bound for transactions")] = None, include_historic : Annotated[Optional[StrictBool], Field(description="If true, transactions from previously closed holdings are returned. If false, only transactions from last time position is opened.")] = None, tax_lot_id : Annotated[Optional[StrictStr], Field( description="Constrains the Holding Contributors to those which contributed to the specified tax lot.")] = None, include_unsettled_movements : Annotated[Optional[StrictBool], Field(description="If true, contributing transaction which have not settled yet will also be returned. False by default")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetHoldingContributors.")] = None, **kwargs) -> ApiResponse: # noqa: E501
4617
4627
  """GetMultipleHoldingContributors: Get Multiple Holding Contributors # noqa: E501
4618
4628
 
4619
4629
  Lists all transactions that affect multiple specified holdings of a portfolio over a given effective interval. This includes transactions automatically generated by LUSID such as holding adjustments. # noqa: E501
4620
4630
  This method makes a synchronous HTTP request by default. To make an
4621
4631
  asynchronous HTTP request, please pass async_req=True
4622
4632
 
4623
- >>> thread = api.get_multiple_holding_contributors_with_http_info(scope, code, holding_ids_request, effective_date, from_transaction_date, to_transaction_date, include_historic, tax_lot_id, limit, as_at, page, async_req=True)
4633
+ >>> thread = api.get_multiple_holding_contributors_with_http_info(scope, code, holding_ids_request, effective_date, from_transaction_date, to_transaction_date, include_historic, tax_lot_id, include_unsettled_movements, limit, as_at, page, async_req=True)
4624
4634
  >>> result = thread.get()
4625
4635
 
4626
4636
  :param scope: The scope of the transaction portfolio. (required)
@@ -4639,6 +4649,8 @@ class TransactionPortfoliosApi:
4639
4649
  :type include_historic: bool
4640
4650
  :param tax_lot_id: Constrains the Holding Contributors to those which contributed to the specified tax lot.
4641
4651
  :type tax_lot_id: str
4652
+ :param include_unsettled_movements: If true, contributing transaction which have not settled yet will also be returned. False by default
4653
+ :type include_unsettled_movements: bool
4642
4654
  :param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
4643
4655
  :type limit: int
4644
4656
  :param as_at: The asAt datetime at which to build the transactions. Defaults to return the latest version of each transaction if not specified.
@@ -4680,6 +4692,7 @@ class TransactionPortfoliosApi:
4680
4692
  'to_transaction_date',
4681
4693
  'include_historic',
4682
4694
  'tax_lot_id',
4695
+ 'include_unsettled_movements',
4683
4696
  'limit',
4684
4697
  'as_at',
4685
4698
  'page'
@@ -4735,6 +4748,9 @@ class TransactionPortfoliosApi:
4735
4748
  if _params.get('tax_lot_id') is not None: # noqa: E501
4736
4749
  _query_params.append(('taxLotId', _params['tax_lot_id']))
4737
4750
 
4751
+ if _params.get('include_unsettled_movements') is not None: # noqa: E501
4752
+ _query_params.append(('includeUnsettledMovements', _params['include_unsettled_movements']))
4753
+
4738
4754
  if _params.get('limit') is not None: # noqa: E501
4739
4755
  _query_params.append(('limit', _params['limit']))
4740
4756
 
lusid/configuration.py CHANGED
@@ -445,7 +445,7 @@ class Configuration:
445
445
  return "Python SDK Debug Report:\n"\
446
446
  "OS: {env}\n"\
447
447
  "Python Version: {pyversion}\n"\
448
- "Version of the API: 0.11.8139\n"\
448
+ "Version of the API: 0.11.8152\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451