lusid-sdk 2.1.897__py3-none-any.whl → 2.1.899__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lusid/__init__.py +12 -0
- lusid/api/funds_api.py +187 -2
- lusid/api/transaction_portfolios_api.py +50 -18
- lusid/configuration.py +3 -3
- lusid/models/__init__.py +12 -0
- lusid/models/accumulation_event.py +3 -3
- lusid/models/adjust_global_commitment_event.py +3 -3
- lusid/models/amortisation_event.py +3 -3
- lusid/models/bond_coupon_event.py +3 -3
- lusid/models/bond_default_event.py +3 -3
- lusid/models/bond_principal_event.py +3 -3
- lusid/models/bonus_issue_event.py +3 -3
- lusid/models/call_on_intermediate_securities_event.py +3 -3
- lusid/models/capital_distribution_event.py +3 -3
- lusid/models/cash_dividend_event.py +3 -3
- lusid/models/cash_flow_event.py +3 -3
- lusid/models/cds_credit_event.py +3 -3
- lusid/models/cdx_credit_event.py +3 -3
- lusid/models/close_event.py +3 -3
- lusid/models/contract_initialisation_event.py +3 -3
- lusid/models/conversion_event.py +3 -3
- lusid/models/create_derived_transaction_portfolio_request.py +8 -2
- lusid/models/create_transaction_portfolio_request.py +8 -2
- lusid/models/credit_premium_cash_flow_event.py +3 -3
- lusid/models/deposit_close_event.py +3 -3
- lusid/models/deposit_interest_payment_event.py +3 -3
- lusid/models/dividend_option_event.py +3 -3
- lusid/models/dividend_reinvestment_event.py +3 -3
- lusid/models/drawdown_event.py +3 -3
- lusid/models/early_redemption_event.py +3 -3
- lusid/models/exercise_event.py +3 -3
- lusid/models/expiry_event.py +3 -3
- lusid/models/flexible_repo_cash_flow_event.py +3 -3
- lusid/models/flexible_repo_collateral_event.py +3 -3
- lusid/models/flexible_repo_full_closure_event.py +153 -0
- lusid/models/flexible_repo_interest_payment_event.py +3 -3
- lusid/models/flexible_repo_partial_closure_event.py +3 -3
- lusid/models/fund_calendar_entry.py +33 -46
- lusid/models/fund_valuation_request.py +157 -0
- lusid/models/fund_valuation_schedule.py +131 -0
- lusid/models/future_expiry_event.py +3 -3
- lusid/models/future_mark_to_market_event.py +3 -3
- lusid/models/fx_forward_settlement_event.py +3 -3
- lusid/models/informational_error_event.py +3 -3
- lusid/models/informational_event.py +3 -3
- lusid/models/instrument_event.py +6 -5
- lusid/models/instrument_event_type.py +1 -0
- lusid/models/intermediate_securities_distribution_event.py +3 -3
- lusid/models/loan_facility_contract_rollover_event.py +3 -3
- lusid/models/loan_interest_repayment_event.py +3 -3
- lusid/models/loan_principal_repayment_event.py +3 -3
- lusid/models/maturity_event.py +3 -3
- lusid/models/mbs_coupon_event.py +3 -3
- lusid/models/mbs_interest_deferral_event.py +3 -3
- lusid/models/mbs_interest_shortfall_event.py +3 -3
- lusid/models/mbs_principal_event.py +3 -3
- lusid/models/mbs_principal_write_off_event.py +3 -3
- lusid/models/merger_event.py +3 -3
- lusid/models/open_event.py +3 -3
- lusid/models/option_exercise_cash_event.py +3 -3
- lusid/models/option_exercise_physical_event.py +3 -3
- lusid/models/order_update_request.py +18 -4
- lusid/models/portfolio.py +7 -1
- lusid/models/portfolio_details.py +7 -1
- lusid/models/portfolio_settlement_configuration.py +91 -0
- lusid/models/portfolio_without_href.py +7 -1
- lusid/models/protection_payout_cash_flow_event.py +3 -3
- lusid/models/raw_vendor_event.py +3 -3
- lusid/models/repo_cash_flow_event.py +3 -3
- lusid/models/repo_partial_closure_event.py +3 -3
- lusid/models/repurchase_offer_event.py +3 -3
- lusid/models/reset_event.py +3 -3
- lusid/models/reverse_stock_split_event.py +3 -3
- lusid/models/scrip_dividend_event.py +3 -3
- lusid/models/settlement_configuration_category.py +82 -0
- lusid/models/spin_off_event.py +3 -3
- lusid/models/stock_dividend_event.py +3 -3
- lusid/models/stock_split_event.py +3 -3
- lusid/models/swap_cash_flow_event.py +3 -3
- lusid/models/swap_principal_event.py +3 -3
- lusid/models/tender_event.py +3 -3
- lusid/models/term_deposit_interest_event.py +3 -3
- lusid/models/term_deposit_principal_event.py +3 -3
- lusid/models/transaction_type_movement.py +9 -2
- lusid/models/transition_event.py +3 -3
- lusid/models/trigger_event.py +3 -3
- lusid/models/update_deposit_amount_event.py +3 -3
- lusid/models/valuation_point_fund_calendar_entry.py +181 -0
- {lusid_sdk-2.1.897.dist-info → lusid_sdk-2.1.899.dist-info}/METADATA +9 -2
- {lusid_sdk-2.1.897.dist-info → lusid_sdk-2.1.899.dist-info}/RECORD +91 -85
- {lusid_sdk-2.1.897.dist-info → lusid_sdk-2.1.899.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -510,6 +510,7 @@ from lusid.models.flexible_loan import FlexibleLoan
|
|
510
510
|
from lusid.models.flexible_repo import FlexibleRepo
|
511
511
|
from lusid.models.flexible_repo_cash_flow_event import FlexibleRepoCashFlowEvent
|
512
512
|
from lusid.models.flexible_repo_collateral_event import FlexibleRepoCollateralEvent
|
513
|
+
from lusid.models.flexible_repo_full_closure_event import FlexibleRepoFullClosureEvent
|
513
514
|
from lusid.models.flexible_repo_interest_payment_event import FlexibleRepoInterestPaymentEvent
|
514
515
|
from lusid.models.flexible_repo_partial_closure_event import FlexibleRepoPartialClosureEvent
|
515
516
|
from lusid.models.float_schedule import FloatSchedule
|
@@ -535,6 +536,8 @@ from lusid.models.fund_properties import FundProperties
|
|
535
536
|
from lusid.models.fund_request import FundRequest
|
536
537
|
from lusid.models.fund_share_class import FundShareClass
|
537
538
|
from lusid.models.fund_valuation_point_data import FundValuationPointData
|
539
|
+
from lusid.models.fund_valuation_request import FundValuationRequest
|
540
|
+
from lusid.models.fund_valuation_schedule import FundValuationSchedule
|
538
541
|
from lusid.models.funding_leg import FundingLeg
|
539
542
|
from lusid.models.funding_leg_options import FundingLegOptions
|
540
543
|
from lusid.models.future import Future
|
@@ -919,6 +922,7 @@ from lusid.models.portfolio_reconciliation_request import PortfolioReconciliatio
|
|
919
922
|
from lusid.models.portfolio_result_data_key_rule import PortfolioResultDataKeyRule
|
920
923
|
from lusid.models.portfolio_return_breakdown import PortfolioReturnBreakdown
|
921
924
|
from lusid.models.portfolio_search_result import PortfolioSearchResult
|
925
|
+
from lusid.models.portfolio_settlement_configuration import PortfolioSettlementConfiguration
|
922
926
|
from lusid.models.portfolio_trade_ticket import PortfolioTradeTicket
|
923
927
|
from lusid.models.portfolio_type import PortfolioType
|
924
928
|
from lusid.models.portfolio_without_href import PortfolioWithoutHref
|
@@ -1134,6 +1138,7 @@ from lusid.models.set_person_properties_request import SetPersonPropertiesReques
|
|
1134
1138
|
from lusid.models.set_share_class_instruments_request import SetShareClassInstrumentsRequest
|
1135
1139
|
from lusid.models.set_transaction_configuration_alias import SetTransactionConfigurationAlias
|
1136
1140
|
from lusid.models.set_transaction_configuration_source_request import SetTransactionConfigurationSourceRequest
|
1141
|
+
from lusid.models.settlement_configuration_category import SettlementConfigurationCategory
|
1137
1142
|
from lusid.models.settlement_cycle import SettlementCycle
|
1138
1143
|
from lusid.models.settlement_instruction_request import SettlementInstructionRequest
|
1139
1144
|
from lusid.models.settlement_schedule import SettlementSchedule
|
@@ -1340,6 +1345,7 @@ from lusid.models.user import User
|
|
1340
1345
|
from lusid.models.valuation_point_data_query_parameters import ValuationPointDataQueryParameters
|
1341
1346
|
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
1342
1347
|
from lusid.models.valuation_point_data_response import ValuationPointDataResponse
|
1348
|
+
from lusid.models.valuation_point_fund_calendar_entry import ValuationPointFundCalendarEntry
|
1343
1349
|
from lusid.models.valuation_point_overview import ValuationPointOverview
|
1344
1350
|
from lusid.models.valuation_point_resource_list_of_accounted_transaction import ValuationPointResourceListOfAccountedTransaction
|
1345
1351
|
from lusid.models.valuation_point_resource_list_of_fund_journal_entry_line import ValuationPointResourceListOfFundJournalEntryLine
|
@@ -1878,6 +1884,7 @@ __all__ = [
|
|
1878
1884
|
"FlexibleRepo",
|
1879
1885
|
"FlexibleRepoCashFlowEvent",
|
1880
1886
|
"FlexibleRepoCollateralEvent",
|
1887
|
+
"FlexibleRepoFullClosureEvent",
|
1881
1888
|
"FlexibleRepoInterestPaymentEvent",
|
1882
1889
|
"FlexibleRepoPartialClosureEvent",
|
1883
1890
|
"FloatSchedule",
|
@@ -1903,6 +1910,8 @@ __all__ = [
|
|
1903
1910
|
"FundRequest",
|
1904
1911
|
"FundShareClass",
|
1905
1912
|
"FundValuationPointData",
|
1913
|
+
"FundValuationRequest",
|
1914
|
+
"FundValuationSchedule",
|
1906
1915
|
"FundingLeg",
|
1907
1916
|
"FundingLegOptions",
|
1908
1917
|
"Future",
|
@@ -2287,6 +2296,7 @@ __all__ = [
|
|
2287
2296
|
"PortfolioResultDataKeyRule",
|
2288
2297
|
"PortfolioReturnBreakdown",
|
2289
2298
|
"PortfolioSearchResult",
|
2299
|
+
"PortfolioSettlementConfiguration",
|
2290
2300
|
"PortfolioTradeTicket",
|
2291
2301
|
"PortfolioType",
|
2292
2302
|
"PortfolioWithoutHref",
|
@@ -2502,6 +2512,7 @@ __all__ = [
|
|
2502
2512
|
"SetShareClassInstrumentsRequest",
|
2503
2513
|
"SetTransactionConfigurationAlias",
|
2504
2514
|
"SetTransactionConfigurationSourceRequest",
|
2515
|
+
"SettlementConfigurationCategory",
|
2505
2516
|
"SettlementCycle",
|
2506
2517
|
"SettlementInstructionRequest",
|
2507
2518
|
"SettlementSchedule",
|
@@ -2708,6 +2719,7 @@ __all__ = [
|
|
2708
2719
|
"ValuationPointDataQueryParameters",
|
2709
2720
|
"ValuationPointDataRequest",
|
2710
2721
|
"ValuationPointDataResponse",
|
2722
|
+
"ValuationPointFundCalendarEntry",
|
2711
2723
|
"ValuationPointOverview",
|
2712
2724
|
"ValuationPointResourceListOfAccountedTransaction",
|
2713
2725
|
"ValuationPointResourceListOfFundJournalEntryLine",
|
lusid/api/funds_api.py
CHANGED
@@ -36,6 +36,8 @@ from lusid.models.fund import Fund
|
|
36
36
|
from lusid.models.fund_definition_request import FundDefinitionRequest
|
37
37
|
from lusid.models.fund_properties import FundProperties
|
38
38
|
from lusid.models.fund_request import FundRequest
|
39
|
+
from lusid.models.fund_valuation_request import FundValuationRequest
|
40
|
+
from lusid.models.list_aggregation_response import ListAggregationResponse
|
39
41
|
from lusid.models.model_property import ModelProperty
|
40
42
|
from lusid.models.operation import Operation
|
41
43
|
from lusid.models.paged_resource_list_of_fee import PagedResourceListOfFee
|
@@ -2444,6 +2446,189 @@ class FundsApi:
|
|
2444
2446
|
_request_auth=_params.get('_request_auth'))
|
2445
2447
|
|
2446
2448
|
|
2449
|
+
@overload
|
2450
|
+
async def get_valuation_for_fund(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund")], code : Annotated[StrictStr, Field(..., description="The code of the Fund")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided runs against the specified NAV Type, otherwise the Primary NAV Type will be used.")] = None, fund_valuation_request : Annotated[Optional[FundValuationRequest], Field(description="The request specifying the dates (or DiaryEntry) on which to calculate a set of valuation metrics")] = None, **kwargs) -> ListAggregationResponse: # noqa: E501
|
2451
|
+
...
|
2452
|
+
|
2453
|
+
@overload
|
2454
|
+
def get_valuation_for_fund(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund")], code : Annotated[StrictStr, Field(..., description="The code of the Fund")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided runs against the specified NAV Type, otherwise the Primary NAV Type will be used.")] = None, fund_valuation_request : Annotated[Optional[FundValuationRequest], Field(description="The request specifying the dates (or DiaryEntry) on which to calculate a set of valuation metrics")] = None, async_req: Optional[bool]=True, **kwargs) -> ListAggregationResponse: # noqa: E501
|
2455
|
+
...
|
2456
|
+
|
2457
|
+
@validate_arguments
|
2458
|
+
def get_valuation_for_fund(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund")], code : Annotated[StrictStr, Field(..., description="The code of the Fund")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided runs against the specified NAV Type, otherwise the Primary NAV Type will be used.")] = None, fund_valuation_request : Annotated[Optional[FundValuationRequest], Field(description="The request specifying the dates (or DiaryEntry) on which to calculate a set of valuation metrics")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ListAggregationResponse, Awaitable[ListAggregationResponse]]: # noqa: E501
|
2459
|
+
"""[EXPERIMENTAL] GetValuationForFund: Perform valuation for a Fund # noqa: E501
|
2460
|
+
|
2461
|
+
Perform valuation on a specified Fund. # noqa: E501
|
2462
|
+
This method makes a synchronous HTTP request by default. To make an
|
2463
|
+
asynchronous HTTP request, please pass async_req=True
|
2464
|
+
|
2465
|
+
>>> thread = api.get_valuation_for_fund(scope, code, nav_type_code, fund_valuation_request, async_req=True)
|
2466
|
+
>>> result = thread.get()
|
2467
|
+
|
2468
|
+
:param scope: The scope of the Fund (required)
|
2469
|
+
:type scope: str
|
2470
|
+
:param code: The code of the Fund (required)
|
2471
|
+
:type code: str
|
2472
|
+
:param nav_type_code: When provided runs against the specified NAV Type, otherwise the Primary NAV Type will be used.
|
2473
|
+
:type nav_type_code: str
|
2474
|
+
:param fund_valuation_request: The request specifying the dates (or DiaryEntry) on which to calculate a set of valuation metrics
|
2475
|
+
:type fund_valuation_request: FundValuationRequest
|
2476
|
+
:param async_req: Whether to execute the request asynchronously.
|
2477
|
+
:type async_req: bool, optional
|
2478
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2479
|
+
:param opts: Configuration options for this request
|
2480
|
+
:type opts: ConfigurationOptions, optional
|
2481
|
+
:return: Returns the result object.
|
2482
|
+
If the method is called asynchronously,
|
2483
|
+
returns the request thread.
|
2484
|
+
:rtype: ListAggregationResponse
|
2485
|
+
"""
|
2486
|
+
kwargs['_return_http_data_only'] = True
|
2487
|
+
if '_preload_content' in kwargs:
|
2488
|
+
message = "Error! Please call the get_valuation_for_fund_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
2489
|
+
raise ValueError(message)
|
2490
|
+
if async_req is not None:
|
2491
|
+
kwargs['async_req'] = async_req
|
2492
|
+
return self.get_valuation_for_fund_with_http_info(scope, code, nav_type_code, fund_valuation_request, **kwargs) # noqa: E501
|
2493
|
+
|
2494
|
+
@validate_arguments
|
2495
|
+
def get_valuation_for_fund_with_http_info(self, scope : Annotated[StrictStr, Field(..., description="The scope of the Fund")], code : Annotated[StrictStr, Field(..., description="The code of the Fund")], nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided runs against the specified NAV Type, otherwise the Primary NAV Type will be used.")] = None, fund_valuation_request : Annotated[Optional[FundValuationRequest], Field(description="The request specifying the dates (or DiaryEntry) on which to calculate a set of valuation metrics")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
2496
|
+
"""[EXPERIMENTAL] GetValuationForFund: Perform valuation for a Fund # noqa: E501
|
2497
|
+
|
2498
|
+
Perform valuation on a specified Fund. # noqa: E501
|
2499
|
+
This method makes a synchronous HTTP request by default. To make an
|
2500
|
+
asynchronous HTTP request, please pass async_req=True
|
2501
|
+
|
2502
|
+
>>> thread = api.get_valuation_for_fund_with_http_info(scope, code, nav_type_code, fund_valuation_request, async_req=True)
|
2503
|
+
>>> result = thread.get()
|
2504
|
+
|
2505
|
+
:param scope: The scope of the Fund (required)
|
2506
|
+
:type scope: str
|
2507
|
+
:param code: The code of the Fund (required)
|
2508
|
+
:type code: str
|
2509
|
+
:param nav_type_code: When provided runs against the specified NAV Type, otherwise the Primary NAV Type will be used.
|
2510
|
+
:type nav_type_code: str
|
2511
|
+
:param fund_valuation_request: The request specifying the dates (or DiaryEntry) on which to calculate a set of valuation metrics
|
2512
|
+
:type fund_valuation_request: FundValuationRequest
|
2513
|
+
:param async_req: Whether to execute the request asynchronously.
|
2514
|
+
:type async_req: bool, optional
|
2515
|
+
:param _preload_content: if False, the ApiResponse.data will
|
2516
|
+
be set to none and raw_data will store the
|
2517
|
+
HTTP response body without reading/decoding.
|
2518
|
+
Default is True.
|
2519
|
+
:type _preload_content: bool, optional
|
2520
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
2521
|
+
object with status code, headers, etc
|
2522
|
+
:type _return_http_data_only: bool, optional
|
2523
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2524
|
+
:param opts: Configuration options for this request
|
2525
|
+
:type opts: ConfigurationOptions, optional
|
2526
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2527
|
+
request; this effectively ignores the authentication
|
2528
|
+
in the spec for a single request.
|
2529
|
+
:type _request_auth: dict, optional
|
2530
|
+
:type _content_type: string, optional: force content-type for the request
|
2531
|
+
:return: Returns the result object.
|
2532
|
+
If the method is called asynchronously,
|
2533
|
+
returns the request thread.
|
2534
|
+
:rtype: tuple(ListAggregationResponse, status_code(int), headers(HTTPHeaderDict))
|
2535
|
+
"""
|
2536
|
+
|
2537
|
+
_params = locals()
|
2538
|
+
|
2539
|
+
_all_params = [
|
2540
|
+
'scope',
|
2541
|
+
'code',
|
2542
|
+
'nav_type_code',
|
2543
|
+
'fund_valuation_request'
|
2544
|
+
]
|
2545
|
+
_all_params.extend(
|
2546
|
+
[
|
2547
|
+
'async_req',
|
2548
|
+
'_return_http_data_only',
|
2549
|
+
'_preload_content',
|
2550
|
+
'_request_timeout',
|
2551
|
+
'_request_auth',
|
2552
|
+
'_content_type',
|
2553
|
+
'_headers',
|
2554
|
+
'opts'
|
2555
|
+
]
|
2556
|
+
)
|
2557
|
+
|
2558
|
+
# validate the arguments
|
2559
|
+
for _key, _val in _params['kwargs'].items():
|
2560
|
+
if _key not in _all_params:
|
2561
|
+
raise ApiTypeError(
|
2562
|
+
"Got an unexpected keyword argument '%s'"
|
2563
|
+
" to method get_valuation_for_fund" % _key
|
2564
|
+
)
|
2565
|
+
_params[_key] = _val
|
2566
|
+
del _params['kwargs']
|
2567
|
+
|
2568
|
+
_collection_formats = {}
|
2569
|
+
|
2570
|
+
# process the path parameters
|
2571
|
+
_path_params = {}
|
2572
|
+
if _params['scope']:
|
2573
|
+
_path_params['scope'] = _params['scope']
|
2574
|
+
|
2575
|
+
if _params['code']:
|
2576
|
+
_path_params['code'] = _params['code']
|
2577
|
+
|
2578
|
+
|
2579
|
+
# process the query parameters
|
2580
|
+
_query_params = []
|
2581
|
+
if _params.get('nav_type_code') is not None: # noqa: E501
|
2582
|
+
_query_params.append(('navTypeCode', _params['nav_type_code']))
|
2583
|
+
|
2584
|
+
# process the header parameters
|
2585
|
+
_header_params = dict(_params.get('_headers', {}))
|
2586
|
+
# process the form parameters
|
2587
|
+
_form_params = []
|
2588
|
+
_files = {}
|
2589
|
+
# process the body parameter
|
2590
|
+
_body_params = None
|
2591
|
+
if _params['fund_valuation_request'] is not None:
|
2592
|
+
_body_params = _params['fund_valuation_request']
|
2593
|
+
|
2594
|
+
# set the HTTP header `Accept`
|
2595
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2596
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
2597
|
+
|
2598
|
+
# set the HTTP header `Content-Type`
|
2599
|
+
_content_types_list = _params.get('_content_type',
|
2600
|
+
self.api_client.select_header_content_type(
|
2601
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
2602
|
+
if _content_types_list:
|
2603
|
+
_header_params['Content-Type'] = _content_types_list
|
2604
|
+
|
2605
|
+
# authentication setting
|
2606
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
2607
|
+
|
2608
|
+
_response_types_map = {
|
2609
|
+
'200': "ListAggregationResponse",
|
2610
|
+
'400': "LusidValidationProblemDetails",
|
2611
|
+
}
|
2612
|
+
|
2613
|
+
return self.api_client.call_api(
|
2614
|
+
'/api/funds/{scope}/{code}/$valuation', 'POST',
|
2615
|
+
_path_params,
|
2616
|
+
_query_params,
|
2617
|
+
_header_params,
|
2618
|
+
body=_body_params,
|
2619
|
+
post_params=_form_params,
|
2620
|
+
files=_files,
|
2621
|
+
response_types_map=_response_types_map,
|
2622
|
+
auth_settings=_auth_settings,
|
2623
|
+
async_req=_params.get('async_req'),
|
2624
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2625
|
+
_preload_content=_params.get('_preload_content', True),
|
2626
|
+
_request_timeout=_params.get('_request_timeout'),
|
2627
|
+
opts=_params.get('opts'),
|
2628
|
+
collection_formats=_collection_formats,
|
2629
|
+
_request_auth=_params.get('_request_auth'))
|
2630
|
+
|
2631
|
+
|
2447
2632
|
@overload
|
2448
2633
|
async def get_valuation_point_data(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.")], valuation_point_data_query_parameters : Annotated[ValuationPointDataQueryParameters, Field(..., description="The arguments to use for querying the Valuation Point data")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Fund definition. Defaults to returning the latest version of the Fund definition if not specified.")] = None, nav_type_code : Annotated[Optional[StrictStr], Field( description="When provided runs against the specified NAV Type, otherwise the Primary NAV Type will be used.")] = None, **kwargs) -> ValuationPointDataResponse: # noqa: E501
|
2449
2634
|
...
|
@@ -4606,7 +4791,7 @@ class FundsApi:
|
|
4606
4791
|
def patch_fund(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.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902.")], async_req: Optional[bool]=None, **kwargs) -> Union[Fund, Awaitable[Fund]]: # noqa: E501
|
4607
4792
|
"""[EXPERIMENTAL] PatchFund: Patch a Fund. # noqa: E501
|
4608
4793
|
|
4609
|
-
Update fields on a Fund. The behaviour is defined by the JSON Patch specification. Currently supported fields are: DisplayName, Description,
|
4794
|
+
Update fields on a Fund. The behaviour is defined by the JSON Patch specification. Currently supported fields are: DisplayName, Description, PortfolioIds, FundConfigurationId, ShareClassInstruments, Type, InceptionDate, DecimalPlaces, PrimaryNavType, AdditionalNavTypes, AborId, YearEndDate. # noqa: E501
|
4610
4795
|
This method makes a synchronous HTTP request by default. To make an
|
4611
4796
|
asynchronous HTTP request, please pass async_req=True
|
4612
4797
|
|
@@ -4641,7 +4826,7 @@ class FundsApi:
|
|
4641
4826
|
def patch_fund_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.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902.")], **kwargs) -> ApiResponse: # noqa: E501
|
4642
4827
|
"""[EXPERIMENTAL] PatchFund: Patch a Fund. # noqa: E501
|
4643
4828
|
|
4644
|
-
Update fields on a Fund. The behaviour is defined by the JSON Patch specification. Currently supported fields are: DisplayName, Description,
|
4829
|
+
Update fields on a Fund. The behaviour is defined by the JSON Patch specification. Currently supported fields are: DisplayName, Description, PortfolioIds, FundConfigurationId, ShareClassInstruments, Type, InceptionDate, DecimalPlaces, PrimaryNavType, AdditionalNavTypes, AborId, YearEndDate. # noqa: E501
|
4645
4830
|
This method makes a synchronous HTTP request by default. To make an
|
4646
4831
|
asynchronous HTTP request, please pass async_req=True
|
4647
4832
|
|
@@ -101,22 +101,22 @@ class TransactionPortfoliosApi:
|
|
101
101
|
|
102
102
|
|
103
103
|
@overload
|
104
|
-
async def adjust_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The selected set of holdings to adjust to the provided targets for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, **kwargs) -> AdjustHolding: # noqa: E501
|
104
|
+
async def adjust_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The selected set of holdings to adjust to the provided targets for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, override_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter to override movement name for the set holdings.")] = None, override_offset_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl")] = None, **kwargs) -> AdjustHolding: # noqa: E501
|
105
105
|
...
|
106
106
|
|
107
107
|
@overload
|
108
|
-
def adjust_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The selected set of holdings to adjust to the provided targets for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, async_req: Optional[bool]=True, **kwargs) -> AdjustHolding: # noqa: E501
|
108
|
+
def adjust_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The selected set of holdings to adjust to the provided targets for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, override_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter to override movement name for the set holdings.")] = None, override_offset_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl")] = None, async_req: Optional[bool]=True, **kwargs) -> AdjustHolding: # noqa: E501
|
109
109
|
...
|
110
110
|
|
111
111
|
@validate_arguments
|
112
|
-
def adjust_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The selected set of holdings to adjust to the provided targets for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[AdjustHolding, Awaitable[AdjustHolding]]: # noqa: E501
|
112
|
+
def adjust_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The selected set of holdings to adjust to the provided targets for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, override_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter to override movement name for the set holdings.")] = None, override_offset_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[AdjustHolding, Awaitable[AdjustHolding]]: # noqa: E501
|
113
113
|
"""AdjustHoldings: Adjust holdings # noqa: E501
|
114
114
|
|
115
115
|
Adjust one or more holdings of the specified transaction portfolio to the provided targets. LUSID will automatically construct adjustment transactions to ensure that the holdings which have been adjusted are always set to the provided targets for the specified effective datetime. Read more about the difference between adjusting and setting holdings here https://support.lusid.com/docs/how-do-i-manually-adjust-or-set-holdings. # noqa: E501
|
116
116
|
This method makes a synchronous HTTP request by default. To make an
|
117
117
|
asynchronous HTTP request, please pass async_req=True
|
118
118
|
|
119
|
-
>>> thread = api.adjust_holdings(scope, code, effective_at, adjust_holding_request, reconciliation_methods, async_req=True)
|
119
|
+
>>> thread = api.adjust_holdings(scope, code, effective_at, adjust_holding_request, reconciliation_methods, override_movement_name, override_offset_movement_name, async_req=True)
|
120
120
|
>>> result = thread.get()
|
121
121
|
|
122
122
|
:param scope: The scope of the transaction portfolio. (required)
|
@@ -129,6 +129,10 @@ class TransactionPortfoliosApi:
|
|
129
129
|
:type adjust_holding_request: List[AdjustHoldingRequest]
|
130
130
|
:param reconciliation_methods: Optional parameter for specifying a reconciliation method: e.g. FxForward.
|
131
131
|
:type reconciliation_methods: List[str]
|
132
|
+
:param override_movement_name: Optional parameter to override movement name for the set holdings.
|
133
|
+
:type override_movement_name: str
|
134
|
+
:param override_offset_movement_name: Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl
|
135
|
+
:type override_offset_movement_name: str
|
132
136
|
:param async_req: Whether to execute the request asynchronously.
|
133
137
|
:type async_req: bool, optional
|
134
138
|
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
@@ -145,17 +149,17 @@ class TransactionPortfoliosApi:
|
|
145
149
|
raise ValueError(message)
|
146
150
|
if async_req is not None:
|
147
151
|
kwargs['async_req'] = async_req
|
148
|
-
return self.adjust_holdings_with_http_info(scope, code, effective_at, adjust_holding_request, reconciliation_methods, **kwargs) # noqa: E501
|
152
|
+
return self.adjust_holdings_with_http_info(scope, code, effective_at, adjust_holding_request, reconciliation_methods, override_movement_name, override_offset_movement_name, **kwargs) # noqa: E501
|
149
153
|
|
150
154
|
@validate_arguments
|
151
|
-
def adjust_holdings_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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The selected set of holdings to adjust to the provided targets for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
155
|
+
def adjust_holdings_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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The selected set of holdings to adjust to the provided targets for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, override_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter to override movement name for the set holdings.")] = None, override_offset_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
152
156
|
"""AdjustHoldings: Adjust holdings # noqa: E501
|
153
157
|
|
154
158
|
Adjust one or more holdings of the specified transaction portfolio to the provided targets. LUSID will automatically construct adjustment transactions to ensure that the holdings which have been adjusted are always set to the provided targets for the specified effective datetime. Read more about the difference between adjusting and setting holdings here https://support.lusid.com/docs/how-do-i-manually-adjust-or-set-holdings. # noqa: E501
|
155
159
|
This method makes a synchronous HTTP request by default. To make an
|
156
160
|
asynchronous HTTP request, please pass async_req=True
|
157
161
|
|
158
|
-
>>> thread = api.adjust_holdings_with_http_info(scope, code, effective_at, adjust_holding_request, reconciliation_methods, async_req=True)
|
162
|
+
>>> thread = api.adjust_holdings_with_http_info(scope, code, effective_at, adjust_holding_request, reconciliation_methods, override_movement_name, override_offset_movement_name, async_req=True)
|
159
163
|
>>> result = thread.get()
|
160
164
|
|
161
165
|
:param scope: The scope of the transaction portfolio. (required)
|
@@ -168,6 +172,10 @@ class TransactionPortfoliosApi:
|
|
168
172
|
:type adjust_holding_request: List[AdjustHoldingRequest]
|
169
173
|
:param reconciliation_methods: Optional parameter for specifying a reconciliation method: e.g. FxForward.
|
170
174
|
:type reconciliation_methods: List[str]
|
175
|
+
:param override_movement_name: Optional parameter to override movement name for the set holdings.
|
176
|
+
:type override_movement_name: str
|
177
|
+
:param override_offset_movement_name: Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl
|
178
|
+
:type override_offset_movement_name: str
|
171
179
|
:param async_req: Whether to execute the request asynchronously.
|
172
180
|
:type async_req: bool, optional
|
173
181
|
:param _preload_content: if False, the ApiResponse.data will
|
@@ -199,7 +207,9 @@ class TransactionPortfoliosApi:
|
|
199
207
|
'code',
|
200
208
|
'effective_at',
|
201
209
|
'adjust_holding_request',
|
202
|
-
'reconciliation_methods'
|
210
|
+
'reconciliation_methods',
|
211
|
+
'override_movement_name',
|
212
|
+
'override_offset_movement_name'
|
203
213
|
]
|
204
214
|
_all_params.extend(
|
205
215
|
[
|
@@ -244,6 +254,12 @@ class TransactionPortfoliosApi:
|
|
244
254
|
_query_params.append(('reconciliationMethods', _params['reconciliation_methods']))
|
245
255
|
_collection_formats['reconciliationMethods'] = 'multi'
|
246
256
|
|
257
|
+
if _params.get('override_movement_name') is not None: # noqa: E501
|
258
|
+
_query_params.append(('overrideMovementName', _params['override_movement_name']))
|
259
|
+
|
260
|
+
if _params.get('override_offset_movement_name') is not None: # noqa: E501
|
261
|
+
_query_params.append(('overrideOffsetMovementName', _params['override_offset_movement_name']))
|
262
|
+
|
247
263
|
# process the header parameters
|
248
264
|
_header_params = dict(_params.get('_headers', {}))
|
249
265
|
# process the form parameters
|
@@ -6734,7 +6750,7 @@ class TransactionPortfoliosApi:
|
|
6734
6750
|
def patch_portfolio_details(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.")], operation : Annotated[conlist(Operation), Field(..., description="The patch document.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which the updated or inserted details should become valid. Defaults to the current LUSID system datetime if not specified. Note that this will affect all bitemporal entities in the request, but will not be used for any perpetual entities.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PortfolioDetails, Awaitable[PortfolioDetails]]: # noqa: E501
|
6735
6751
|
"""PatchPortfolioDetails: Patch portfolio details # noqa: E501
|
6736
6752
|
|
6737
|
-
Create or update certain details for a particular transaction portfolio. Note that not all elements of a transaction portfolio definition are modifiable once it has been created due to the potential implications for data already stored. The behaviour is defined by the JSON Patch specification. Currently supported fields are: BaseCurrency, SubHoldingKeys, AmortisationMethod, TransactionTypeScope, CashGainLossCalculationDate, InstrumentEventConfiguration, AmortisationRuleSetId, TaxRuleSetScope. # noqa: E501
|
6753
|
+
Create or update certain details for a particular transaction portfolio. Note that not all elements of a transaction portfolio definition are modifiable once it has been created due to the potential implications for data already stored. The behaviour is defined by the JSON Patch specification. Currently supported fields are: BaseCurrency, SubHoldingKeys, AmortisationMethod, TransactionTypeScope, CashGainLossCalculationDate, InstrumentEventConfiguration, AmortisationRuleSetId, TaxRuleSetScope, SettlementConfiguration. # noqa: E501
|
6738
6754
|
This method makes a synchronous HTTP request by default. To make an
|
6739
6755
|
asynchronous HTTP request, please pass async_req=True
|
6740
6756
|
|
@@ -6771,7 +6787,7 @@ class TransactionPortfoliosApi:
|
|
6771
6787
|
def patch_portfolio_details_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.")], operation : Annotated[conlist(Operation), Field(..., description="The patch document.")], effective_at : Annotated[Optional[StrictStr], Field( description="The effective datetime or cut label at which the updated or inserted details should become valid. Defaults to the current LUSID system datetime if not specified. Note that this will affect all bitemporal entities in the request, but will not be used for any perpetual entities.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
6772
6788
|
"""PatchPortfolioDetails: Patch portfolio details # noqa: E501
|
6773
6789
|
|
6774
|
-
Create or update certain details for a particular transaction portfolio. Note that not all elements of a transaction portfolio definition are modifiable once it has been created due to the potential implications for data already stored. The behaviour is defined by the JSON Patch specification. Currently supported fields are: BaseCurrency, SubHoldingKeys, AmortisationMethod, TransactionTypeScope, CashGainLossCalculationDate, InstrumentEventConfiguration, AmortisationRuleSetId, TaxRuleSetScope. # noqa: E501
|
6790
|
+
Create or update certain details for a particular transaction portfolio. Note that not all elements of a transaction portfolio definition are modifiable once it has been created due to the potential implications for data already stored. The behaviour is defined by the JSON Patch specification. Currently supported fields are: BaseCurrency, SubHoldingKeys, AmortisationMethod, TransactionTypeScope, CashGainLossCalculationDate, InstrumentEventConfiguration, AmortisationRuleSetId, TaxRuleSetScope, SettlementConfiguration. # noqa: E501
|
6775
6791
|
This method makes a synchronous HTTP request by default. To make an
|
6776
6792
|
asynchronous HTTP request, please pass async_req=True
|
6777
6793
|
|
@@ -7313,22 +7329,22 @@ class TransactionPortfoliosApi:
|
|
7313
7329
|
|
7314
7330
|
|
7315
7331
|
@overload
|
7316
|
-
async def set_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The complete set of target holdings for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, **kwargs) -> AdjustHolding: # noqa: E501
|
7332
|
+
async def set_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The complete set of target holdings for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, override_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter to override movement name for the set holdings.")] = None, override_offset_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl")] = None, **kwargs) -> AdjustHolding: # noqa: E501
|
7317
7333
|
...
|
7318
7334
|
|
7319
7335
|
@overload
|
7320
|
-
def set_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The complete set of target holdings for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, async_req: Optional[bool]=True, **kwargs) -> AdjustHolding: # noqa: E501
|
7336
|
+
def set_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The complete set of target holdings for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, override_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter to override movement name for the set holdings.")] = None, override_offset_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl")] = None, async_req: Optional[bool]=True, **kwargs) -> AdjustHolding: # noqa: E501
|
7321
7337
|
...
|
7322
7338
|
|
7323
7339
|
@validate_arguments
|
7324
|
-
def set_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The complete set of target holdings for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[AdjustHolding, Awaitable[AdjustHolding]]: # noqa: E501
|
7340
|
+
def set_holdings(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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The complete set of target holdings for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, override_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter to override movement name for the set holdings.")] = None, override_offset_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[AdjustHolding, Awaitable[AdjustHolding]]: # noqa: E501
|
7325
7341
|
"""SetHoldings: Set holdings # noqa: E501
|
7326
7342
|
|
7327
7343
|
Set the holdings of the specified transaction portfolio to the provided targets. LUSID will automatically construct adjustment transactions to ensure that the entire set of holdings for the transaction portfolio are always set to the provided targets for the specified effective datetime. Read more about the difference between adjusting and setting holdings here https://support.lusid.com/docs/how-do-i-manually-adjust-or-set-holdings. # noqa: E501
|
7328
7344
|
This method makes a synchronous HTTP request by default. To make an
|
7329
7345
|
asynchronous HTTP request, please pass async_req=True
|
7330
7346
|
|
7331
|
-
>>> thread = api.set_holdings(scope, code, effective_at, adjust_holding_request, reconciliation_methods, async_req=True)
|
7347
|
+
>>> thread = api.set_holdings(scope, code, effective_at, adjust_holding_request, reconciliation_methods, override_movement_name, override_offset_movement_name, async_req=True)
|
7332
7348
|
>>> result = thread.get()
|
7333
7349
|
|
7334
7350
|
:param scope: The scope of the transaction portfolio. (required)
|
@@ -7341,6 +7357,10 @@ class TransactionPortfoliosApi:
|
|
7341
7357
|
:type adjust_holding_request: List[AdjustHoldingRequest]
|
7342
7358
|
:param reconciliation_methods: Optional parameter for specifying a reconciliation method: e.g. FxForward.
|
7343
7359
|
:type reconciliation_methods: List[str]
|
7360
|
+
:param override_movement_name: Optional parameter to override movement name for the set holdings.
|
7361
|
+
:type override_movement_name: str
|
7362
|
+
:param override_offset_movement_name: Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl
|
7363
|
+
:type override_offset_movement_name: str
|
7344
7364
|
:param async_req: Whether to execute the request asynchronously.
|
7345
7365
|
:type async_req: bool, optional
|
7346
7366
|
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
@@ -7357,17 +7377,17 @@ class TransactionPortfoliosApi:
|
|
7357
7377
|
raise ValueError(message)
|
7358
7378
|
if async_req is not None:
|
7359
7379
|
kwargs['async_req'] = async_req
|
7360
|
-
return self.set_holdings_with_http_info(scope, code, effective_at, adjust_holding_request, reconciliation_methods, **kwargs) # noqa: E501
|
7380
|
+
return self.set_holdings_with_http_info(scope, code, effective_at, adjust_holding_request, reconciliation_methods, override_movement_name, override_offset_movement_name, **kwargs) # noqa: E501
|
7361
7381
|
|
7362
7382
|
@validate_arguments
|
7363
|
-
def set_holdings_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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The complete set of target holdings for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
7383
|
+
def set_holdings_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.")], effective_at : Annotated[StrictStr, Field(..., description="The effective datetime or cut label at which the holdings should be set to the provided targets.")], adjust_holding_request : Annotated[conlist(AdjustHoldingRequest), Field(..., description="The complete set of target holdings for the transaction portfolio.")], reconciliation_methods : Annotated[Optional[conlist(StrictStr)], Field(description="Optional parameter for specifying a reconciliation method: e.g. FxForward.")] = None, override_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter to override movement name for the set holdings.")] = None, override_offset_movement_name : Annotated[Optional[StrictStr], Field( description="Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
7364
7384
|
"""SetHoldings: Set holdings # noqa: E501
|
7365
7385
|
|
7366
7386
|
Set the holdings of the specified transaction portfolio to the provided targets. LUSID will automatically construct adjustment transactions to ensure that the entire set of holdings for the transaction portfolio are always set to the provided targets for the specified effective datetime. Read more about the difference between adjusting and setting holdings here https://support.lusid.com/docs/how-do-i-manually-adjust-or-set-holdings. # noqa: E501
|
7367
7387
|
This method makes a synchronous HTTP request by default. To make an
|
7368
7388
|
asynchronous HTTP request, please pass async_req=True
|
7369
7389
|
|
7370
|
-
>>> thread = api.set_holdings_with_http_info(scope, code, effective_at, adjust_holding_request, reconciliation_methods, async_req=True)
|
7390
|
+
>>> thread = api.set_holdings_with_http_info(scope, code, effective_at, adjust_holding_request, reconciliation_methods, override_movement_name, override_offset_movement_name, async_req=True)
|
7371
7391
|
>>> result = thread.get()
|
7372
7392
|
|
7373
7393
|
:param scope: The scope of the transaction portfolio. (required)
|
@@ -7380,6 +7400,10 @@ class TransactionPortfoliosApi:
|
|
7380
7400
|
:type adjust_holding_request: List[AdjustHoldingRequest]
|
7381
7401
|
:param reconciliation_methods: Optional parameter for specifying a reconciliation method: e.g. FxForward.
|
7382
7402
|
:type reconciliation_methods: List[str]
|
7403
|
+
:param override_movement_name: Optional parameter to override movement name for the set holdings.
|
7404
|
+
:type override_movement_name: str
|
7405
|
+
:param override_offset_movement_name: Optional parameter will create an additional offset movement for the set holdings with this new name and transaction type: CarryAsPnl
|
7406
|
+
:type override_offset_movement_name: str
|
7383
7407
|
:param async_req: Whether to execute the request asynchronously.
|
7384
7408
|
:type async_req: bool, optional
|
7385
7409
|
:param _preload_content: if False, the ApiResponse.data will
|
@@ -7411,7 +7435,9 @@ class TransactionPortfoliosApi:
|
|
7411
7435
|
'code',
|
7412
7436
|
'effective_at',
|
7413
7437
|
'adjust_holding_request',
|
7414
|
-
'reconciliation_methods'
|
7438
|
+
'reconciliation_methods',
|
7439
|
+
'override_movement_name',
|
7440
|
+
'override_offset_movement_name'
|
7415
7441
|
]
|
7416
7442
|
_all_params.extend(
|
7417
7443
|
[
|
@@ -7456,6 +7482,12 @@ class TransactionPortfoliosApi:
|
|
7456
7482
|
_query_params.append(('reconciliationMethods', _params['reconciliation_methods']))
|
7457
7483
|
_collection_formats['reconciliationMethods'] = 'multi'
|
7458
7484
|
|
7485
|
+
if _params.get('override_movement_name') is not None: # noqa: E501
|
7486
|
+
_query_params.append(('overrideMovementName', _params['override_movement_name']))
|
7487
|
+
|
7488
|
+
if _params.get('override_offset_movement_name') is not None: # noqa: E501
|
7489
|
+
_query_params.append(('overrideOffsetMovementName', _params['override_offset_movement_name']))
|
7490
|
+
|
7459
7491
|
# process the header parameters
|
7460
7492
|
_header_params = dict(_params.get('_headers', {}))
|
7461
7493
|
# process the form parameters
|
lusid/configuration.py
CHANGED
@@ -128,7 +128,7 @@ class Configuration:
|
|
128
128
|
rate_limit_retries=DEFAULT_RATE_LIMIT_RETRIES) -> None:
|
129
129
|
"""Constructor
|
130
130
|
"""
|
131
|
-
self._base_path = "https://
|
131
|
+
self._base_path = "https://fbn-prd.lusid.com/api" if host is None else host
|
132
132
|
"""Default Base url
|
133
133
|
"""
|
134
134
|
self.server_index = 0 if server_index is None and host is None else server_index
|
@@ -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.
|
448
|
+
"Version of the API: 0.11.8138\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
@@ -456,7 +456,7 @@ class Configuration:
|
|
456
456
|
"""
|
457
457
|
return [
|
458
458
|
{
|
459
|
-
'url': "https://
|
459
|
+
'url': "https://fbn-prd.lusid.com/api",
|
460
460
|
'description': "No description provided",
|
461
461
|
}
|
462
462
|
]
|