lusid-sdk 2.1.599__py3-none-any.whl → 2.1.642__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 (148) hide show
  1. lusid/__init__.py +36 -0
  2. lusid/api/corporate_action_sources_api.py +6 -6
  3. lusid/api/entities_api.py +24 -24
  4. lusid/api/funds_api.py +438 -1
  5. lusid/api/order_management_api.py +16 -8
  6. lusid/api/staged_modifications_api.py +12 -12
  7. lusid/api/timelines_api.py +579 -3
  8. lusid/api/transaction_portfolios_api.py +183 -0
  9. lusid/api/workspace_api.py +96 -48
  10. lusid/configuration.py +1 -1
  11. lusid/models/__init__.py +36 -0
  12. lusid/models/accounted_transaction.py +88 -0
  13. lusid/models/accumulation_event.py +3 -3
  14. lusid/models/adjust_global_commitment_event.py +93 -0
  15. lusid/models/amortisation_event.py +3 -3
  16. lusid/models/basket.py +3 -3
  17. lusid/models/bond.py +11 -5
  18. lusid/models/bond_coupon_event.py +3 -3
  19. lusid/models/bond_default_event.py +3 -3
  20. lusid/models/bond_principal_event.py +3 -3
  21. lusid/models/bonus_issue_event.py +3 -3
  22. lusid/models/call_on_intermediate_securities_event.py +3 -3
  23. lusid/models/cancel_single_holding_adjustment_request.py +96 -0
  24. lusid/models/cap_floor.py +22 -7
  25. lusid/models/capital_distribution_event.py +3 -3
  26. lusid/models/cash.py +3 -3
  27. lusid/models/cash_dividend_event.py +3 -3
  28. lusid/models/cash_flow_event.py +3 -3
  29. lusid/models/cash_perpetual.py +3 -3
  30. lusid/models/cds_credit_event.py +3 -3
  31. lusid/models/cds_index.py +3 -3
  32. lusid/models/cdx_credit_event.py +3 -3
  33. lusid/models/close_event.py +3 -3
  34. lusid/models/closed_period.py +128 -0
  35. lusid/models/complete_portfolio.py +3 -3
  36. lusid/models/complex_bond.py +20 -7
  37. lusid/models/contract_details.py +101 -0
  38. lusid/models/contract_for_difference.py +3 -3
  39. lusid/models/contract_initialisation_event.py +99 -0
  40. lusid/models/create_closed_period_request.py +96 -0
  41. lusid/models/create_derived_property_definition_request.py +3 -3
  42. lusid/models/create_derived_transaction_portfolio_request.py +8 -2
  43. lusid/models/create_property_definition_request.py +3 -3
  44. lusid/models/credit_default_swap.py +3 -3
  45. lusid/models/credit_premium_cash_flow_event.py +3 -3
  46. lusid/models/dependency_source_filter.py +19 -4
  47. lusid/models/dividend_option_event.py +3 -3
  48. lusid/models/dividend_reinvestment_event.py +3 -3
  49. lusid/models/drawdown_event.py +99 -0
  50. lusid/models/early_redemption_event.py +3 -3
  51. lusid/models/eligibility_calculation.py +6 -4
  52. lusid/models/equity.py +3 -3
  53. lusid/models/equity_option.py +23 -7
  54. lusid/models/equity_swap.py +3 -3
  55. lusid/models/exchange_traded_option.py +12 -6
  56. lusid/models/exercise_event.py +3 -3
  57. lusid/models/exotic_instrument.py +3 -3
  58. lusid/models/expiry_event.py +3 -3
  59. lusid/models/fee_accrual.py +3 -1
  60. lusid/models/fixed_leg.py +3 -3
  61. lusid/models/flexible_deposit.py +105 -0
  62. lusid/models/flexible_loan.py +3 -3
  63. lusid/models/floating_leg.py +3 -3
  64. lusid/models/forward_rate_agreement.py +3 -3
  65. lusid/models/fund_share_class.py +3 -3
  66. lusid/models/funding_leg.py +3 -3
  67. lusid/models/future.py +19 -7
  68. lusid/models/future_expiry_event.py +3 -3
  69. lusid/models/future_mark_to_market_event.py +100 -0
  70. lusid/models/fx_forward.py +3 -3
  71. lusid/models/fx_forward_settlement_event.py +3 -3
  72. lusid/models/fx_option.py +3 -3
  73. lusid/models/fx_swap.py +3 -3
  74. lusid/models/group_reconciliation_summary.py +2 -2
  75. lusid/models/inflation_leg.py +3 -3
  76. lusid/models/inflation_linked_bond.py +11 -5
  77. lusid/models/inflation_swap.py +3 -3
  78. lusid/models/informational_error_event.py +3 -3
  79. lusid/models/informational_event.py +3 -3
  80. lusid/models/instrument_event.py +10 -5
  81. lusid/models/instrument_event_instruction.py +9 -2
  82. lusid/models/instrument_event_instruction_request.py +10 -3
  83. lusid/models/instrument_event_type.py +5 -0
  84. lusid/models/instrument_leg.py +3 -3
  85. lusid/models/instrument_type.py +1 -0
  86. lusid/models/interest_rate_swap.py +3 -3
  87. lusid/models/interest_rate_swaption.py +3 -3
  88. lusid/models/intermediate_securities_distribution_event.py +3 -3
  89. lusid/models/loan_facility.py +3 -3
  90. lusid/models/loan_interest_repayment_event.py +97 -0
  91. lusid/models/lusid_instrument.py +6 -5
  92. lusid/models/mark_to_market_conventions.py +74 -0
  93. lusid/models/market_data_key_rule.py +1 -1
  94. lusid/models/market_data_specific_rule.py +1 -1
  95. lusid/models/mastered_instrument.py +3 -3
  96. lusid/models/maturity_event.py +3 -3
  97. lusid/models/mbs_coupon_event.py +3 -3
  98. lusid/models/mbs_interest_deferral_event.py +3 -3
  99. lusid/models/mbs_interest_shortfall_event.py +3 -3
  100. lusid/models/mbs_principal_event.py +3 -3
  101. lusid/models/mbs_principal_write_off_event.py +3 -3
  102. lusid/models/merger_event.py +3 -3
  103. lusid/models/open_event.py +3 -3
  104. lusid/models/option_exercise_cash_event.py +3 -3
  105. lusid/models/option_exercise_physical_event.py +3 -3
  106. lusid/models/paged_resource_list_of_closed_period.py +113 -0
  107. lusid/models/pnl_journal_entry_line.py +95 -0
  108. lusid/models/portfolio.py +3 -3
  109. lusid/models/portfolio_id.py +80 -0
  110. lusid/models/portfolio_search_result.py +3 -3
  111. lusid/models/portfolio_type.py +1 -0
  112. lusid/models/portfolio_without_href.py +3 -3
  113. lusid/models/property_definition.py +3 -3
  114. lusid/models/property_definition_search_result.py +3 -3
  115. lusid/models/property_domain.py +1 -0
  116. lusid/models/protection_payout_cash_flow_event.py +3 -3
  117. lusid/models/raw_vendor_event.py +3 -3
  118. lusid/models/reference_instrument.py +3 -3
  119. lusid/models/repo.py +3 -3
  120. lusid/models/reset_event.py +3 -3
  121. lusid/models/reverse_stock_split_event.py +3 -3
  122. lusid/models/scrip_dividend_event.py +3 -3
  123. lusid/models/side_definition.py +8 -1
  124. lusid/models/side_definition_request.py +9 -2
  125. lusid/models/simple_cash_flow_loan.py +3 -3
  126. lusid/models/simple_instrument.py +3 -3
  127. lusid/models/spin_off_event.py +3 -3
  128. lusid/models/stock_dividend_event.py +3 -3
  129. lusid/models/stock_split_event.py +3 -3
  130. lusid/models/swap_cash_flow_event.py +3 -3
  131. lusid/models/swap_principal_event.py +3 -3
  132. lusid/models/tender_event.py +3 -3
  133. lusid/models/term_deposit.py +3 -3
  134. lusid/models/term_deposit_interest_event.py +3 -3
  135. lusid/models/term_deposit_principal_event.py +3 -3
  136. lusid/models/total_return_swap.py +3 -3
  137. lusid/models/trading_conventions.py +73 -0
  138. lusid/models/transition_event.py +3 -3
  139. lusid/models/trigger_event.py +3 -3
  140. lusid/models/valuation_point_resource_list_of_accounted_transaction.py +125 -0
  141. lusid/models/valuation_point_resource_list_of_pnl_journal_entry_line.py +125 -0
  142. lusid/models/workspace.py +1 -1
  143. lusid/models/workspace_creation_request.py +1 -1
  144. lusid/models/workspace_item.py +4 -2
  145. lusid/models/workspace_item_creation_request.py +11 -2
  146. {lusid_sdk-2.1.599.dist-info → lusid_sdk-2.1.642.dist-info}/METADATA +34 -10
  147. {lusid_sdk-2.1.599.dist-info → lusid_sdk-2.1.642.dist-info}/RECORD +148 -130
  148. {lusid_sdk-2.1.599.dist-info → lusid_sdk-2.1.642.dist-info}/WHEEL +0 -0
