lusid-sdk 2.1.569__py3-none-any.whl → 2.1.590__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/abor_api.py +18 -18
- lusid/api/allocations_api.py +30 -11
- lusid/api/funds_api.py +454 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +12 -0
- lusid/models/accumulation_event.py +3 -3
- lusid/models/additional_payment.py +3 -3
- lusid/models/aggregate_spec.py +3 -3
- lusid/models/aggregation_op.py +1 -0
- 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/cap_floor.py +13 -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/cds_index.py +20 -5
- lusid/models/cdx_credit_event.py +3 -3
- lusid/models/close_event.py +3 -3
- lusid/models/contribution_to_non_passing_rule_detail.py +89 -0
- lusid/models/create_derived_property_definition_request.py +3 -3
- lusid/models/create_property_definition_request.py +3 -3
- lusid/models/credit_default_swap.py +21 -6
- lusid/models/credit_premium_cash_flow_event.py +3 -3
- lusid/models/dividend_option_event.py +3 -3
- lusid/models/dividend_reinvestment_event.py +3 -3
- lusid/models/early_redemption_election.py +73 -0
- lusid/models/early_redemption_event.py +124 -0
- lusid/models/equity_swap.py +20 -5
- lusid/models/exercise_event.py +3 -3
- lusid/models/expiry_event.py +3 -3
- lusid/models/future_expiry_event.py +3 -3
- lusid/models/fx_forward_settlement_event.py +3 -3
- lusid/models/inflation_swap.py +20 -5
- 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/interest_rate_swap.py +1 -1
- lusid/models/intermediate_securities_distribution_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/movement_type.py +2 -0
- lusid/models/open_event.py +3 -3
- lusid/models/option_entry.py +10 -3
- lusid/models/option_exercise_cash_event.py +3 -3
- lusid/models/option_exercise_physical_event.py +3 -3
- lusid/models/order_graph_block_order_detail.py +19 -4
- lusid/models/output_transaction.py +8 -2
- lusid/models/property_definition.py +3 -3
- lusid/models/property_definition_search_result.py +3 -3
- lusid/models/property_domain.py +1 -0
- lusid/models/protection_payout_cash_flow_event.py +3 -3
- lusid/models/raw_vendor_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/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/total_return_swap.py +20 -5
- lusid/models/transaction.py +25 -4
- lusid/models/transaction_configuration_movement_data.py +3 -3
- lusid/models/transaction_configuration_movement_data_request.py +3 -3
- lusid/models/transaction_request.py +1 -1
- lusid/models/transaction_type_details.py +73 -0
- lusid/models/transition_event.py +3 -3
- lusid/models/trigger_event.py +3 -3
- lusid/models/valuation_point_resource_list_of_journal_entry_line.py +125 -0
- lusid/models/valuation_point_resource_list_of_trial_balance.py +125 -0
- {lusid_sdk-2.1.569.dist-info → lusid_sdk-2.1.590.dist-info}/METADATA +10 -2
- {lusid_sdk-2.1.569.dist-info → lusid_sdk-2.1.590.dist-info}/RECORD +88 -82
- {lusid_sdk-2.1.569.dist-info → lusid_sdk-2.1.590.dist-info}/WHEEL +0 -0
lusid/api/funds_api.py
CHANGED
@@ -45,6 +45,8 @@ from lusid.models.upsert_valuation_point_request import UpsertValuationPointRequ
|
|
45
45
|
from lusid.models.valuation_point_data_query_parameters import ValuationPointDataQueryParameters
|
46
46
|
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
47
47
|
from lusid.models.valuation_point_data_response import ValuationPointDataResponse
|
48
|
+
from lusid.models.valuation_point_resource_list_of_journal_entry_line import ValuationPointResourceListOfJournalEntryLine
|
49
|
+
from lusid.models.valuation_point_resource_list_of_trial_balance import ValuationPointResourceListOfTrialBalance
|
48
50
|
|
49
51
|
from lusid.api_client import ApiClient
|
50
52
|
from lusid.api_response import ApiResponse
|
@@ -1815,6 +1817,458 @@ class FundsApi:
|
|
1815
1817
|
collection_formats=_collection_formats,
|
1816
1818
|
_request_auth=_params.get('_request_auth'))
|
1817
1819
|
|
1820
|
+
@overload
|
1821
|
+
async def get_valuation_point_journal_entry_lines(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope is creating the unique identifier for the given Fund.")], valuation_point_data_query_parameters : Annotated[ValuationPointDataQueryParameters, Field(..., description="The arguments to use for querying the Journal Entry lines.")], general_ledger_profile_code : Annotated[Optional[constr(strict=True, max_length=64, min_length=1)], Field(description="The optional code of a general ledger profile used to decorate journal entry lines with levels.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve Journal Entry lines. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Journal Entry lines from a previous call to GetValuationPointJournalEntryLines.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, **kwargs) -> ValuationPointResourceListOfJournalEntryLine: # noqa: E501
|
1822
|
+
...
|
1823
|
+
|
1824
|
+
@overload
|
1825
|
+
def get_valuation_point_journal_entry_lines(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope is creating the unique identifier for the given Fund.")], valuation_point_data_query_parameters : Annotated[ValuationPointDataQueryParameters, Field(..., description="The arguments to use for querying the Journal Entry lines.")], general_ledger_profile_code : Annotated[Optional[constr(strict=True, max_length=64, min_length=1)], Field(description="The optional code of a general ledger profile used to decorate journal entry lines with levels.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve Journal Entry lines. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Journal Entry lines from a previous call to GetValuationPointJournalEntryLines.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, async_req: Optional[bool]=True, **kwargs) -> ValuationPointResourceListOfJournalEntryLine: # noqa: E501
|
1826
|
+
...
|
1827
|
+
|
1828
|
+
@validate_arguments
|
1829
|
+
def get_valuation_point_journal_entry_lines(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope is creating the unique identifier for the given Fund.")], valuation_point_data_query_parameters : Annotated[ValuationPointDataQueryParameters, Field(..., description="The arguments to use for querying the Journal Entry lines.")], general_ledger_profile_code : Annotated[Optional[constr(strict=True, max_length=64, min_length=1)], Field(description="The optional code of a general ledger profile used to decorate journal entry lines with levels.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve Journal Entry lines. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Journal Entry lines from a previous call to GetValuationPointJournalEntryLines.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ValuationPointResourceListOfJournalEntryLine, Awaitable[ValuationPointResourceListOfJournalEntryLine]]: # noqa: E501
|
1830
|
+
"""[EXPERIMENTAL] GetValuationPointJournalEntryLines: Get the Journal Entry lines for the given Fund. # noqa: E501
|
1831
|
+
|
1832
|
+
Gets the Journal Entry lines for the given Valuation Point for a Fund The Journal Entry lines have been generated from transactions, translated via posting rules and used in the valuation point # noqa: E501
|
1833
|
+
This method makes a synchronous HTTP request by default. To make an
|
1834
|
+
asynchronous HTTP request, please pass async_req=True
|
1835
|
+
|
1836
|
+
>>> thread = api.get_valuation_point_journal_entry_lines(scope, code, valuation_point_data_query_parameters, general_ledger_profile_code, as_at, filter, limit, page, property_keys, async_req=True)
|
1837
|
+
>>> result = thread.get()
|
1838
|
+
|
1839
|
+
:param scope: The scope of the Fund. (required)
|
1840
|
+
:type scope: str
|
1841
|
+
:param code: The code of the Fund. Together with the scope is creating the unique identifier for the given Fund. (required)
|
1842
|
+
:type code: str
|
1843
|
+
:param valuation_point_data_query_parameters: The arguments to use for querying the Journal Entry lines. (required)
|
1844
|
+
:type valuation_point_data_query_parameters: ValuationPointDataQueryParameters
|
1845
|
+
:param general_ledger_profile_code: The optional code of a general ledger profile used to decorate journal entry lines with levels.
|
1846
|
+
:type general_ledger_profile_code: str
|
1847
|
+
:param as_at: The asAt datetime at which to retrieve Journal Entry lines. Defaults to returning the latest version of each transaction if not specified.
|
1848
|
+
:type as_at: datetime
|
1849
|
+
:param filter: Expression to filter the result set.
|
1850
|
+
:type filter: str
|
1851
|
+
:param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
|
1852
|
+
:type limit: int
|
1853
|
+
:param page: The pagination token to use to continue listing Journal Entry lines from a previous call to GetValuationPointJournalEntryLines.
|
1854
|
+
:type page: str
|
1855
|
+
:param property_keys: A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.
|
1856
|
+
:type property_keys: List[str]
|
1857
|
+
:param async_req: Whether to execute the request asynchronously.
|
1858
|
+
:type async_req: bool, optional
|
1859
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
1860
|
+
:param opts: Configuration options for this request
|
1861
|
+
:type opts: ConfigurationOptions, optional
|
1862
|
+
:return: Returns the result object.
|
1863
|
+
If the method is called asynchronously,
|
1864
|
+
returns the request thread.
|
1865
|
+
:rtype: ValuationPointResourceListOfJournalEntryLine
|
1866
|
+
"""
|
1867
|
+
kwargs['_return_http_data_only'] = True
|
1868
|
+
if '_preload_content' in kwargs:
|
1869
|
+
message = "Error! Please call the get_valuation_point_journal_entry_lines_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
1870
|
+
raise ValueError(message)
|
1871
|
+
if async_req is not None:
|
1872
|
+
kwargs['async_req'] = async_req
|
1873
|
+
return self.get_valuation_point_journal_entry_lines_with_http_info(scope, code, valuation_point_data_query_parameters, general_ledger_profile_code, as_at, filter, limit, page, property_keys, **kwargs) # noqa: E501
|
1874
|
+
|
1875
|
+
@validate_arguments
|
1876
|
+
def get_valuation_point_journal_entry_lines_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope is creating the unique identifier for the given Fund.")], valuation_point_data_query_parameters : Annotated[ValuationPointDataQueryParameters, Field(..., description="The arguments to use for querying the Journal Entry lines.")], general_ledger_profile_code : Annotated[Optional[constr(strict=True, max_length=64, min_length=1)], Field(description="The optional code of a general ledger profile used to decorate journal entry lines with levels.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve Journal Entry lines. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the result set.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Journal Entry lines from a previous call to GetValuationPointJournalEntryLines.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
1877
|
+
"""[EXPERIMENTAL] GetValuationPointJournalEntryLines: Get the Journal Entry lines for the given Fund. # noqa: E501
|
1878
|
+
|
1879
|
+
Gets the Journal Entry lines for the given Valuation Point for a Fund The Journal Entry lines have been generated from transactions, translated via posting rules and used in the valuation point # noqa: E501
|
1880
|
+
This method makes a synchronous HTTP request by default. To make an
|
1881
|
+
asynchronous HTTP request, please pass async_req=True
|
1882
|
+
|
1883
|
+
>>> thread = api.get_valuation_point_journal_entry_lines_with_http_info(scope, code, valuation_point_data_query_parameters, general_ledger_profile_code, as_at, filter, limit, page, property_keys, async_req=True)
|
1884
|
+
>>> result = thread.get()
|
1885
|
+
|
1886
|
+
:param scope: The scope of the Fund. (required)
|
1887
|
+
:type scope: str
|
1888
|
+
:param code: The code of the Fund. Together with the scope is creating the unique identifier for the given Fund. (required)
|
1889
|
+
:type code: str
|
1890
|
+
:param valuation_point_data_query_parameters: The arguments to use for querying the Journal Entry lines. (required)
|
1891
|
+
:type valuation_point_data_query_parameters: ValuationPointDataQueryParameters
|
1892
|
+
:param general_ledger_profile_code: The optional code of a general ledger profile used to decorate journal entry lines with levels.
|
1893
|
+
:type general_ledger_profile_code: str
|
1894
|
+
:param as_at: The asAt datetime at which to retrieve Journal Entry lines. Defaults to returning the latest version of each transaction if not specified.
|
1895
|
+
:type as_at: datetime
|
1896
|
+
:param filter: Expression to filter the result set.
|
1897
|
+
:type filter: str
|
1898
|
+
:param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
|
1899
|
+
:type limit: int
|
1900
|
+
:param page: The pagination token to use to continue listing Journal Entry lines from a previous call to GetValuationPointJournalEntryLines.
|
1901
|
+
:type page: str
|
1902
|
+
:param property_keys: A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.
|
1903
|
+
:type property_keys: List[str]
|
1904
|
+
:param async_req: Whether to execute the request asynchronously.
|
1905
|
+
:type async_req: bool, optional
|
1906
|
+
:param _preload_content: if False, the ApiResponse.data will
|
1907
|
+
be set to none and raw_data will store the
|
1908
|
+
HTTP response body without reading/decoding.
|
1909
|
+
Default is True.
|
1910
|
+
:type _preload_content: bool, optional
|
1911
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
1912
|
+
object with status code, headers, etc
|
1913
|
+
:type _return_http_data_only: bool, optional
|
1914
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
1915
|
+
:param opts: Configuration options for this request
|
1916
|
+
:type opts: ConfigurationOptions, optional
|
1917
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1918
|
+
request; this effectively ignores the authentication
|
1919
|
+
in the spec for a single request.
|
1920
|
+
:type _request_auth: dict, optional
|
1921
|
+
:type _content_type: string, optional: force content-type for the request
|
1922
|
+
:return: Returns the result object.
|
1923
|
+
If the method is called asynchronously,
|
1924
|
+
returns the request thread.
|
1925
|
+
:rtype: tuple(ValuationPointResourceListOfJournalEntryLine, status_code(int), headers(HTTPHeaderDict))
|
1926
|
+
"""
|
1927
|
+
|
1928
|
+
_params = locals()
|
1929
|
+
|
1930
|
+
_all_params = [
|
1931
|
+
'scope',
|
1932
|
+
'code',
|
1933
|
+
'valuation_point_data_query_parameters',
|
1934
|
+
'general_ledger_profile_code',
|
1935
|
+
'as_at',
|
1936
|
+
'filter',
|
1937
|
+
'limit',
|
1938
|
+
'page',
|
1939
|
+
'property_keys'
|
1940
|
+
]
|
1941
|
+
_all_params.extend(
|
1942
|
+
[
|
1943
|
+
'async_req',
|
1944
|
+
'_return_http_data_only',
|
1945
|
+
'_preload_content',
|
1946
|
+
'_request_timeout',
|
1947
|
+
'_request_auth',
|
1948
|
+
'_content_type',
|
1949
|
+
'_headers',
|
1950
|
+
'opts'
|
1951
|
+
]
|
1952
|
+
)
|
1953
|
+
|
1954
|
+
# validate the arguments
|
1955
|
+
for _key, _val in _params['kwargs'].items():
|
1956
|
+
if _key not in _all_params:
|
1957
|
+
raise ApiTypeError(
|
1958
|
+
"Got an unexpected keyword argument '%s'"
|
1959
|
+
" to method get_valuation_point_journal_entry_lines" % _key
|
1960
|
+
)
|
1961
|
+
_params[_key] = _val
|
1962
|
+
del _params['kwargs']
|
1963
|
+
|
1964
|
+
_collection_formats = {}
|
1965
|
+
|
1966
|
+
# process the path parameters
|
1967
|
+
_path_params = {}
|
1968
|
+
if _params['scope']:
|
1969
|
+
_path_params['scope'] = _params['scope']
|
1970
|
+
|
1971
|
+
if _params['code']:
|
1972
|
+
_path_params['code'] = _params['code']
|
1973
|
+
|
1974
|
+
|
1975
|
+
# process the query parameters
|
1976
|
+
_query_params = []
|
1977
|
+
if _params.get('general_ledger_profile_code') is not None: # noqa: E501
|
1978
|
+
_query_params.append(('generalLedgerProfileCode', _params['general_ledger_profile_code']))
|
1979
|
+
|
1980
|
+
if _params.get('as_at') is not None: # noqa: E501
|
1981
|
+
if isinstance(_params['as_at'], datetime):
|
1982
|
+
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
1983
|
+
else:
|
1984
|
+
_query_params.append(('asAt', _params['as_at']))
|
1985
|
+
|
1986
|
+
if _params.get('filter') is not None: # noqa: E501
|
1987
|
+
_query_params.append(('filter', _params['filter']))
|
1988
|
+
|
1989
|
+
if _params.get('limit') is not None: # noqa: E501
|
1990
|
+
_query_params.append(('limit', _params['limit']))
|
1991
|
+
|
1992
|
+
if _params.get('page') is not None: # noqa: E501
|
1993
|
+
_query_params.append(('page', _params['page']))
|
1994
|
+
|
1995
|
+
if _params.get('property_keys') is not None: # noqa: E501
|
1996
|
+
_query_params.append(('propertyKeys', _params['property_keys']))
|
1997
|
+
_collection_formats['propertyKeys'] = 'multi'
|
1998
|
+
|
1999
|
+
# process the header parameters
|
2000
|
+
_header_params = dict(_params.get('_headers', {}))
|
2001
|
+
# process the form parameters
|
2002
|
+
_form_params = []
|
2003
|
+
_files = {}
|
2004
|
+
# process the body parameter
|
2005
|
+
_body_params = None
|
2006
|
+
if _params['valuation_point_data_query_parameters'] is not None:
|
2007
|
+
_body_params = _params['valuation_point_data_query_parameters']
|
2008
|
+
|
2009
|
+
# set the HTTP header `Accept`
|
2010
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2011
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
2012
|
+
|
2013
|
+
# set the HTTP header `Content-Type`
|
2014
|
+
_content_types_list = _params.get('_content_type',
|
2015
|
+
self.api_client.select_header_content_type(
|
2016
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
2017
|
+
if _content_types_list:
|
2018
|
+
_header_params['Content-Type'] = _content_types_list
|
2019
|
+
|
2020
|
+
# authentication setting
|
2021
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
2022
|
+
|
2023
|
+
_response_types_map = {
|
2024
|
+
'200': "ValuationPointResourceListOfJournalEntryLine",
|
2025
|
+
'400': "LusidValidationProblemDetails",
|
2026
|
+
}
|
2027
|
+
|
2028
|
+
return self.api_client.call_api(
|
2029
|
+
'/api/funds/{scope}/{code}/valuationpoints/journalentrylines/$query', 'POST',
|
2030
|
+
_path_params,
|
2031
|
+
_query_params,
|
2032
|
+
_header_params,
|
2033
|
+
body=_body_params,
|
2034
|
+
post_params=_form_params,
|
2035
|
+
files=_files,
|
2036
|
+
response_types_map=_response_types_map,
|
2037
|
+
auth_settings=_auth_settings,
|
2038
|
+
async_req=_params.get('async_req'),
|
2039
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2040
|
+
_preload_content=_params.get('_preload_content', True),
|
2041
|
+
_request_timeout=_params.get('_request_timeout'),
|
2042
|
+
opts=_params.get('opts'),
|
2043
|
+
collection_formats=_collection_formats,
|
2044
|
+
_request_auth=_params.get('_request_auth'))
|
2045
|
+
|
2046
|
+
@overload
|
2047
|
+
async def get_valuation_point_trial_balance(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), 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 query parameters used in running the generation of the Trial Balance.")], general_ledger_profile_code : Annotated[Optional[constr(strict=True, max_length=64, min_length=1)], Field(description="The optional code of a general ledger profile used to decorate journal entry lines with levels.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, **kwargs) -> ValuationPointResourceListOfTrialBalance: # noqa: E501
|
2048
|
+
...
|
2049
|
+
|
2050
|
+
@overload
|
2051
|
+
def get_valuation_point_trial_balance(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), 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 query parameters used in running the generation of the Trial Balance.")], general_ledger_profile_code : Annotated[Optional[constr(strict=True, max_length=64, min_length=1)], Field(description="The optional code of a general ledger profile used to decorate journal entry lines with levels.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, async_req: Optional[bool]=True, **kwargs) -> ValuationPointResourceListOfTrialBalance: # noqa: E501
|
2052
|
+
...
|
2053
|
+
|
2054
|
+
@validate_arguments
|
2055
|
+
def get_valuation_point_trial_balance(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), 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 query parameters used in running the generation of the Trial Balance.")], general_ledger_profile_code : Annotated[Optional[constr(strict=True, max_length=64, min_length=1)], Field(description="The optional code of a general ledger profile used to decorate journal entry lines with levels.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ValuationPointResourceListOfTrialBalance, Awaitable[ValuationPointResourceListOfTrialBalance]]: # noqa: E501
|
2056
|
+
"""[EXPERIMENTAL] GetValuationPointTrialBalance: Get Trial Balance for the given Fund. # noqa: E501
|
2057
|
+
|
2058
|
+
Gets the Trial Balance for the given Valuation Point for a Fund. The Trial Balance has been generated from transactions, translated via Posting Rules and aggregated based on a General Ledger Profile (where specified). # noqa: E501
|
2059
|
+
This method makes a synchronous HTTP request by default. To make an
|
2060
|
+
asynchronous HTTP request, please pass async_req=True
|
2061
|
+
|
2062
|
+
>>> thread = api.get_valuation_point_trial_balance(scope, code, valuation_point_data_query_parameters, general_ledger_profile_code, as_at, filter, limit, page, property_keys, async_req=True)
|
2063
|
+
>>> result = thread.get()
|
2064
|
+
|
2065
|
+
:param scope: The scope of the Fund. (required)
|
2066
|
+
:type scope: str
|
2067
|
+
:param code: The code of the Fund. Together with the scope this uniquely identifies the Fund. (required)
|
2068
|
+
:type code: str
|
2069
|
+
:param valuation_point_data_query_parameters: The query parameters used in running the generation of the Trial Balance. (required)
|
2070
|
+
:type valuation_point_data_query_parameters: ValuationPointDataQueryParameters
|
2071
|
+
:param general_ledger_profile_code: The optional code of a general ledger profile used to decorate journal entry lines with levels.
|
2072
|
+
:type general_ledger_profile_code: str
|
2073
|
+
:param as_at: The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.
|
2074
|
+
:type as_at: datetime
|
2075
|
+
:param filter: Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
|
2076
|
+
:type filter: str
|
2077
|
+
:param limit: When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.
|
2078
|
+
:type limit: int
|
2079
|
+
:param page: The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.
|
2080
|
+
:type page: str
|
2081
|
+
:param property_keys: A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.
|
2082
|
+
:type property_keys: List[str]
|
2083
|
+
:param async_req: Whether to execute the request asynchronously.
|
2084
|
+
:type async_req: bool, optional
|
2085
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2086
|
+
:param opts: Configuration options for this request
|
2087
|
+
:type opts: ConfigurationOptions, optional
|
2088
|
+
:return: Returns the result object.
|
2089
|
+
If the method is called asynchronously,
|
2090
|
+
returns the request thread.
|
2091
|
+
:rtype: ValuationPointResourceListOfTrialBalance
|
2092
|
+
"""
|
2093
|
+
kwargs['_return_http_data_only'] = True
|
2094
|
+
if '_preload_content' in kwargs:
|
2095
|
+
message = "Error! Please call the get_valuation_point_trial_balance_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
2096
|
+
raise ValueError(message)
|
2097
|
+
if async_req is not None:
|
2098
|
+
kwargs['async_req'] = async_req
|
2099
|
+
return self.get_valuation_point_trial_balance_with_http_info(scope, code, valuation_point_data_query_parameters, general_ledger_profile_code, as_at, filter, limit, page, property_keys, **kwargs) # noqa: E501
|
2100
|
+
|
2101
|
+
@validate_arguments
|
2102
|
+
def get_valuation_point_trial_balance_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), 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 query parameters used in running the generation of the Trial Balance.")], general_ledger_profile_code : Annotated[Optional[constr(strict=True, max_length=64, min_length=1)], Field(description="The optional code of a general ledger profile used to decorate journal entry lines with levels.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
2103
|
+
"""[EXPERIMENTAL] GetValuationPointTrialBalance: Get Trial Balance for the given Fund. # noqa: E501
|
2104
|
+
|
2105
|
+
Gets the Trial Balance for the given Valuation Point for a Fund. The Trial Balance has been generated from transactions, translated via Posting Rules and aggregated based on a General Ledger Profile (where specified). # noqa: E501
|
2106
|
+
This method makes a synchronous HTTP request by default. To make an
|
2107
|
+
asynchronous HTTP request, please pass async_req=True
|
2108
|
+
|
2109
|
+
>>> thread = api.get_valuation_point_trial_balance_with_http_info(scope, code, valuation_point_data_query_parameters, general_ledger_profile_code, as_at, filter, limit, page, property_keys, async_req=True)
|
2110
|
+
>>> result = thread.get()
|
2111
|
+
|
2112
|
+
:param scope: The scope of the Fund. (required)
|
2113
|
+
:type scope: str
|
2114
|
+
:param code: The code of the Fund. Together with the scope this uniquely identifies the Fund. (required)
|
2115
|
+
:type code: str
|
2116
|
+
:param valuation_point_data_query_parameters: The query parameters used in running the generation of the Trial Balance. (required)
|
2117
|
+
:type valuation_point_data_query_parameters: ValuationPointDataQueryParameters
|
2118
|
+
:param general_ledger_profile_code: The optional code of a general ledger profile used to decorate journal entry lines with levels.
|
2119
|
+
:type general_ledger_profile_code: str
|
2120
|
+
:param as_at: The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.
|
2121
|
+
:type as_at: datetime
|
2122
|
+
:param filter: Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
|
2123
|
+
:type filter: str
|
2124
|
+
:param limit: When paginating, limit the number of returned results to this number. Defaults to 100 if not specified.
|
2125
|
+
:type limit: int
|
2126
|
+
:param page: The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.
|
2127
|
+
:type page: str
|
2128
|
+
:param property_keys: A list of property keys from the 'Instrument', 'Transaction', 'Portfolio', 'Account', 'LegalEntity' or 'CustodianAccount' domain to decorate onto the journal entry lines.
|
2129
|
+
:type property_keys: List[str]
|
2130
|
+
:param async_req: Whether to execute the request asynchronously.
|
2131
|
+
:type async_req: bool, optional
|
2132
|
+
:param _preload_content: if False, the ApiResponse.data will
|
2133
|
+
be set to none and raw_data will store the
|
2134
|
+
HTTP response body without reading/decoding.
|
2135
|
+
Default is True.
|
2136
|
+
:type _preload_content: bool, optional
|
2137
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
2138
|
+
object with status code, headers, etc
|
2139
|
+
:type _return_http_data_only: bool, optional
|
2140
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2141
|
+
:param opts: Configuration options for this request
|
2142
|
+
:type opts: ConfigurationOptions, optional
|
2143
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2144
|
+
request; this effectively ignores the authentication
|
2145
|
+
in the spec for a single request.
|
2146
|
+
:type _request_auth: dict, optional
|
2147
|
+
:type _content_type: string, optional: force content-type for the request
|
2148
|
+
:return: Returns the result object.
|
2149
|
+
If the method is called asynchronously,
|
2150
|
+
returns the request thread.
|
2151
|
+
:rtype: tuple(ValuationPointResourceListOfTrialBalance, status_code(int), headers(HTTPHeaderDict))
|
2152
|
+
"""
|
2153
|
+
|
2154
|
+
_params = locals()
|
2155
|
+
|
2156
|
+
_all_params = [
|
2157
|
+
'scope',
|
2158
|
+
'code',
|
2159
|
+
'valuation_point_data_query_parameters',
|
2160
|
+
'general_ledger_profile_code',
|
2161
|
+
'as_at',
|
2162
|
+
'filter',
|
2163
|
+
'limit',
|
2164
|
+
'page',
|
2165
|
+
'property_keys'
|
2166
|
+
]
|
2167
|
+
_all_params.extend(
|
2168
|
+
[
|
2169
|
+
'async_req',
|
2170
|
+
'_return_http_data_only',
|
2171
|
+
'_preload_content',
|
2172
|
+
'_request_timeout',
|
2173
|
+
'_request_auth',
|
2174
|
+
'_content_type',
|
2175
|
+
'_headers',
|
2176
|
+
'opts'
|
2177
|
+
]
|
2178
|
+
)
|
2179
|
+
|
2180
|
+
# validate the arguments
|
2181
|
+
for _key, _val in _params['kwargs'].items():
|
2182
|
+
if _key not in _all_params:
|
2183
|
+
raise ApiTypeError(
|
2184
|
+
"Got an unexpected keyword argument '%s'"
|
2185
|
+
" to method get_valuation_point_trial_balance" % _key
|
2186
|
+
)
|
2187
|
+
_params[_key] = _val
|
2188
|
+
del _params['kwargs']
|
2189
|
+
|
2190
|
+
_collection_formats = {}
|
2191
|
+
|
2192
|
+
# process the path parameters
|
2193
|
+
_path_params = {}
|
2194
|
+
if _params['scope']:
|
2195
|
+
_path_params['scope'] = _params['scope']
|
2196
|
+
|
2197
|
+
if _params['code']:
|
2198
|
+
_path_params['code'] = _params['code']
|
2199
|
+
|
2200
|
+
|
2201
|
+
# process the query parameters
|
2202
|
+
_query_params = []
|
2203
|
+
if _params.get('general_ledger_profile_code') is not None: # noqa: E501
|
2204
|
+
_query_params.append(('generalLedgerProfileCode', _params['general_ledger_profile_code']))
|
2205
|
+
|
2206
|
+
if _params.get('as_at') is not None: # noqa: E501
|
2207
|
+
if isinstance(_params['as_at'], datetime):
|
2208
|
+
_query_params.append(('asAt', _params['as_at'].strftime(self.api_client.configuration.datetime_format)))
|
2209
|
+
else:
|
2210
|
+
_query_params.append(('asAt', _params['as_at']))
|
2211
|
+
|
2212
|
+
if _params.get('filter') is not None: # noqa: E501
|
2213
|
+
_query_params.append(('filter', _params['filter']))
|
2214
|
+
|
2215
|
+
if _params.get('limit') is not None: # noqa: E501
|
2216
|
+
_query_params.append(('limit', _params['limit']))
|
2217
|
+
|
2218
|
+
if _params.get('page') is not None: # noqa: E501
|
2219
|
+
_query_params.append(('page', _params['page']))
|
2220
|
+
|
2221
|
+
if _params.get('property_keys') is not None: # noqa: E501
|
2222
|
+
_query_params.append(('propertyKeys', _params['property_keys']))
|
2223
|
+
_collection_formats['propertyKeys'] = 'multi'
|
2224
|
+
|
2225
|
+
# process the header parameters
|
2226
|
+
_header_params = dict(_params.get('_headers', {}))
|
2227
|
+
# process the form parameters
|
2228
|
+
_form_params = []
|
2229
|
+
_files = {}
|
2230
|
+
# process the body parameter
|
2231
|
+
_body_params = None
|
2232
|
+
if _params['valuation_point_data_query_parameters'] is not None:
|
2233
|
+
_body_params = _params['valuation_point_data_query_parameters']
|
2234
|
+
|
2235
|
+
# set the HTTP header `Accept`
|
2236
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2237
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
2238
|
+
|
2239
|
+
# set the HTTP header `Content-Type`
|
2240
|
+
_content_types_list = _params.get('_content_type',
|
2241
|
+
self.api_client.select_header_content_type(
|
2242
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
2243
|
+
if _content_types_list:
|
2244
|
+
_header_params['Content-Type'] = _content_types_list
|
2245
|
+
|
2246
|
+
# authentication setting
|
2247
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
2248
|
+
|
2249
|
+
_response_types_map = {
|
2250
|
+
'200': "ValuationPointResourceListOfTrialBalance",
|
2251
|
+
'400': "LusidValidationProblemDetails",
|
2252
|
+
}
|
2253
|
+
|
2254
|
+
return self.api_client.call_api(
|
2255
|
+
'/api/funds/{scope}/{code}/valuationpoints/trialbalance/$query', 'POST',
|
2256
|
+
_path_params,
|
2257
|
+
_query_params,
|
2258
|
+
_header_params,
|
2259
|
+
body=_body_params,
|
2260
|
+
post_params=_form_params,
|
2261
|
+
files=_files,
|
2262
|
+
response_types_map=_response_types_map,
|
2263
|
+
auth_settings=_auth_settings,
|
2264
|
+
async_req=_params.get('async_req'),
|
2265
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2266
|
+
_preload_content=_params.get('_preload_content', True),
|
2267
|
+
_request_timeout=_params.get('_request_timeout'),
|
2268
|
+
opts=_params.get('opts'),
|
2269
|
+
collection_formats=_collection_formats,
|
2270
|
+
_request_auth=_params.get('_request_auth'))
|
2271
|
+
|
1818
2272
|
@overload
|
1819
2273
|
async def list_fees(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund.")], effective_at : Annotated[Optional[StrictStr], Field(description="The effective datetime or cut label at which to list the TimeVariant properties for the Fees. Defaults to the current LUSID system datetime if not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to list the Fees. Defaults to returning the latest version of each Fee if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing fees; this value is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, limit : Annotated[Optional[conint(strict=True, le=5000, ge=1)], Field(description="When paginating, limit the results to this number. Defaults to 100 if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results. For example, to filter on the treatment, specify \"treatment eq 'Monthly'\". For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, sort_by : Annotated[Optional[conlist(StrictStr)], Field(description="A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\"")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Fee' domain to decorate onto each Fee. These must take the format {domain}/{scope}/{code}, for example 'Fee/Account/Id'.")] = None, **kwargs) -> PagedResourceListOfFee: # noqa: E501
|
1820
2274
|
...
|
lusid/configuration.py
CHANGED
@@ -445,7 +445,7 @@ class Configuration:
|
|
445
445
|
return "Python SDK Debug Report:\n"\
|
446
446
|
"OS: {env}\n"\
|
447
447
|
"Python Version: {pyversion}\n"\
|
448
|
-
"Version of the API: 0.11.
|
448
|
+
"Version of the API: 0.11.7074\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
lusid/models/__init__.py
CHANGED
@@ -209,6 +209,7 @@ from lusid.models.configuration_recipe import ConfigurationRecipe
|
|
209
209
|
from lusid.models.constant_volatility_surface import ConstantVolatilitySurface
|
210
210
|
from lusid.models.constituents_adjustment_header import ConstituentsAdjustmentHeader
|
211
211
|
from lusid.models.contract_for_difference import ContractForDifference
|
212
|
+
from lusid.models.contribution_to_non_passing_rule_detail import ContributionToNonPassingRuleDetail
|
212
213
|
from lusid.models.corporate_action import CorporateAction
|
213
214
|
from lusid.models.corporate_action_source import CorporateActionSource
|
214
215
|
from lusid.models.corporate_action_transition import CorporateActionTransition
|
@@ -312,6 +313,8 @@ from lusid.models.discounting_dependency import DiscountingDependency
|
|
312
313
|
from lusid.models.discounting_method import DiscountingMethod
|
313
314
|
from lusid.models.dividend_option_event import DividendOptionEvent
|
314
315
|
from lusid.models.dividend_reinvestment_event import DividendReinvestmentEvent
|
316
|
+
from lusid.models.early_redemption_election import EarlyRedemptionElection
|
317
|
+
from lusid.models.early_redemption_event import EarlyRedemptionEvent
|
315
318
|
from lusid.models.economic_dependency import EconomicDependency
|
316
319
|
from lusid.models.economic_dependency_type import EconomicDependencyType
|
317
320
|
from lusid.models.economic_dependency_with_complex_market_data import EconomicDependencyWithComplexMarketData
|
@@ -1021,6 +1024,7 @@ from lusid.models.transaction_template_specification import TransactionTemplateS
|
|
1021
1024
|
from lusid.models.transaction_type import TransactionType
|
1022
1025
|
from lusid.models.transaction_type_alias import TransactionTypeAlias
|
1023
1026
|
from lusid.models.transaction_type_calculation import TransactionTypeCalculation
|
1027
|
+
from lusid.models.transaction_type_details import TransactionTypeDetails
|
1024
1028
|
from lusid.models.transaction_type_movement import TransactionTypeMovement
|
1025
1029
|
from lusid.models.transaction_type_property_mapping import TransactionTypePropertyMapping
|
1026
1030
|
from lusid.models.transaction_type_request import TransactionTypeRequest
|
@@ -1119,6 +1123,8 @@ from lusid.models.valuation_point_data_query_parameters import ValuationPointDat
|
|
1119
1123
|
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
1120
1124
|
from lusid.models.valuation_point_data_response import ValuationPointDataResponse
|
1121
1125
|
from lusid.models.valuation_point_overview import ValuationPointOverview
|
1126
|
+
from lusid.models.valuation_point_resource_list_of_journal_entry_line import ValuationPointResourceListOfJournalEntryLine
|
1127
|
+
from lusid.models.valuation_point_resource_list_of_trial_balance import ValuationPointResourceListOfTrialBalance
|
1122
1128
|
from lusid.models.valuation_request import ValuationRequest
|
1123
1129
|
from lusid.models.valuation_schedule import ValuationSchedule
|
1124
1130
|
from lusid.models.valuations_reconciliation_request import ValuationsReconciliationRequest
|
@@ -1350,6 +1356,7 @@ __all__ = [
|
|
1350
1356
|
"ConstantVolatilitySurface",
|
1351
1357
|
"ConstituentsAdjustmentHeader",
|
1352
1358
|
"ContractForDifference",
|
1359
|
+
"ContributionToNonPassingRuleDetail",
|
1353
1360
|
"CorporateAction",
|
1354
1361
|
"CorporateActionSource",
|
1355
1362
|
"CorporateActionTransition",
|
@@ -1453,6 +1460,8 @@ __all__ = [
|
|
1453
1460
|
"DiscountingMethod",
|
1454
1461
|
"DividendOptionEvent",
|
1455
1462
|
"DividendReinvestmentEvent",
|
1463
|
+
"EarlyRedemptionElection",
|
1464
|
+
"EarlyRedemptionEvent",
|
1456
1465
|
"EconomicDependency",
|
1457
1466
|
"EconomicDependencyType",
|
1458
1467
|
"EconomicDependencyWithComplexMarketData",
|
@@ -2162,6 +2171,7 @@ __all__ = [
|
|
2162
2171
|
"TransactionType",
|
2163
2172
|
"TransactionTypeAlias",
|
2164
2173
|
"TransactionTypeCalculation",
|
2174
|
+
"TransactionTypeDetails",
|
2165
2175
|
"TransactionTypeMovement",
|
2166
2176
|
"TransactionTypePropertyMapping",
|
2167
2177
|
"TransactionTypeRequest",
|
@@ -2260,6 +2270,8 @@ __all__ = [
|
|
2260
2270
|
"ValuationPointDataRequest",
|
2261
2271
|
"ValuationPointDataResponse",
|
2262
2272
|
"ValuationPointOverview",
|
2273
|
+
"ValuationPointResourceListOfJournalEntryLine",
|
2274
|
+
"ValuationPointResourceListOfTrialBalance",
|
2263
2275
|
"ValuationRequest",
|
2264
2276
|
"ValuationSchedule",
|
2265
2277
|
"ValuationsReconciliationRequest",
|
@@ -31,15 +31,15 @@ class AccumulationEvent(InstrumentEvent):
|
|
31
31
|
dividend_rate: Union[StrictFloat, StrictInt] = Field(..., alias="dividendRate", description="Dividend rate or payment rate as a percentage. i.e. 5% is written as 0.05")
|
32
32
|
ex_date: datetime = Field(..., alias="exDate", description="The first business day on which the dividend is not owed to the buying party. Typically this is T-1 from the RecordDate.")
|
33
33
|
payment_date: datetime = Field(..., alias="paymentDate", description="The date the company pays out dividends to shareholders.")
|
34
|
-
instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent")
|
34
|
+
instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent")
|
35
35
|
additional_properties: Dict[str, Any] = {}
|
36
36
|
__properties = ["instrumentEventType", "announcementDate", "dividendCurrency", "dividendRate", "exDate", "paymentDate"]
|
37
37
|
|
38
38
|
@validator('instrument_event_type')
|
39
39
|
def instrument_event_type_validate_enum(cls, value):
|
40
40
|
"""Validates the enum"""
|
41
|
-
if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent'):
|
42
|
-
raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent')")
|
41
|
+
if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent'):
|
42
|
+
raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent')")
|
43
43
|
return value
|
44
44
|
|
45
45
|
class Config:
|
@@ -25,9 +25,9 @@ class AdditionalPayment(BaseModel):
|
|
25
25
|
"""
|
26
26
|
Record describing additional payment entity. # noqa: E501
|
27
27
|
"""
|
28
|
-
amount: Union[StrictFloat, StrictInt] = Field(..., description="The
|
29
|
-
currency: StrictStr = Field(..., description="The
|
30
|
-
pay_date: datetime = Field(..., alias="payDate", description="Date when the
|
28
|
+
amount: Union[StrictFloat, StrictInt] = Field(..., description="The payment amount.")
|
29
|
+
currency: StrictStr = Field(..., description="The payment currency.")
|
30
|
+
pay_date: datetime = Field(..., alias="payDate", description="Date when the payment is made.")
|
31
31
|
pay_receive: constr(strict=True, min_length=1) = Field(..., alias="payReceive", description="Is it pay or receive. Supported string (enumeration) values are: [Pay, Receive].")
|
32
32
|
__properties = ["amount", "currency", "payDate", "payReceive"]
|
33
33
|
|