lusid-sdk 2.1.895__py3-none-any.whl → 2.1.897__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 +8 -0
- lusid/api/funds_api.py +230 -1
- lusid/api/transaction_portfolios_api.py +557 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +8 -0
- lusid/models/resource_list_of_transaction_settlement_instruction.py +121 -0
- lusid/models/settlement_instruction_request.py +101 -0
- lusid/models/single_valuation_point_query_parameters.py +81 -0
- lusid/models/transaction_settlement_instruction.py +96 -0
- {lusid_sdk-2.1.895.dist-info → lusid_sdk-2.1.897.dist-info}/METADATA +9 -1
- {lusid_sdk-2.1.895.dist-info → lusid_sdk-2.1.897.dist-info}/RECORD +12 -8
- {lusid_sdk-2.1.895.dist-info → lusid_sdk-2.1.897.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -1091,6 +1091,7 @@ from lusid.models.resource_list_of_side_definition import ResourceListOfSideDefi
|
|
1091
1091
|
from lusid.models.resource_list_of_string import ResourceListOfString
|
1092
1092
|
from lusid.models.resource_list_of_tax_rule_set import ResourceListOfTaxRuleSet
|
1093
1093
|
from lusid.models.resource_list_of_transaction import ResourceListOfTransaction
|
1094
|
+
from lusid.models.resource_list_of_transaction_settlement_instruction import ResourceListOfTransactionSettlementInstruction
|
1094
1095
|
from lusid.models.resource_list_of_transaction_type import ResourceListOfTransactionType
|
1095
1096
|
from lusid.models.resource_list_of_value_type import ResourceListOfValueType
|
1096
1097
|
from lusid.models.response_meta_data import ResponseMetaData
|
@@ -1134,6 +1135,7 @@ from lusid.models.set_share_class_instruments_request import SetShareClassInstru
|
|
1134
1135
|
from lusid.models.set_transaction_configuration_alias import SetTransactionConfigurationAlias
|
1135
1136
|
from lusid.models.set_transaction_configuration_source_request import SetTransactionConfigurationSourceRequest
|
1136
1137
|
from lusid.models.settlement_cycle import SettlementCycle
|
1138
|
+
from lusid.models.settlement_instruction_request import SettlementInstructionRequest
|
1137
1139
|
from lusid.models.settlement_schedule import SettlementSchedule
|
1138
1140
|
from lusid.models.share_class_amount import ShareClassAmount
|
1139
1141
|
from lusid.models.share_class_breakdown import ShareClassBreakdown
|
@@ -1149,6 +1151,7 @@ from lusid.models.sides_definition_request import SidesDefinitionRequest
|
|
1149
1151
|
from lusid.models.simple_cash_flow_loan import SimpleCashFlowLoan
|
1150
1152
|
from lusid.models.simple_instrument import SimpleInstrument
|
1151
1153
|
from lusid.models.simple_rounding_convention import SimpleRoundingConvention
|
1154
|
+
from lusid.models.single_valuation_point_query_parameters import SingleValuationPointQueryParameters
|
1152
1155
|
from lusid.models.sort_order import SortOrder
|
1153
1156
|
from lusid.models.specific_holding_pricing_info import SpecificHoldingPricingInfo
|
1154
1157
|
from lusid.models.spin_off_event import SpinOffEvent
|
@@ -1220,6 +1223,7 @@ from lusid.models.transaction_request import TransactionRequest
|
|
1220
1223
|
from lusid.models.transaction_roles import TransactionRoles
|
1221
1224
|
from lusid.models.transaction_set_configuration_data import TransactionSetConfigurationData
|
1222
1225
|
from lusid.models.transaction_set_configuration_data_request import TransactionSetConfigurationDataRequest
|
1226
|
+
from lusid.models.transaction_settlement_instruction import TransactionSettlementInstruction
|
1223
1227
|
from lusid.models.transaction_status import TransactionStatus
|
1224
1228
|
from lusid.models.transaction_template import TransactionTemplate
|
1225
1229
|
from lusid.models.transaction_template_request import TransactionTemplateRequest
|
@@ -2455,6 +2459,7 @@ __all__ = [
|
|
2455
2459
|
"ResourceListOfString",
|
2456
2460
|
"ResourceListOfTaxRuleSet",
|
2457
2461
|
"ResourceListOfTransaction",
|
2462
|
+
"ResourceListOfTransactionSettlementInstruction",
|
2458
2463
|
"ResourceListOfTransactionType",
|
2459
2464
|
"ResourceListOfValueType",
|
2460
2465
|
"ResponseMetaData",
|
@@ -2498,6 +2503,7 @@ __all__ = [
|
|
2498
2503
|
"SetTransactionConfigurationAlias",
|
2499
2504
|
"SetTransactionConfigurationSourceRequest",
|
2500
2505
|
"SettlementCycle",
|
2506
|
+
"SettlementInstructionRequest",
|
2501
2507
|
"SettlementSchedule",
|
2502
2508
|
"ShareClassAmount",
|
2503
2509
|
"ShareClassBreakdown",
|
@@ -2513,6 +2519,7 @@ __all__ = [
|
|
2513
2519
|
"SimpleCashFlowLoan",
|
2514
2520
|
"SimpleInstrument",
|
2515
2521
|
"SimpleRoundingConvention",
|
2522
|
+
"SingleValuationPointQueryParameters",
|
2516
2523
|
"SortOrder",
|
2517
2524
|
"SpecificHoldingPricingInfo",
|
2518
2525
|
"SpinOffEvent",
|
@@ -2584,6 +2591,7 @@ __all__ = [
|
|
2584
2591
|
"TransactionRoles",
|
2585
2592
|
"TransactionSetConfigurationData",
|
2586
2593
|
"TransactionSetConfigurationDataRequest",
|
2594
|
+
"TransactionSettlementInstruction",
|
2587
2595
|
"TransactionStatus",
|
2588
2596
|
"TransactionTemplate",
|
2589
2597
|
"TransactionTemplateRequest",
|
lusid/api/funds_api.py
CHANGED
@@ -22,7 +22,7 @@ from typing import overload, Optional, Union, Awaitable
|
|
22
22
|
from typing_extensions import Annotated
|
23
23
|
from datetime import datetime
|
24
24
|
|
25
|
-
from pydantic.v1 import Field, StrictInt, StrictStr, conint, conlist, constr, validator
|
25
|
+
from pydantic.v1 import Field, StrictBool, StrictInt, StrictStr, conint, conlist, constr, validator
|
26
26
|
|
27
27
|
from typing import Dict, Optional
|
28
28
|
|
@@ -43,6 +43,7 @@ from lusid.models.paged_resource_list_of_fund import PagedResourceListOfFund
|
|
43
43
|
from lusid.models.paged_resource_list_of_fund_calendar_entry import PagedResourceListOfFundCalendarEntry
|
44
44
|
from lusid.models.paged_resource_list_of_valuation_point_overview import PagedResourceListOfValuationPointOverview
|
45
45
|
from lusid.models.set_share_class_instruments_request import SetShareClassInstrumentsRequest
|
46
|
+
from lusid.models.single_valuation_point_query_parameters import SingleValuationPointQueryParameters
|
46
47
|
from lusid.models.upsert_valuation_point_request import UpsertValuationPointRequest
|
47
48
|
from lusid.models.valuation_point_data_query_parameters import ValuationPointDataQueryParameters
|
48
49
|
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
@@ -51,6 +52,7 @@ from lusid.models.valuation_point_resource_list_of_accounted_transaction import
|
|
51
52
|
from lusid.models.valuation_point_resource_list_of_fund_journal_entry_line import ValuationPointResourceListOfFundJournalEntryLine
|
52
53
|
from lusid.models.valuation_point_resource_list_of_pnl_journal_entry_line import ValuationPointResourceListOfPnlJournalEntryLine
|
53
54
|
from lusid.models.valuation_point_resource_list_of_trial_balance import ValuationPointResourceListOfTrialBalance
|
55
|
+
from lusid.models.versioned_resource_list_of_portfolio_holding import VersionedResourceListOfPortfolioHolding
|
54
56
|
|
55
57
|
from lusid.api_client import ApiClient
|
56
58
|
from lusid.api_response import ApiResponse
|
@@ -2215,6 +2217,233 @@ class FundsApi:
|
|
2215
2217
|
_request_auth=_params.get('_request_auth'))
|
2216
2218
|
|
2217
2219
|
|
2220
|
+
@overload
|
2221
|
+
async def get_holdings_for_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.")], single_valuation_point_query_parameters : Annotated[SingleValuationPointQueryParameters, Field(..., description="The query parameters used for diary entry or effective date of Holdings")], 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, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the holdings of transaction portfolios in the Fund. Defaults to return the latest version of the holdings if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\" or \"Portfolio\" domain to decorate onto the holdings. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, **kwargs) -> VersionedResourceListOfPortfolioHolding: # noqa: E501
|
2222
|
+
...
|
2223
|
+
|
2224
|
+
@overload
|
2225
|
+
def get_holdings_for_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.")], single_valuation_point_query_parameters : Annotated[SingleValuationPointQueryParameters, Field(..., description="The query parameters used for diary entry or effective date of Holdings")], 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, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the holdings of transaction portfolios in the Fund. Defaults to return the latest version of the holdings if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\" or \"Portfolio\" domain to decorate onto the holdings. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListOfPortfolioHolding: # noqa: E501
|
2226
|
+
...
|
2227
|
+
|
2228
|
+
@validate_arguments
|
2229
|
+
def get_holdings_for_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.")], single_valuation_point_query_parameters : Annotated[SingleValuationPointQueryParameters, Field(..., description="The query parameters used for diary entry or effective date of Holdings")], 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, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the holdings of transaction portfolios in the Fund. Defaults to return the latest version of the holdings if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\" or \"Portfolio\" domain to decorate onto the holdings. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListOfPortfolioHolding, Awaitable[VersionedResourceListOfPortfolioHolding]]: # noqa: E501
|
2230
|
+
"""[EXPERIMENTAL] GetHoldingsForFund: Get holdings for transaction portfolios in a Fund. # noqa: E501
|
2231
|
+
|
2232
|
+
Get the holdings of transaction portfolios in a specified Fund. # noqa: E501
|
2233
|
+
This method makes a synchronous HTTP request by default. To make an
|
2234
|
+
asynchronous HTTP request, please pass async_req=True
|
2235
|
+
|
2236
|
+
>>> thread = api.get_holdings_for_fund(scope, code, single_valuation_point_query_parameters, nav_type_code, as_at, filter, property_keys, by_taxlots, include_settlement_events_after_days, async_req=True)
|
2237
|
+
>>> result = thread.get()
|
2238
|
+
|
2239
|
+
:param scope: The scope of the Fund. (required)
|
2240
|
+
:type scope: str
|
2241
|
+
:param code: The code of the Fund. Together with the scope this uniquely identifies the Fund. (required)
|
2242
|
+
:type code: str
|
2243
|
+
:param single_valuation_point_query_parameters: The query parameters used for diary entry or effective date of Holdings (required)
|
2244
|
+
:type single_valuation_point_query_parameters: SingleValuationPointQueryParameters
|
2245
|
+
:param nav_type_code: When provided runs against the specified NAV Type, otherwise the Primary NAV Type will be used.
|
2246
|
+
:type nav_type_code: str
|
2247
|
+
:param as_at: The asAt datetime at which to retrieve the holdings of transaction portfolios in the Fund. Defaults to return the latest version of the holdings if not specified.
|
2248
|
+
:type as_at: datetime
|
2249
|
+
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
|
2250
|
+
:type filter: str
|
2251
|
+
:param property_keys: A list of property keys from the \"Instrument\", \"Holding\" or \"Portfolio\" domain to decorate onto the holdings. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Holding/system/Cost\".
|
2252
|
+
:type property_keys: List[str]
|
2253
|
+
:param by_taxlots: Whether to expand the holdings to return the underlying tax-lots. Defaults to False.
|
2254
|
+
:type by_taxlots: bool
|
2255
|
+
:param include_settlement_events_after_days: Number of days ahead to bring back settlements from, in relation to the specified effectiveAt
|
2256
|
+
:type include_settlement_events_after_days: int
|
2257
|
+
:param async_req: Whether to execute the request asynchronously.
|
2258
|
+
:type async_req: bool, optional
|
2259
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2260
|
+
:param opts: Configuration options for this request
|
2261
|
+
:type opts: ConfigurationOptions, optional
|
2262
|
+
:return: Returns the result object.
|
2263
|
+
If the method is called asynchronously,
|
2264
|
+
returns the request thread.
|
2265
|
+
:rtype: VersionedResourceListOfPortfolioHolding
|
2266
|
+
"""
|
2267
|
+
kwargs['_return_http_data_only'] = True
|
2268
|
+
if '_preload_content' in kwargs:
|
2269
|
+
message = "Error! Please call the get_holdings_for_fund_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
2270
|
+
raise ValueError(message)
|
2271
|
+
if async_req is not None:
|
2272
|
+
kwargs['async_req'] = async_req
|
2273
|
+
return self.get_holdings_for_fund_with_http_info(scope, code, single_valuation_point_query_parameters, nav_type_code, as_at, filter, property_keys, by_taxlots, include_settlement_events_after_days, **kwargs) # noqa: E501
|
2274
|
+
|
2275
|
+
@validate_arguments
|
2276
|
+
def get_holdings_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. Together with the scope this uniquely identifies the Fund.")], single_valuation_point_query_parameters : Annotated[SingleValuationPointQueryParameters, Field(..., description="The query parameters used for diary entry or effective date of Holdings")], 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, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the holdings of transaction portfolios in the Fund. Defaults to return the latest version of the holdings if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\", \"Holding\" or \"Portfolio\" domain to decorate onto the holdings. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Holding/system/Cost\".")] = None, by_taxlots : Annotated[Optional[StrictBool], Field(description="Whether to expand the holdings to return the underlying tax-lots. Defaults to False.")] = None, include_settlement_events_after_days : Annotated[Optional[StrictInt], Field(description="Number of days ahead to bring back settlements from, in relation to the specified effectiveAt")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
2277
|
+
"""[EXPERIMENTAL] GetHoldingsForFund: Get holdings for transaction portfolios in a Fund. # noqa: E501
|
2278
|
+
|
2279
|
+
Get the holdings of transaction portfolios in a specified Fund. # noqa: E501
|
2280
|
+
This method makes a synchronous HTTP request by default. To make an
|
2281
|
+
asynchronous HTTP request, please pass async_req=True
|
2282
|
+
|
2283
|
+
>>> thread = api.get_holdings_for_fund_with_http_info(scope, code, single_valuation_point_query_parameters, nav_type_code, as_at, filter, property_keys, by_taxlots, include_settlement_events_after_days, async_req=True)
|
2284
|
+
>>> result = thread.get()
|
2285
|
+
|
2286
|
+
:param scope: The scope of the Fund. (required)
|
2287
|
+
:type scope: str
|
2288
|
+
:param code: The code of the Fund. Together with the scope this uniquely identifies the Fund. (required)
|
2289
|
+
:type code: str
|
2290
|
+
:param single_valuation_point_query_parameters: The query parameters used for diary entry or effective date of Holdings (required)
|
2291
|
+
:type single_valuation_point_query_parameters: SingleValuationPointQueryParameters
|
2292
|
+
:param nav_type_code: When provided runs against the specified NAV Type, otherwise the Primary NAV Type will be used.
|
2293
|
+
:type nav_type_code: str
|
2294
|
+
:param as_at: The asAt datetime at which to retrieve the holdings of transaction portfolios in the Fund. Defaults to return the latest version of the holdings if not specified.
|
2295
|
+
:type as_at: datetime
|
2296
|
+
:param filter: Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
|
2297
|
+
:type filter: str
|
2298
|
+
:param property_keys: A list of property keys from the \"Instrument\", \"Holding\" or \"Portfolio\" domain to decorate onto the holdings. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Holding/system/Cost\".
|
2299
|
+
:type property_keys: List[str]
|
2300
|
+
:param by_taxlots: Whether to expand the holdings to return the underlying tax-lots. Defaults to False.
|
2301
|
+
:type by_taxlots: bool
|
2302
|
+
:param include_settlement_events_after_days: Number of days ahead to bring back settlements from, in relation to the specified effectiveAt
|
2303
|
+
:type include_settlement_events_after_days: int
|
2304
|
+
:param async_req: Whether to execute the request asynchronously.
|
2305
|
+
:type async_req: bool, optional
|
2306
|
+
:param _preload_content: if False, the ApiResponse.data will
|
2307
|
+
be set to none and raw_data will store the
|
2308
|
+
HTTP response body without reading/decoding.
|
2309
|
+
Default is True.
|
2310
|
+
:type _preload_content: bool, optional
|
2311
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
2312
|
+
object with status code, headers, etc
|
2313
|
+
:type _return_http_data_only: bool, optional
|
2314
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2315
|
+
:param opts: Configuration options for this request
|
2316
|
+
:type opts: ConfigurationOptions, optional
|
2317
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2318
|
+
request; this effectively ignores the authentication
|
2319
|
+
in the spec for a single request.
|
2320
|
+
:type _request_auth: dict, optional
|
2321
|
+
:type _content_type: string, optional: force content-type for the request
|
2322
|
+
:return: Returns the result object.
|
2323
|
+
If the method is called asynchronously,
|
2324
|
+
returns the request thread.
|
2325
|
+
:rtype: tuple(VersionedResourceListOfPortfolioHolding, status_code(int), headers(HTTPHeaderDict))
|
2326
|
+
"""
|
2327
|
+
|
2328
|
+
_params = locals()
|
2329
|
+
|
2330
|
+
_all_params = [
|
2331
|
+
'scope',
|
2332
|
+
'code',
|
2333
|
+
'single_valuation_point_query_parameters',
|
2334
|
+
'nav_type_code',
|
2335
|
+
'as_at',
|
2336
|
+
'filter',
|
2337
|
+
'property_keys',
|
2338
|
+
'by_taxlots',
|
2339
|
+
'include_settlement_events_after_days'
|
2340
|
+
]
|
2341
|
+
_all_params.extend(
|
2342
|
+
[
|
2343
|
+
'async_req',
|
2344
|
+
'_return_http_data_only',
|
2345
|
+
'_preload_content',
|
2346
|
+
'_request_timeout',
|
2347
|
+
'_request_auth',
|
2348
|
+
'_content_type',
|
2349
|
+
'_headers',
|
2350
|
+
'opts'
|
2351
|
+
]
|
2352
|
+
)
|
2353
|
+
|
2354
|
+
# validate the arguments
|
2355
|
+
for _key, _val in _params['kwargs'].items():
|
2356
|
+
if _key not in _all_params:
|
2357
|
+
raise ApiTypeError(
|
2358
|
+
"Got an unexpected keyword argument '%s'"
|
2359
|
+
" to method get_holdings_for_fund" % _key
|
2360
|
+
)
|
2361
|
+
_params[_key] = _val
|
2362
|
+
del _params['kwargs']
|
2363
|
+
|
2364
|
+
_collection_formats = {}
|
2365
|
+
|
2366
|
+
# process the path parameters
|
2367
|
+
_path_params = {}
|
2368
|
+
if _params['scope']:
|
2369
|
+
_path_params['scope'] = _params['scope']
|
2370
|
+
|
2371
|
+
if _params['code']:
|
2372
|
+
_path_params['code'] = _params['code']
|
2373
|
+
|
2374
|
+
|
2375
|
+
# process the query parameters
|
2376
|
+
_query_params = []
|
2377
|
+
if _params.get('nav_type_code') is not None: # noqa: E501
|
2378
|
+
_query_params.append(('navTypeCode', _params['nav_type_code']))
|
2379
|
+
|
2380
|
+
if _params.get('as_at') is not None: # noqa: E501
|
2381
|
+
if isinstance(_params['as_at'], datetime):
|
2382
|
+
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
2383
|
+
else:
|
2384
|
+
_query_params.append(('asAt', _params['as_at']))
|
2385
|
+
|
2386
|
+
if _params.get('filter') is not None: # noqa: E501
|
2387
|
+
_query_params.append(('filter', _params['filter']))
|
2388
|
+
|
2389
|
+
if _params.get('property_keys') is not None: # noqa: E501
|
2390
|
+
_query_params.append(('propertyKeys', _params['property_keys']))
|
2391
|
+
_collection_formats['propertyKeys'] = 'multi'
|
2392
|
+
|
2393
|
+
if _params.get('by_taxlots') is not None: # noqa: E501
|
2394
|
+
_query_params.append(('byTaxlots', _params['by_taxlots']))
|
2395
|
+
|
2396
|
+
if _params.get('include_settlement_events_after_days') is not None: # noqa: E501
|
2397
|
+
_query_params.append(('includeSettlementEventsAfterDays', _params['include_settlement_events_after_days']))
|
2398
|
+
|
2399
|
+
# process the header parameters
|
2400
|
+
_header_params = dict(_params.get('_headers', {}))
|
2401
|
+
# process the form parameters
|
2402
|
+
_form_params = []
|
2403
|
+
_files = {}
|
2404
|
+
# process the body parameter
|
2405
|
+
_body_params = None
|
2406
|
+
if _params['single_valuation_point_query_parameters'] is not None:
|
2407
|
+
_body_params = _params['single_valuation_point_query_parameters']
|
2408
|
+
|
2409
|
+
# set the HTTP header `Accept`
|
2410
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2411
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
2412
|
+
|
2413
|
+
# set the HTTP header `Content-Type`
|
2414
|
+
_content_types_list = _params.get('_content_type',
|
2415
|
+
self.api_client.select_header_content_type(
|
2416
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
2417
|
+
if _content_types_list:
|
2418
|
+
_header_params['Content-Type'] = _content_types_list
|
2419
|
+
|
2420
|
+
# authentication setting
|
2421
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
2422
|
+
|
2423
|
+
_response_types_map = {
|
2424
|
+
'200': "VersionedResourceListOfPortfolioHolding",
|
2425
|
+
'400': "LusidValidationProblemDetails",
|
2426
|
+
}
|
2427
|
+
|
2428
|
+
return self.api_client.call_api(
|
2429
|
+
'/api/funds/{scope}/{code}/$holdings', 'POST',
|
2430
|
+
_path_params,
|
2431
|
+
_query_params,
|
2432
|
+
_header_params,
|
2433
|
+
body=_body_params,
|
2434
|
+
post_params=_form_params,
|
2435
|
+
files=_files,
|
2436
|
+
response_types_map=_response_types_map,
|
2437
|
+
auth_settings=_auth_settings,
|
2438
|
+
async_req=_params.get('async_req'),
|
2439
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2440
|
+
_preload_content=_params.get('_preload_content', True),
|
2441
|
+
_request_timeout=_params.get('_request_timeout'),
|
2442
|
+
opts=_params.get('opts'),
|
2443
|
+
collection_formats=_collection_formats,
|
2444
|
+
_request_auth=_params.get('_request_auth'))
|
2445
|
+
|
2446
|
+
|
2218
2447
|
@overload
|
2219
2448
|
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
|
2220
2449
|
...
|