lusid-sdk 2.1.780__py3-none-any.whl → 2.1.782__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/__init__.py +2 -0
- lusid/api/investor_records_api.py +220 -0
- lusid/api/transaction_portfolios_api.py +48 -16
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +10 -0
- lusid/models/investor.py +121 -0
- lusid/models/investor_record.py +184 -0
- lusid/models/upsert_investor.py +102 -0
- lusid/models/upsert_investor_record_request.py +124 -0
- lusid/models/upsert_investor_records_response.py +137 -0
- {lusid_sdk-2.1.780.dist-info → lusid_sdk-2.1.782.dist-info}/METADATA +7 -1
- {lusid_sdk-2.1.780.dist-info → lusid_sdk-2.1.782.dist-info}/RECORD +14 -8
- {lusid_sdk-2.1.780.dist-info → lusid_sdk-2.1.782.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -50,6 +50,7 @@ from lusid.api.identifier_definitions_api import IdentifierDefinitionsApi
|
|
50
50
|
from lusid.api.instrument_event_types_api import InstrumentEventTypesApi
|
51
51
|
from lusid.api.instrument_events_api import InstrumentEventsApi
|
52
52
|
from lusid.api.instruments_api import InstrumentsApi
|
53
|
+
from lusid.api.investor_records_api import InvestorRecordsApi
|
53
54
|
from lusid.api.legacy_compliance_api import LegacyComplianceApi
|
54
55
|
from lusid.api.legal_entities_api import LegalEntitiesApi
|
55
56
|
from lusid.api.order_graph_api import OrderGraphApi
|
@@ -645,6 +646,8 @@ from lusid.models.interest_rate_swaption import InterestRateSwaption
|
|
645
646
|
from lusid.models.intermediate_compliance_step import IntermediateComplianceStep
|
646
647
|
from lusid.models.intermediate_compliance_step_request import IntermediateComplianceStepRequest
|
647
648
|
from lusid.models.intermediate_securities_distribution_event import IntermediateSecuritiesDistributionEvent
|
649
|
+
from lusid.models.investor import Investor
|
650
|
+
from lusid.models.investor_record import InvestorRecord
|
648
651
|
from lusid.models.ir_vol_cube_data import IrVolCubeData
|
649
652
|
from lusid.models.ir_vol_dependency import IrVolDependency
|
650
653
|
from lusid.models.is_business_day_response import IsBusinessDayResponse
|
@@ -1237,6 +1240,9 @@ from lusid.models.upsert_instrument_events_response import UpsertInstrumentEvent
|
|
1237
1240
|
from lusid.models.upsert_instrument_properties_response import UpsertInstrumentPropertiesResponse
|
1238
1241
|
from lusid.models.upsert_instrument_property_request import UpsertInstrumentPropertyRequest
|
1239
1242
|
from lusid.models.upsert_instruments_response import UpsertInstrumentsResponse
|
1243
|
+
from lusid.models.upsert_investor import UpsertInvestor
|
1244
|
+
from lusid.models.upsert_investor_record_request import UpsertInvestorRecordRequest
|
1245
|
+
from lusid.models.upsert_investor_records_response import UpsertInvestorRecordsResponse
|
1240
1246
|
from lusid.models.upsert_legal_entities_response import UpsertLegalEntitiesResponse
|
1241
1247
|
from lusid.models.upsert_legal_entity_access_metadata_request import UpsertLegalEntityAccessMetadataRequest
|
1242
1248
|
from lusid.models.upsert_legal_entity_request import UpsertLegalEntityRequest
|
@@ -1355,6 +1361,7 @@ __all__ = [
|
|
1355
1361
|
"InstrumentEventTypesApi",
|
1356
1362
|
"InstrumentEventsApi",
|
1357
1363
|
"InstrumentsApi",
|
1364
|
+
"InvestorRecordsApi",
|
1358
1365
|
"LegacyComplianceApi",
|
1359
1366
|
"LegalEntitiesApi",
|
1360
1367
|
"OrderGraphApi",
|
@@ -1940,6 +1947,8 @@ __all__ = [
|
|
1940
1947
|
"IntermediateComplianceStep",
|
1941
1948
|
"IntermediateComplianceStepRequest",
|
1942
1949
|
"IntermediateSecuritiesDistributionEvent",
|
1950
|
+
"Investor",
|
1951
|
+
"InvestorRecord",
|
1943
1952
|
"IrVolCubeData",
|
1944
1953
|
"IrVolDependency",
|
1945
1954
|
"IsBusinessDayResponse",
|
@@ -2532,6 +2541,9 @@ __all__ = [
|
|
2532
2541
|
"UpsertInstrumentPropertiesResponse",
|
2533
2542
|
"UpsertInstrumentPropertyRequest",
|
2534
2543
|
"UpsertInstrumentsResponse",
|
2544
|
+
"UpsertInvestor",
|
2545
|
+
"UpsertInvestorRecordRequest",
|
2546
|
+
"UpsertInvestorRecordsResponse",
|
2535
2547
|
"UpsertLegalEntitiesResponse",
|
2536
2548
|
"UpsertLegalEntityAccessMetadataRequest",
|
2537
2549
|
"UpsertLegalEntityRequest",
|
lusid/api/__init__.py
CHANGED
@@ -34,6 +34,7 @@ from lusid.api.identifier_definitions_api import IdentifierDefinitionsApi
|
|
34
34
|
from lusid.api.instrument_event_types_api import InstrumentEventTypesApi
|
35
35
|
from lusid.api.instrument_events_api import InstrumentEventsApi
|
36
36
|
from lusid.api.instruments_api import InstrumentsApi
|
37
|
+
from lusid.api.investor_records_api import InvestorRecordsApi
|
37
38
|
from lusid.api.legacy_compliance_api import LegacyComplianceApi
|
38
39
|
from lusid.api.legal_entities_api import LegalEntitiesApi
|
39
40
|
from lusid.api.order_graph_api import OrderGraphApi
|
@@ -109,6 +110,7 @@ __all__ = [
|
|
109
110
|
"InstrumentEventTypesApi",
|
110
111
|
"InstrumentEventsApi",
|
111
112
|
"InstrumentsApi",
|
113
|
+
"InvestorRecordsApi",
|
112
114
|
"LegacyComplianceApi",
|
113
115
|
"LegalEntitiesApi",
|
114
116
|
"OrderGraphApi",
|
@@ -0,0 +1,220 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
LUSID API
|
5
|
+
|
6
|
+
FINBOURNE Technology # noqa: E501
|
7
|
+
|
8
|
+
Contact: info@finbourne.com
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
"""
|
13
|
+
|
14
|
+
|
15
|
+
import re # noqa: F401
|
16
|
+
import io
|
17
|
+
import warnings
|
18
|
+
|
19
|
+
from pydantic.v1 import validate_arguments, ValidationError
|
20
|
+
from typing import overload, Optional, Union, Awaitable
|
21
|
+
|
22
|
+
from typing_extensions import Annotated
|
23
|
+
from pydantic.v1 import Field, constr
|
24
|
+
|
25
|
+
from typing import Dict
|
26
|
+
|
27
|
+
from lusid.models.upsert_investor_record_request import UpsertInvestorRecordRequest
|
28
|
+
from lusid.models.upsert_investor_records_response import UpsertInvestorRecordsResponse
|
29
|
+
|
30
|
+
from lusid.api_client import ApiClient
|
31
|
+
from lusid.api_response import ApiResponse
|
32
|
+
from lusid.exceptions import ( # noqa: F401
|
33
|
+
ApiTypeError,
|
34
|
+
ApiValueError
|
35
|
+
)
|
36
|
+
from lusid.extensions.configuration_options import ConfigurationOptions
|
37
|
+
|
38
|
+
# ensure templated type usages are imported
|
39
|
+
from pydantic.v1 import Field, StrictStr
|
40
|
+
from typing import Optional
|
41
|
+
from typing_extensions import Annotated
|
42
|
+
|
43
|
+
class InvestorRecordsApi:
|
44
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
45
|
+
Ref: https://openapi-generator.tech
|
46
|
+
|
47
|
+
Do not edit the class manually.
|
48
|
+
"""
|
49
|
+
|
50
|
+
def __init__(self, api_client=None) -> None:
|
51
|
+
if api_client is None:
|
52
|
+
api_client = ApiClient.get_default()
|
53
|
+
self.api_client = api_client
|
54
|
+
|
55
|
+
|
56
|
+
@overload
|
57
|
+
async def upsert_investor_records(self, success_mode : Annotated[StrictStr, Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial")], request_body : Annotated[Dict[str, UpsertInvestorRecordRequest], Field(..., description="A collection of requests to create or update Investor Records.")], **kwargs) -> UpsertInvestorRecordsResponse: # noqa: E501
|
58
|
+
...
|
59
|
+
|
60
|
+
@overload
|
61
|
+
def upsert_investor_records(self, success_mode : Annotated[StrictStr, Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial")], request_body : Annotated[Dict[str, UpsertInvestorRecordRequest], Field(..., description="A collection of requests to create or update Investor Records.")], async_req: Optional[bool]=True, **kwargs) -> UpsertInvestorRecordsResponse: # noqa: E501
|
62
|
+
...
|
63
|
+
|
64
|
+
@validate_arguments
|
65
|
+
def upsert_investor_records(self, success_mode : Annotated[StrictStr, Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial")], request_body : Annotated[Dict[str, UpsertInvestorRecordRequest], Field(..., description="A collection of requests to create or update Investor Records.")], async_req: Optional[bool]=None, **kwargs) -> Union[UpsertInvestorRecordsResponse, Awaitable[UpsertInvestorRecordsResponse]]: # noqa: E501
|
66
|
+
"""[EARLY ACCESS] UpsertInvestorRecords: Pluralised upsert of Investor Records # noqa: E501
|
67
|
+
|
68
|
+
Creates or updates a collection of Investor Records # noqa: E501
|
69
|
+
This method makes a synchronous HTTP request by default. To make an
|
70
|
+
asynchronous HTTP request, please pass async_req=True
|
71
|
+
|
72
|
+
>>> thread = api.upsert_investor_records(success_mode, request_body, async_req=True)
|
73
|
+
>>> result = thread.get()
|
74
|
+
|
75
|
+
:param success_mode: Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial (required)
|
76
|
+
:type success_mode: str
|
77
|
+
:param request_body: A collection of requests to create or update Investor Records. (required)
|
78
|
+
:type request_body: Dict[str, UpsertInvestorRecordRequest]
|
79
|
+
:param async_req: Whether to execute the request asynchronously.
|
80
|
+
:type async_req: bool, optional
|
81
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
82
|
+
:param opts: Configuration options for this request
|
83
|
+
:type opts: ConfigurationOptions, optional
|
84
|
+
:return: Returns the result object.
|
85
|
+
If the method is called asynchronously,
|
86
|
+
returns the request thread.
|
87
|
+
:rtype: UpsertInvestorRecordsResponse
|
88
|
+
"""
|
89
|
+
kwargs['_return_http_data_only'] = True
|
90
|
+
if '_preload_content' in kwargs:
|
91
|
+
message = "Error! Please call the upsert_investor_records_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
92
|
+
raise ValueError(message)
|
93
|
+
if async_req is not None:
|
94
|
+
kwargs['async_req'] = async_req
|
95
|
+
return self.upsert_investor_records_with_http_info(success_mode, request_body, **kwargs) # noqa: E501
|
96
|
+
|
97
|
+
@validate_arguments
|
98
|
+
def upsert_investor_records_with_http_info(self, success_mode : Annotated[StrictStr, Field(..., description="Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial")], request_body : Annotated[Dict[str, UpsertInvestorRecordRequest], Field(..., description="A collection of requests to create or update Investor Records.")], **kwargs) -> ApiResponse: # noqa: E501
|
99
|
+
"""[EARLY ACCESS] UpsertInvestorRecords: Pluralised upsert of Investor Records # noqa: E501
|
100
|
+
|
101
|
+
Creates or updates a collection of Investor Records # noqa: E501
|
102
|
+
This method makes a synchronous HTTP request by default. To make an
|
103
|
+
asynchronous HTTP request, please pass async_req=True
|
104
|
+
|
105
|
+
>>> thread = api.upsert_investor_records_with_http_info(success_mode, request_body, async_req=True)
|
106
|
+
>>> result = thread.get()
|
107
|
+
|
108
|
+
:param success_mode: Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial (required)
|
109
|
+
:type success_mode: str
|
110
|
+
:param request_body: A collection of requests to create or update Investor Records. (required)
|
111
|
+
:type request_body: Dict[str, UpsertInvestorRecordRequest]
|
112
|
+
:param async_req: Whether to execute the request asynchronously.
|
113
|
+
:type async_req: bool, optional
|
114
|
+
:param _preload_content: if False, the ApiResponse.data will
|
115
|
+
be set to none and raw_data will store the
|
116
|
+
HTTP response body without reading/decoding.
|
117
|
+
Default is True.
|
118
|
+
:type _preload_content: bool, optional
|
119
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
120
|
+
object with status code, headers, etc
|
121
|
+
:type _return_http_data_only: bool, optional
|
122
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
123
|
+
:param opts: Configuration options for this request
|
124
|
+
:type opts: ConfigurationOptions, optional
|
125
|
+
:param _request_auth: set to override the auth_settings for an a single
|
126
|
+
request; this effectively ignores the authentication
|
127
|
+
in the spec for a single request.
|
128
|
+
:type _request_auth: dict, optional
|
129
|
+
:type _content_type: string, optional: force content-type for the request
|
130
|
+
:return: Returns the result object.
|
131
|
+
If the method is called asynchronously,
|
132
|
+
returns the request thread.
|
133
|
+
:rtype: tuple(UpsertInvestorRecordsResponse, status_code(int), headers(HTTPHeaderDict))
|
134
|
+
"""
|
135
|
+
|
136
|
+
_params = locals()
|
137
|
+
|
138
|
+
_all_params = [
|
139
|
+
'success_mode',
|
140
|
+
'request_body'
|
141
|
+
]
|
142
|
+
_all_params.extend(
|
143
|
+
[
|
144
|
+
'async_req',
|
145
|
+
'_return_http_data_only',
|
146
|
+
'_preload_content',
|
147
|
+
'_request_timeout',
|
148
|
+
'_request_auth',
|
149
|
+
'_content_type',
|
150
|
+
'_headers',
|
151
|
+
'opts'
|
152
|
+
]
|
153
|
+
)
|
154
|
+
|
155
|
+
# validate the arguments
|
156
|
+
for _key, _val in _params['kwargs'].items():
|
157
|
+
if _key not in _all_params:
|
158
|
+
raise ApiTypeError(
|
159
|
+
"Got an unexpected keyword argument '%s'"
|
160
|
+
" to method upsert_investor_records" % _key
|
161
|
+
)
|
162
|
+
_params[_key] = _val
|
163
|
+
del _params['kwargs']
|
164
|
+
|
165
|
+
_collection_formats = {}
|
166
|
+
|
167
|
+
# process the path parameters
|
168
|
+
_path_params = {}
|
169
|
+
|
170
|
+
# process the query parameters
|
171
|
+
_query_params = []
|
172
|
+
if _params.get('success_mode') is not None: # noqa: E501
|
173
|
+
_query_params.append(('successMode', _params['success_mode']))
|
174
|
+
|
175
|
+
# process the header parameters
|
176
|
+
_header_params = dict(_params.get('_headers', {}))
|
177
|
+
# process the form parameters
|
178
|
+
_form_params = []
|
179
|
+
_files = {}
|
180
|
+
# process the body parameter
|
181
|
+
_body_params = None
|
182
|
+
if _params['request_body'] is not None:
|
183
|
+
_body_params = _params['request_body']
|
184
|
+
|
185
|
+
# set the HTTP header `Accept`
|
186
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
187
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
188
|
+
|
189
|
+
# set the HTTP header `Content-Type`
|
190
|
+
_content_types_list = _params.get('_content_type',
|
191
|
+
self.api_client.select_header_content_type(
|
192
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
193
|
+
if _content_types_list:
|
194
|
+
_header_params['Content-Type'] = _content_types_list
|
195
|
+
|
196
|
+
# authentication setting
|
197
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
198
|
+
|
199
|
+
_response_types_map = {
|
200
|
+
'201': "UpsertInvestorRecordsResponse",
|
201
|
+
'400': "LusidValidationProblemDetails",
|
202
|
+
}
|
203
|
+
|
204
|
+
return self.api_client.call_api(
|
205
|
+
'/api/investorrecords/$batchUpsert', 'POST',
|
206
|
+
_path_params,
|
207
|
+
_query_params,
|
208
|
+
_header_params,
|
209
|
+
body=_body_params,
|
210
|
+
post_params=_form_params,
|
211
|
+
files=_files,
|
212
|
+
response_types_map=_response_types_map,
|
213
|
+
auth_settings=_auth_settings,
|
214
|
+
async_req=_params.get('async_req'),
|
215
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
216
|
+
_preload_content=_params.get('_preload_content', True),
|
217
|
+
_request_timeout=_params.get('_request_timeout'),
|
218
|
+
opts=_params.get('opts'),
|
219
|
+
collection_formats=_collection_formats,
|
220
|
+
_request_auth=_params.get('_request_auth'))
|
@@ -5438,22 +5438,22 @@ class TransactionPortfoliosApi:
|
|
5438
5438
|
|
5439
5439
|
|
5440
5440
|
@overload
|
5441
|
-
async def get_transactions(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.")], from_transaction_date : Annotated[Optional[StrictStr], Field( description="The lower bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no lower bound if this is not specified.")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The upper bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no upper bound if this is not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression with which to filter the result set. For example, to return only transactions with a transaction type of 'Buy', specify \"type eq 'Buy'\" For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', \"LegalEntity\" or \"CustodianAccount\" domain to decorate onto transactions. These must have the format {domain}/{scope}/{code}, for example 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetTransactions.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. The current behaviour is to return all transactions if possible, but this will change to defaulting to 1000 if not specified in the future. It is recommended to populate this field to enable pagination.")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether or not to include cancelled transactions, including previous versions of transactions which have since been amended. Defaults to False if not specified.")] = 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, **kwargs) -> VersionedResourceListOfTransaction: # noqa: E501
|
5441
|
+
async def get_transactions(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.")], from_transaction_date : Annotated[Optional[StrictStr], Field( description="The lower bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no lower bound if this is not specified.")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The upper bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no upper bound if this is not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression with which to filter the result set. For example, to return only transactions with a transaction type of 'Buy', specify \"type eq 'Buy'\" For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', \"LegalEntity\" or \"CustodianAccount\" domain to decorate onto transactions. These must have the format {domain}/{scope}/{code}, for example 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetTransactions.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. The current behaviour is to return all transactions if possible, but this will change to defaulting to 1000 if not specified in the future. It is recommended to populate this field to enable pagination.")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether or not to include cancelled transactions, including previous versions of transactions which have since been amended. Defaults to False if not specified.")] = 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, data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, **kwargs) -> VersionedResourceListOfTransaction: # noqa: E501
|
5442
5442
|
...
|
5443
5443
|
|
5444
5444
|
@overload
|
5445
|
-
def get_transactions(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.")], from_transaction_date : Annotated[Optional[StrictStr], Field( description="The lower bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no lower bound if this is not specified.")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The upper bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no upper bound if this is not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression with which to filter the result set. For example, to return only transactions with a transaction type of 'Buy', specify \"type eq 'Buy'\" For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', \"LegalEntity\" or \"CustodianAccount\" domain to decorate onto transactions. These must have the format {domain}/{scope}/{code}, for example 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetTransactions.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. The current behaviour is to return all transactions if possible, but this will change to defaulting to 1000 if not specified in the future. It is recommended to populate this field to enable pagination.")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether or not to include cancelled transactions, including previous versions of transactions which have since been amended. Defaults to False if not specified.")] = 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, async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListOfTransaction: # noqa: E501
|
5445
|
+
def get_transactions(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.")], from_transaction_date : Annotated[Optional[StrictStr], Field( description="The lower bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no lower bound if this is not specified.")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The upper bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no upper bound if this is not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression with which to filter the result set. For example, to return only transactions with a transaction type of 'Buy', specify \"type eq 'Buy'\" For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', \"LegalEntity\" or \"CustodianAccount\" domain to decorate onto transactions. These must have the format {domain}/{scope}/{code}, for example 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetTransactions.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. The current behaviour is to return all transactions if possible, but this will change to defaulting to 1000 if not specified in the future. It is recommended to populate this field to enable pagination.")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether or not to include cancelled transactions, including previous versions of transactions which have since been amended. Defaults to False if not specified.")] = 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, data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListOfTransaction: # noqa: E501
|
5446
5446
|
...
|
5447
5447
|
|
5448
5448
|
@validate_arguments
|
5449
|
-
def get_transactions(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.")], from_transaction_date : Annotated[Optional[StrictStr], Field( description="The lower bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no lower bound if this is not specified.")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The upper bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no upper bound if this is not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression with which to filter the result set. For example, to return only transactions with a transaction type of 'Buy', specify \"type eq 'Buy'\" For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', \"LegalEntity\" or \"CustodianAccount\" domain to decorate onto transactions. These must have the format {domain}/{scope}/{code}, for example 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetTransactions.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. The current behaviour is to return all transactions if possible, but this will change to defaulting to 1000 if not specified in the future. It is recommended to populate this field to enable pagination.")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether or not to include cancelled transactions, including previous versions of transactions which have since been amended. Defaults to False if not specified.")] = 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, async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListOfTransaction, Awaitable[VersionedResourceListOfTransaction]]: # noqa: E501
|
5449
|
+
def get_transactions(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.")], from_transaction_date : Annotated[Optional[StrictStr], Field( description="The lower bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no lower bound if this is not specified.")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The upper bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no upper bound if this is not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression with which to filter the result set. For example, to return only transactions with a transaction type of 'Buy', specify \"type eq 'Buy'\" For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', \"LegalEntity\" or \"CustodianAccount\" domain to decorate onto transactions. These must have the format {domain}/{scope}/{code}, for example 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetTransactions.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. The current behaviour is to return all transactions if possible, but this will change to defaulting to 1000 if not specified in the future. It is recommended to populate this field to enable pagination.")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether or not to include cancelled transactions, including previous versions of transactions which have since been amended. Defaults to False if not specified.")] = 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, data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListOfTransaction, Awaitable[VersionedResourceListOfTransaction]]: # noqa: E501
|
5450
5450
|
"""GetTransactions: Get transactions # noqa: E501
|
5451
5451
|
|
5452
5452
|
Retrieve all the transactions that occurred during a particular time interval. If the portfolio is a derived transaction portfolio, the transactions returned are the union set of all transactions of the parent (and any grandparents, etc.) as well as those of the derived transaction portfolio itself. # noqa: E501
|
5453
5453
|
This method makes a synchronous HTTP request by default. To make an
|
5454
5454
|
asynchronous HTTP request, please pass async_req=True
|
5455
5455
|
|
5456
|
-
>>> thread = api.get_transactions(scope, code, from_transaction_date, to_transaction_date, as_at, filter, property_keys, page, limit, show_cancelled_transactions, sort_by, async_req=True)
|
5456
|
+
>>> thread = api.get_transactions(scope, code, from_transaction_date, to_transaction_date, as_at, filter, property_keys, page, limit, show_cancelled_transactions, sort_by, data_model_scope, data_model_code, async_req=True)
|
5457
5457
|
>>> result = thread.get()
|
5458
5458
|
|
5459
5459
|
:param scope: The scope of the transaction portfolio. (required)
|
@@ -5478,6 +5478,10 @@ class TransactionPortfoliosApi:
|
|
5478
5478
|
:type show_cancelled_transactions: bool
|
5479
5479
|
:param sort_by: A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\".
|
5480
5480
|
:type sort_by: List[str]
|
5481
|
+
:param data_model_scope: The optional scope of a Custom Data Model to use
|
5482
|
+
:type data_model_scope: str
|
5483
|
+
:param data_model_code: The optional code of a Custom Data Model to use
|
5484
|
+
:type data_model_code: str
|
5481
5485
|
:param async_req: Whether to execute the request asynchronously.
|
5482
5486
|
:type async_req: bool, optional
|
5483
5487
|
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
@@ -5494,17 +5498,17 @@ class TransactionPortfoliosApi:
|
|
5494
5498
|
raise ValueError(message)
|
5495
5499
|
if async_req is not None:
|
5496
5500
|
kwargs['async_req'] = async_req
|
5497
|
-
return self.get_transactions_with_http_info(scope, code, from_transaction_date, to_transaction_date, as_at, filter, property_keys, page, limit, show_cancelled_transactions, sort_by, **kwargs) # noqa: E501
|
5501
|
+
return self.get_transactions_with_http_info(scope, code, from_transaction_date, to_transaction_date, as_at, filter, property_keys, page, limit, show_cancelled_transactions, sort_by, data_model_scope, data_model_code, **kwargs) # noqa: E501
|
5498
5502
|
|
5499
5503
|
@validate_arguments
|
5500
|
-
def get_transactions_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.")], from_transaction_date : Annotated[Optional[StrictStr], Field( description="The lower bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no lower bound if this is not specified.")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The upper bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no upper bound if this is not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression with which to filter the result set. For example, to return only transactions with a transaction type of 'Buy', specify \"type eq 'Buy'\" For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', \"LegalEntity\" or \"CustodianAccount\" domain to decorate onto transactions. These must have the format {domain}/{scope}/{code}, for example 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetTransactions.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. The current behaviour is to return all transactions if possible, but this will change to defaulting to 1000 if not specified in the future. It is recommended to populate this field to enable pagination.")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether or not to include cancelled transactions, including previous versions of transactions which have since been amended. Defaults to False if not specified.")] = 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, **kwargs) -> ApiResponse: # noqa: E501
|
5504
|
+
def get_transactions_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.")], from_transaction_date : Annotated[Optional[StrictStr], Field( description="The lower bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no lower bound if this is not specified.")] = None, to_transaction_date : Annotated[Optional[StrictStr], Field( description="The upper bound effective datetime or cut label (inclusive) from which to retrieve transactions. There is no upper bound if this is not specified.")] = None, as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve transactions. Defaults to returning the latest version of each transaction if not specified.")] = None, filter : Annotated[Optional[StrictStr], Field( description="Expression with which to filter the result set. For example, to return only transactions with a transaction type of 'Buy', specify \"type eq 'Buy'\" For more information about filtering LUSID results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the 'Instrument', 'Transaction', \"LegalEntity\" or \"CustodianAccount\" domain to decorate onto transactions. These must have the format {domain}/{scope}/{code}, for example 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'.")] = None, page : Annotated[Optional[StrictStr], Field( description="The pagination token to use to continue listing transactions from a previous call to GetTransactions.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. The current behaviour is to return all transactions if possible, but this will change to defaulting to 1000 if not specified in the future. It is recommended to populate this field to enable pagination.")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether or not to include cancelled transactions, including previous versions of transactions which have since been amended. Defaults to False if not specified.")] = 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, data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
5501
5505
|
"""GetTransactions: Get transactions # noqa: E501
|
5502
5506
|
|
5503
5507
|
Retrieve all the transactions that occurred during a particular time interval. If the portfolio is a derived transaction portfolio, the transactions returned are the union set of all transactions of the parent (and any grandparents, etc.) as well as those of the derived transaction portfolio itself. # noqa: E501
|
5504
5508
|
This method makes a synchronous HTTP request by default. To make an
|
5505
5509
|
asynchronous HTTP request, please pass async_req=True
|
5506
5510
|
|
5507
|
-
>>> thread = api.get_transactions_with_http_info(scope, code, from_transaction_date, to_transaction_date, as_at, filter, property_keys, page, limit, show_cancelled_transactions, sort_by, async_req=True)
|
5511
|
+
>>> thread = api.get_transactions_with_http_info(scope, code, from_transaction_date, to_transaction_date, as_at, filter, property_keys, page, limit, show_cancelled_transactions, sort_by, data_model_scope, data_model_code, async_req=True)
|
5508
5512
|
>>> result = thread.get()
|
5509
5513
|
|
5510
5514
|
:param scope: The scope of the transaction portfolio. (required)
|
@@ -5529,6 +5533,10 @@ class TransactionPortfoliosApi:
|
|
5529
5533
|
:type show_cancelled_transactions: bool
|
5530
5534
|
:param sort_by: A list of field names or properties to sort by, each suffixed by \" ASC\" or \" DESC\".
|
5531
5535
|
:type sort_by: List[str]
|
5536
|
+
:param data_model_scope: The optional scope of a Custom Data Model to use
|
5537
|
+
:type data_model_scope: str
|
5538
|
+
:param data_model_code: The optional code of a Custom Data Model to use
|
5539
|
+
:type data_model_code: str
|
5532
5540
|
:param async_req: Whether to execute the request asynchronously.
|
5533
5541
|
:type async_req: bool, optional
|
5534
5542
|
:param _preload_content: if False, the ApiResponse.data will
|
@@ -5566,7 +5574,9 @@ class TransactionPortfoliosApi:
|
|
5566
5574
|
'page',
|
5567
5575
|
'limit',
|
5568
5576
|
'show_cancelled_transactions',
|
5569
|
-
'sort_by'
|
5577
|
+
'sort_by',
|
5578
|
+
'data_model_scope',
|
5579
|
+
'data_model_code'
|
5570
5580
|
]
|
5571
5581
|
_all_params.extend(
|
5572
5582
|
[
|
@@ -5636,6 +5646,12 @@ class TransactionPortfoliosApi:
|
|
5636
5646
|
_query_params.append(('sortBy', _params['sort_by']))
|
5637
5647
|
_collection_formats['sortBy'] = 'multi'
|
5638
5648
|
|
5649
|
+
if _params.get('data_model_scope') is not None: # noqa: E501
|
5650
|
+
_query_params.append(('dataModelScope', _params['data_model_scope']))
|
5651
|
+
|
5652
|
+
if _params.get('data_model_code') is not None: # noqa: E501
|
5653
|
+
_query_params.append(('dataModelCode', _params['data_model_code']))
|
5654
|
+
|
5639
5655
|
# process the header parameters
|
5640
5656
|
_header_params = dict(_params.get('_headers', {}))
|
5641
5657
|
# process the form parameters
|
@@ -7815,22 +7831,22 @@ class TransactionPortfoliosApi:
|
|
7815
7831
|
|
7816
7832
|
|
7817
7833
|
@overload
|
7818
|
-
async def upsert_transactions(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.")], transaction_request : Annotated[conlist(TransactionRequest), Field(..., description="A list of transactions to be created or updated.")], preserve_properties : Annotated[Optional[StrictBool], Field(description="If set to false, the entire property set will be overwritten by the provided properties. If not specified or set to true, only the properties provided will be updated.")] = None, **kwargs) -> UpsertPortfolioTransactionsResponse: # noqa: E501
|
7834
|
+
async def upsert_transactions(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.")], transaction_request : Annotated[conlist(TransactionRequest), Field(..., description="A list of transactions to be created or updated.")], preserve_properties : Annotated[Optional[StrictBool], Field(description="If set to false, the entire property set will be overwritten by the provided properties. If not specified or set to true, only the properties provided will be updated.")] = None, data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, **kwargs) -> UpsertPortfolioTransactionsResponse: # noqa: E501
|
7819
7835
|
...
|
7820
7836
|
|
7821
7837
|
@overload
|
7822
|
-
def upsert_transactions(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.")], transaction_request : Annotated[conlist(TransactionRequest), Field(..., description="A list of transactions to be created or updated.")], preserve_properties : Annotated[Optional[StrictBool], Field(description="If set to false, the entire property set will be overwritten by the provided properties. If not specified or set to true, only the properties provided will be updated.")] = None, async_req: Optional[bool]=True, **kwargs) -> UpsertPortfolioTransactionsResponse: # noqa: E501
|
7838
|
+
def upsert_transactions(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.")], transaction_request : Annotated[conlist(TransactionRequest), Field(..., description="A list of transactions to be created or updated.")], preserve_properties : Annotated[Optional[StrictBool], Field(description="If set to false, the entire property set will be overwritten by the provided properties. If not specified or set to true, only the properties provided will be updated.")] = None, data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, async_req: Optional[bool]=True, **kwargs) -> UpsertPortfolioTransactionsResponse: # noqa: E501
|
7823
7839
|
...
|
7824
7840
|
|
7825
7841
|
@validate_arguments
|
7826
|
-
def upsert_transactions(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.")], transaction_request : Annotated[conlist(TransactionRequest), Field(..., description="A list of transactions to be created or updated.")], preserve_properties : Annotated[Optional[StrictBool], Field(description="If set to false, the entire property set will be overwritten by the provided properties. If not specified or set to true, only the properties provided will be updated.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[UpsertPortfolioTransactionsResponse, Awaitable[UpsertPortfolioTransactionsResponse]]: # noqa: E501
|
7842
|
+
def upsert_transactions(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.")], transaction_request : Annotated[conlist(TransactionRequest), Field(..., description="A list of transactions to be created or updated.")], preserve_properties : Annotated[Optional[StrictBool], Field(description="If set to false, the entire property set will be overwritten by the provided properties. If not specified or set to true, only the properties provided will be updated.")] = None, data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[UpsertPortfolioTransactionsResponse, Awaitable[UpsertPortfolioTransactionsResponse]]: # noqa: E501
|
7827
7843
|
"""UpsertTransactions: Upsert transactions # noqa: E501
|
7828
7844
|
|
7829
7845
|
Create or update transactions in the transaction portfolio. A transaction will be updated if it already exists and created if it does not. The maximum number of transactions that this method can upsert per request is 10,000. # noqa: E501
|
7830
7846
|
This method makes a synchronous HTTP request by default. To make an
|
7831
7847
|
asynchronous HTTP request, please pass async_req=True
|
7832
7848
|
|
7833
|
-
>>> thread = api.upsert_transactions(scope, code, transaction_request, preserve_properties, async_req=True)
|
7849
|
+
>>> thread = api.upsert_transactions(scope, code, transaction_request, preserve_properties, data_model_scope, data_model_code, async_req=True)
|
7834
7850
|
>>> result = thread.get()
|
7835
7851
|
|
7836
7852
|
:param scope: The scope of the transaction portfolio. (required)
|
@@ -7841,6 +7857,10 @@ class TransactionPortfoliosApi:
|
|
7841
7857
|
:type transaction_request: List[TransactionRequest]
|
7842
7858
|
:param preserve_properties: If set to false, the entire property set will be overwritten by the provided properties. If not specified or set to true, only the properties provided will be updated.
|
7843
7859
|
:type preserve_properties: bool
|
7860
|
+
:param data_model_scope: The optional scope of a Custom Data Model to use
|
7861
|
+
:type data_model_scope: str
|
7862
|
+
:param data_model_code: The optional code of a Custom Data Model to use
|
7863
|
+
:type data_model_code: str
|
7844
7864
|
:param async_req: Whether to execute the request asynchronously.
|
7845
7865
|
:type async_req: bool, optional
|
7846
7866
|
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
@@ -7857,17 +7877,17 @@ class TransactionPortfoliosApi:
|
|
7857
7877
|
raise ValueError(message)
|
7858
7878
|
if async_req is not None:
|
7859
7879
|
kwargs['async_req'] = async_req
|
7860
|
-
return self.upsert_transactions_with_http_info(scope, code, transaction_request, preserve_properties, **kwargs) # noqa: E501
|
7880
|
+
return self.upsert_transactions_with_http_info(scope, code, transaction_request, preserve_properties, data_model_scope, data_model_code, **kwargs) # noqa: E501
|
7861
7881
|
|
7862
7882
|
@validate_arguments
|
7863
|
-
def upsert_transactions_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.")], transaction_request : Annotated[conlist(TransactionRequest), Field(..., description="A list of transactions to be created or updated.")], preserve_properties : Annotated[Optional[StrictBool], Field(description="If set to false, the entire property set will be overwritten by the provided properties. If not specified or set to true, only the properties provided will be updated.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
7883
|
+
def upsert_transactions_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.")], transaction_request : Annotated[conlist(TransactionRequest), Field(..., description="A list of transactions to be created or updated.")], preserve_properties : Annotated[Optional[StrictBool], Field(description="If set to false, the entire property set will be overwritten by the provided properties. If not specified or set to true, only the properties provided will be updated.")] = None, data_model_scope : Annotated[Optional[StrictStr], Field( description="The optional scope of a Custom Data Model to use")] = None, data_model_code : Annotated[Optional[StrictStr], Field( description="The optional code of a Custom Data Model to use")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
7864
7884
|
"""UpsertTransactions: Upsert transactions # noqa: E501
|
7865
7885
|
|
7866
7886
|
Create or update transactions in the transaction portfolio. A transaction will be updated if it already exists and created if it does not. The maximum number of transactions that this method can upsert per request is 10,000. # noqa: E501
|
7867
7887
|
This method makes a synchronous HTTP request by default. To make an
|
7868
7888
|
asynchronous HTTP request, please pass async_req=True
|
7869
7889
|
|
7870
|
-
>>> thread = api.upsert_transactions_with_http_info(scope, code, transaction_request, preserve_properties, async_req=True)
|
7890
|
+
>>> thread = api.upsert_transactions_with_http_info(scope, code, transaction_request, preserve_properties, data_model_scope, data_model_code, async_req=True)
|
7871
7891
|
>>> result = thread.get()
|
7872
7892
|
|
7873
7893
|
:param scope: The scope of the transaction portfolio. (required)
|
@@ -7878,6 +7898,10 @@ class TransactionPortfoliosApi:
|
|
7878
7898
|
:type transaction_request: List[TransactionRequest]
|
7879
7899
|
:param preserve_properties: If set to false, the entire property set will be overwritten by the provided properties. If not specified or set to true, only the properties provided will be updated.
|
7880
7900
|
:type preserve_properties: bool
|
7901
|
+
:param data_model_scope: The optional scope of a Custom Data Model to use
|
7902
|
+
:type data_model_scope: str
|
7903
|
+
:param data_model_code: The optional code of a Custom Data Model to use
|
7904
|
+
:type data_model_code: str
|
7881
7905
|
:param async_req: Whether to execute the request asynchronously.
|
7882
7906
|
:type async_req: bool, optional
|
7883
7907
|
:param _preload_content: if False, the ApiResponse.data will
|
@@ -7908,7 +7932,9 @@ class TransactionPortfoliosApi:
|
|
7908
7932
|
'scope',
|
7909
7933
|
'code',
|
7910
7934
|
'transaction_request',
|
7911
|
-
'preserve_properties'
|
7935
|
+
'preserve_properties',
|
7936
|
+
'data_model_scope',
|
7937
|
+
'data_model_code'
|
7912
7938
|
]
|
7913
7939
|
_all_params.extend(
|
7914
7940
|
[
|
@@ -7949,6 +7975,12 @@ class TransactionPortfoliosApi:
|
|
7949
7975
|
if _params.get('preserve_properties') is not None: # noqa: E501
|
7950
7976
|
_query_params.append(('preserveProperties', _params['preserve_properties']))
|
7951
7977
|
|
7978
|
+
if _params.get('data_model_scope') is not None: # noqa: E501
|
7979
|
+
_query_params.append(('dataModelScope', _params['data_model_scope']))
|
7980
|
+
|
7981
|
+
if _params.get('data_model_code') is not None: # noqa: E501
|
7982
|
+
_query_params.append(('dataModelCode', _params['data_model_code']))
|
7983
|
+
|
7952
7984
|
# process the header parameters
|
7953
7985
|
_header_params = dict(_params.get('_headers', {}))
|
7954
7986
|
# process the form parameters
|
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.7740\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
@@ -560,6 +560,8 @@ from lusid.models.interest_rate_swaption import InterestRateSwaption
|
|
560
560
|
from lusid.models.intermediate_compliance_step import IntermediateComplianceStep
|
561
561
|
from lusid.models.intermediate_compliance_step_request import IntermediateComplianceStepRequest
|
562
562
|
from lusid.models.intermediate_securities_distribution_event import IntermediateSecuritiesDistributionEvent
|
563
|
+
from lusid.models.investor import Investor
|
564
|
+
from lusid.models.investor_record import InvestorRecord
|
563
565
|
from lusid.models.ir_vol_cube_data import IrVolCubeData
|
564
566
|
from lusid.models.ir_vol_dependency import IrVolDependency
|
565
567
|
from lusid.models.is_business_day_response import IsBusinessDayResponse
|
@@ -1152,6 +1154,9 @@ from lusid.models.upsert_instrument_events_response import UpsertInstrumentEvent
|
|
1152
1154
|
from lusid.models.upsert_instrument_properties_response import UpsertInstrumentPropertiesResponse
|
1153
1155
|
from lusid.models.upsert_instrument_property_request import UpsertInstrumentPropertyRequest
|
1154
1156
|
from lusid.models.upsert_instruments_response import UpsertInstrumentsResponse
|
1157
|
+
from lusid.models.upsert_investor import UpsertInvestor
|
1158
|
+
from lusid.models.upsert_investor_record_request import UpsertInvestorRecordRequest
|
1159
|
+
from lusid.models.upsert_investor_records_response import UpsertInvestorRecordsResponse
|
1155
1160
|
from lusid.models.upsert_legal_entities_response import UpsertLegalEntitiesResponse
|
1156
1161
|
from lusid.models.upsert_legal_entity_access_metadata_request import UpsertLegalEntityAccessMetadataRequest
|
1157
1162
|
from lusid.models.upsert_legal_entity_request import UpsertLegalEntityRequest
|
@@ -1771,6 +1776,8 @@ __all__ = [
|
|
1771
1776
|
"IntermediateComplianceStep",
|
1772
1777
|
"IntermediateComplianceStepRequest",
|
1773
1778
|
"IntermediateSecuritiesDistributionEvent",
|
1779
|
+
"Investor",
|
1780
|
+
"InvestorRecord",
|
1774
1781
|
"IrVolCubeData",
|
1775
1782
|
"IrVolDependency",
|
1776
1783
|
"IsBusinessDayResponse",
|
@@ -2363,6 +2370,9 @@ __all__ = [
|
|
2363
2370
|
"UpsertInstrumentPropertiesResponse",
|
2364
2371
|
"UpsertInstrumentPropertyRequest",
|
2365
2372
|
"UpsertInstrumentsResponse",
|
2373
|
+
"UpsertInvestor",
|
2374
|
+
"UpsertInvestorRecordRequest",
|
2375
|
+
"UpsertInvestorRecordsResponse",
|
2366
2376
|
"UpsertLegalEntitiesResponse",
|
2367
2377
|
"UpsertLegalEntityAccessMetadataRequest",
|
2368
2378
|
"UpsertLegalEntityRequest",
|