@@ -33,6 +33,7 @@ from lusid.models.batch_adjust_holdings_response import BatchAdjustHoldingsRespo
33
33
  from lusid.models.batch_upsert_portfolio_transactions_response import BatchUpsertPortfolioTransactionsResponse
34
34
  from lusid.models.bucketed_cash_flow_request import BucketedCashFlowRequest
35
35
  from lusid.models.bucketed_cash_flow_response import BucketedCashFlowResponse
36
+ from lusid.models.cancel_single_holding_adjustment_request import CancelSingleHoldingAdjustmentRequest
36
37
  from lusid.models.create_portfolio_details import CreatePortfolioDetails
37
38
  from lusid.models.create_trade_tickets_response import CreateTradeTicketsResponse
38
39
  from lusid.models.create_transaction_portfolio_request import CreateTransactionPortfolioRequest
@@ -1414,6 +1415,188 @@ class TransactionPortfoliosApi:
1414
1415
  collection_formats=_collection_formats,
1415
1416
  _request_auth=_params.get('_request_auth'))
1416
1417
 
1418
+ @overload
1419
+ async def cancel_single_adjust_holding(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the previous adjustment was made.")], cancel_single_holding_adjustment_request : Annotated[CancelSingleHoldingAdjustmentRequest, Field(..., description="The selected holding adjustment to be canceled.")], **kwargs) -> DeletedEntityResponse: # noqa: E501
1420
+ ...
1421
+
1422
+ @overload
1423
+ def cancel_single_adjust_holding(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the previous adjustment was made.")], cancel_single_holding_adjustment_request : Annotated[CancelSingleHoldingAdjustmentRequest, Field(..., description="The selected holding adjustment to be canceled.")], async_req: Optional[bool]=True, **kwargs) -> DeletedEntityResponse: # noqa: E501
1424
+ ...
1425
+
1426
+ @validate_arguments
1427
+ def cancel_single_adjust_holding(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the previous adjustment was made.")], cancel_single_holding_adjustment_request : Annotated[CancelSingleHoldingAdjustmentRequest, Field(..., description="The selected holding adjustment to be canceled.")], async_req: Optional[bool]=None, **kwargs) -> Union[DeletedEntityResponse, Awaitable[DeletedEntityResponse]]: # noqa: E501
1428
+ """[EARLY ACCESS] CancelSingleAdjustHolding: Cancel single holding adjustment. # noqa: E501
1429
+
1430
+ Cancel one previously sent holding adjustment without affecting the rest of the adjustment in the previous request on the specified effective datetime. # noqa: E501
1431
+ This method makes a synchronous HTTP request by default. To make an
1432
+ asynchronous HTTP request, please pass async_req=True
1433
+
1434
+ >>> thread = api.cancel_single_adjust_holding(scope, code, effective_at, cancel_single_holding_adjustment_request, async_req=True)
1435
+ >>> result = thread.get()
1436
+
1437
+ :param scope: The scope of the transaction portfolio. (required)
1438
+ :type scope: str
1439
+ :param code: The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio. (required)
1440
+ :type code: str
1441
+ :param effective_at: The effective datetime or cut label at which the previous adjustment was made. (required)
1442
+ :type effective_at: str
1443
+ :param cancel_single_holding_adjustment_request: The selected holding adjustment to be canceled. (required)
1444
+ :type cancel_single_holding_adjustment_request: CancelSingleHoldingAdjustmentRequest
1445
+ :param async_req: Whether to execute the request asynchronously.
1446
+ :type async_req: bool, optional
1447
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1448
+ :param opts: Configuration options for this request
1449
+ :type opts: ConfigurationOptions, optional
1450
+ :return: Returns the result object.
1451
+ If the method is called asynchronously,
1452
+ returns the request thread.
1453
+ :rtype: DeletedEntityResponse
1454
+ """
1455
+ kwargs['_return_http_data_only'] = True
1456
+ if '_preload_content' in kwargs:
1457
+ message = "Error! Please call the cancel_single_adjust_holding_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
1458
+ raise ValueError(message)
1459
+ if async_req is not None:
1460
+ kwargs['async_req'] = async_req
1461
+ return self.cancel_single_adjust_holding_with_http_info(scope, code, effective_at, cancel_single_holding_adjustment_request, **kwargs) # noqa: E501
1462
+
1463
+ @validate_arguments
1464
+ def cancel_single_adjust_holding_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the previous adjustment was made.")], cancel_single_holding_adjustment_request : Annotated[CancelSingleHoldingAdjustmentRequest, Field(..., description="The selected holding adjustment to be canceled.")], **kwargs) -> ApiResponse: # noqa: E501
1465
+ """[EARLY ACCESS] CancelSingleAdjustHolding: Cancel single holding adjustment. # noqa: E501
1466
+
1467
+ Cancel one previously sent holding adjustment without affecting the rest of the adjustment in the previous request on the specified effective datetime. # noqa: E501
1468
+ This method makes a synchronous HTTP request by default. To make an
1469
+ asynchronous HTTP request, please pass async_req=True
1470
+
1471
+ >>> thread = api.cancel_single_adjust_holding_with_http_info(scope, code, effective_at, cancel_single_holding_adjustment_request, async_req=True)
1472
+ >>> result = thread.get()
1473
+
1474
+ :param scope: The scope of the transaction portfolio. (required)
1475
+ :type scope: str
1476
+ :param code: The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio. (required)
1477
+ :type code: str
1478
+ :param effective_at: The effective datetime or cut label at which the previous adjustment was made. (required)
1479
+ :type effective_at: str
1480
+ :param cancel_single_holding_adjustment_request: The selected holding adjustment to be canceled. (required)
1481
+ :type cancel_single_holding_adjustment_request: CancelSingleHoldingAdjustmentRequest
1482
+ :param async_req: Whether to execute the request asynchronously.
1483
+ :type async_req: bool, optional
1484
+ :param _preload_content: if False, the ApiResponse.data will
1485
+ be set to none and raw_data will store the
1486
+ HTTP response body without reading/decoding.
1487
+ Default is True.
1488
+ :type _preload_content: bool, optional
1489
+ :param _return_http_data_only: response data instead of ApiResponse
1490
+ object with status code, headers, etc
1491
+ :type _return_http_data_only: bool, optional
1492
+ :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
1493
+ :param opts: Configuration options for this request
1494
+ :type opts: ConfigurationOptions, optional
1495
+ :param _request_auth: set to override the auth_settings for an a single
1496
+ request; this effectively ignores the authentication
1497
+ in the spec for a single request.
1498
+ :type _request_auth: dict, optional
1499
+ :type _content_type: string, optional: force content-type for the request
1500
+ :return: Returns the result object.
1501
+ If the method is called asynchronously,
1502
+ returns the request thread.
1503
+ :rtype: tuple(DeletedEntityResponse, status_code(int), headers(HTTPHeaderDict))
1504
+ """
1505
+
1506
+ _params = locals()
1507
+
1508
+ _all_params = [
1509
+ 'scope',
1510
+ 'code',
1511
+ 'effective_at',
1512
+ 'cancel_single_holding_adjustment_request'
1513
+ ]
1514
+ _all_params.extend(
1515
+ [
1516
+ 'async_req',
1517
+ '_return_http_data_only',
1518
+ '_preload_content',
1519
+ '_request_timeout',
1520
+ '_request_auth',
1521
+ '_content_type',
1522
+ '_headers',
1523
+ 'opts'
1524
+ ]
1525
+ )
1526
+
1527
+ # validate the arguments
1528
+ for _key, _val in _params['kwargs'].items():
1529
+ if _key not in _all_params:
1530
+ raise ApiTypeError(
1531
+ "Got an unexpected keyword argument '%s'"
1532
+ " to method cancel_single_adjust_holding" % _key
1533
+ )
1534
+ _params[_key] = _val
1535
+ del _params['kwargs']
1536
+
1537
+ _collection_formats = {}
1538
+
1539
+ # process the path parameters
1540
+ _path_params = {}
1541
+ if _params['scope']:
1542
+ _path_params['scope'] = _params['scope']
1543
+
1544
+ if _params['code']:
1545
+ _path_params['code'] = _params['code']
1546
+
1547
+
1548
+ # process the query parameters
1549
+ _query_params = []
1550
+ if _params.get('effective_at') is not None: # noqa: E501
1551
+ _query_params.append(('effectiveAt', _params['effective_at']))
1552
+
1553
+ # process the header parameters
1554
+ _header_params = dict(_params.get('_headers', {}))
1555
+ # process the form parameters
1556
+ _form_params = []
1557
+ _files = {}
1558
+ # process the body parameter
1559
+ _body_params = None
1560
+ if _params['cancel_single_holding_adjustment_request'] is not None:
1561
+ _body_params = _params['cancel_single_holding_adjustment_request']
1562
+
1563
+ # set the HTTP header `Accept`
1564
+ _header_params['Accept'] = self.api_client.select_header_accept(
1565
+ ['text/plain', 'application/json', 'text/json']) # noqa: E501
1566
+
1567
+ # set the HTTP header `Content-Type`
1568
+ _content_types_list = _params.get('_content_type',
1569
+ self.api_client.select_header_content_type(
1570
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
1571
+ if _content_types_list:
1572
+ _header_params['Content-Type'] = _content_types_list
1573
+
1574
+ # authentication setting
1575
+ _auth_settings = ['oauth2'] # noqa: E501
1576
+
1577
+ _response_types_map = {
1578
+ '200': "DeletedEntityResponse",
1579
+ '400': "LusidValidationProblemDetails",
1580
+ }
1581
+
1582
+ return self.api_client.call_api(
1583
+ '/api/transactionportfolios/{scope}/{code}/holdings/$cancelAdjustment', 'POST',
1584
+ _path_params,
1585
+ _query_params,
1586
+ _header_params,
1587
+ body=_body_params,
1588
+ post_params=_form_params,
1589
+ files=_files,
1590
+ response_types_map=_response_types_map,
1591
+ auth_settings=_auth_settings,
1592
+ async_req=_params.get('async_req'),
1593
+ _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
1594
+ _preload_content=_params.get('_preload_content', True),
1595
+ _request_timeout=_params.get('_request_timeout'),
1596
+ opts=_params.get('opts'),
1597
+ collection_formats=_collection_formats,
1598
+ _request_auth=_params.get('_request_auth'))
1599
+
1417
1600
  @overload
1418
1601
  async def cancel_transactions(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], transaction_ids : Annotated[conlist(StrictStr), Field(..., description="The IDs of the transactions to cancel.")], **kwargs) -> DeletedEntityResponse: # noqa: E501
1419
1602
  ...