lusid-sdk 2.1.482__py3-none-any.whl → 2.1.485__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 +2 -0
- lusid/api/transaction_portfolios_api.py +200 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +2 -0
- lusid/models/resource_list_of_output_transaction.py +113 -0
- {lusid_sdk-2.1.482.dist-info → lusid_sdk-2.1.485.dist-info}/METADATA +3 -1
- {lusid_sdk-2.1.482.dist-info → lusid_sdk-2.1.485.dist-info}/RECORD +8 -7
- {lusid_sdk-2.1.482.dist-info → lusid_sdk-2.1.485.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -932,6 +932,7 @@ from lusid.models.resource_list_of_mapping import ResourceListOfMapping
|
|
932
932
|
from lusid.models.resource_list_of_moved_order_to_different_block_response import ResourceListOfMovedOrderToDifferentBlockResponse
|
933
933
|
from lusid.models.resource_list_of_order import ResourceListOfOrder
|
934
934
|
from lusid.models.resource_list_of_order_instruction import ResourceListOfOrderInstruction
|
935
|
+
from lusid.models.resource_list_of_output_transaction import ResourceListOfOutputTransaction
|
935
936
|
from lusid.models.resource_list_of_package import ResourceListOfPackage
|
936
937
|
from lusid.models.resource_list_of_participation import ResourceListOfParticipation
|
937
938
|
from lusid.models.resource_list_of_performance_return import ResourceListOfPerformanceReturn
|
@@ -2132,6 +2133,7 @@ __all__ = [
|
|
2132
2133
|
"ResourceListOfMovedOrderToDifferentBlockResponse",
|
2133
2134
|
"ResourceListOfOrder",
|
2134
2135
|
"ResourceListOfOrderInstruction",
|
2136
|
+
"ResourceListOfOutputTransaction",
|
2135
2137
|
"ResourceListOfPackage",
|
2136
2138
|
"ResourceListOfParticipation",
|
2137
2139
|
"ResourceListOfPerformanceReturn",
|
@@ -55,6 +55,7 @@ from lusid.models.resource_id import ResourceId
|
|
55
55
|
from lusid.models.resource_list_of_change_history import ResourceListOfChangeHistory
|
56
56
|
from lusid.models.resource_list_of_holdings_adjustment_header import ResourceListOfHoldingsAdjustmentHeader
|
57
57
|
from lusid.models.resource_list_of_instrument_cash_flow import ResourceListOfInstrumentCashFlow
|
58
|
+
from lusid.models.resource_list_of_output_transaction import ResourceListOfOutputTransaction
|
58
59
|
from lusid.models.resource_list_of_portfolio_cash_flow import ResourceListOfPortfolioCashFlow
|
59
60
|
from lusid.models.resource_list_of_portfolio_cash_ladder import ResourceListOfPortfolioCashLadder
|
60
61
|
from lusid.models.resource_list_of_transaction import ResourceListOfTransaction
|
@@ -6062,6 +6063,205 @@ class TransactionPortfoliosApi:
|
|
6062
6063
|
collection_formats=_collection_formats,
|
6063
6064
|
_request_auth=_params.get('_request_auth'))
|
6064
6065
|
|
6066
|
+
@overload
|
6067
|
+
async def preview_transaction(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], transaction_request : Annotated[TransactionRequest, Field(..., description="The transaction to be previewed.")], property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\" or \"Transaction\" domain to decorate onto the transactions. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Transaction/strategy/quantsignal\".")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether to include previous versions of an amended transaction in the response. Defaults to False if not specified.")] = None, preserve_properties : Annotated[Optional[StrictBool], Field(description="If the preview transaction is an amendment to an existing transaction, then setting this to true will carry forward any unmodified properties from the earlier version.")] = None, **kwargs) -> ResourceListOfOutputTransaction: # noqa: E501
|
6068
|
+
...
|
6069
|
+
|
6070
|
+
@overload
|
6071
|
+
def preview_transaction(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], transaction_request : Annotated[TransactionRequest, Field(..., description="The transaction to be previewed.")], property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\" or \"Transaction\" domain to decorate onto the transactions. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Transaction/strategy/quantsignal\".")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether to include previous versions of an amended transaction in the response. Defaults to False if not specified.")] = None, preserve_properties : Annotated[Optional[StrictBool], Field(description="If the preview transaction is an amendment to an existing transaction, then setting this to true will carry forward any unmodified properties from the earlier version.")] = None, async_req: Optional[bool]=True, **kwargs) -> ResourceListOfOutputTransaction: # noqa: E501
|
6072
|
+
...
|
6073
|
+
|
6074
|
+
@validate_arguments
|
6075
|
+
def preview_transaction(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], transaction_request : Annotated[TransactionRequest, Field(..., description="The transaction to be previewed.")], property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\" or \"Transaction\" domain to decorate onto the transactions. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Transaction/strategy/quantsignal\".")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether to include previous versions of an amended transaction in the response. Defaults to False if not specified.")] = None, preserve_properties : Annotated[Optional[StrictBool], Field(description="If the preview transaction is an amendment to an existing transaction, then setting this to true will carry forward any unmodified properties from the earlier version.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ResourceListOfOutputTransaction, Awaitable[ResourceListOfOutputTransaction]]: # noqa: E501
|
6076
|
+
"""[EARLY ACCESS] PreviewTransaction: Preview a transaction # noqa: E501
|
6077
|
+
|
6078
|
+
Returns the output-transaction(s) - e.g. as returned by BuildTransactions that would come out of LUSID if the provided TransactionRequest was booked. # noqa: E501
|
6079
|
+
This method makes a synchronous HTTP request by default. To make an
|
6080
|
+
asynchronous HTTP request, please pass async_req=True
|
6081
|
+
|
6082
|
+
>>> thread = api.preview_transaction(scope, code, transaction_request, property_keys, show_cancelled_transactions, preserve_properties, async_req=True)
|
6083
|
+
>>> result = thread.get()
|
6084
|
+
|
6085
|
+
:param scope: The scope of the transaction portfolio. (required)
|
6086
|
+
:type scope: str
|
6087
|
+
:param code: The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio. (required)
|
6088
|
+
:type code: str
|
6089
|
+
:param transaction_request: The transaction to be previewed. (required)
|
6090
|
+
:type transaction_request: TransactionRequest
|
6091
|
+
:param property_keys: A list of property keys from the \"Instrument\" or \"Transaction\" domain to decorate onto the transactions. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Transaction/strategy/quantsignal\".
|
6092
|
+
:type property_keys: List[str]
|
6093
|
+
:param show_cancelled_transactions: Option to specify whether to include previous versions of an amended transaction in the response. Defaults to False if not specified.
|
6094
|
+
:type show_cancelled_transactions: bool
|
6095
|
+
:param preserve_properties: If the preview transaction is an amendment to an existing transaction, then setting this to true will carry forward any unmodified properties from the earlier version.
|
6096
|
+
:type preserve_properties: bool
|
6097
|
+
:param async_req: Whether to execute the request asynchronously.
|
6098
|
+
:type async_req: bool, optional
|
6099
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
6100
|
+
:param opts: Configuration options for this request
|
6101
|
+
:type opts: ConfigurationOptions, optional
|
6102
|
+
:return: Returns the result object.
|
6103
|
+
If the method is called asynchronously,
|
6104
|
+
returns the request thread.
|
6105
|
+
:rtype: ResourceListOfOutputTransaction
|
6106
|
+
"""
|
6107
|
+
kwargs['_return_http_data_only'] = True
|
6108
|
+
if '_preload_content' in kwargs:
|
6109
|
+
message = "Error! Please call the preview_transaction_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
6110
|
+
raise ValueError(message)
|
6111
|
+
if async_req is not None:
|
6112
|
+
kwargs['async_req'] = async_req
|
6113
|
+
return self.preview_transaction_with_http_info(scope, code, transaction_request, property_keys, show_cancelled_transactions, preserve_properties, **kwargs) # noqa: E501
|
6114
|
+
|
6115
|
+
@validate_arguments
|
6116
|
+
def preview_transaction_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], transaction_request : Annotated[TransactionRequest, Field(..., description="The transaction to be previewed.")], property_keys : Annotated[Optional[conlist(StrictStr)], Field(description="A list of property keys from the \"Instrument\" or \"Transaction\" domain to decorate onto the transactions. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Transaction/strategy/quantsignal\".")] = None, show_cancelled_transactions : Annotated[Optional[StrictBool], Field(description="Option to specify whether to include previous versions of an amended transaction in the response. Defaults to False if not specified.")] = None, preserve_properties : Annotated[Optional[StrictBool], Field(description="If the preview transaction is an amendment to an existing transaction, then setting this to true will carry forward any unmodified properties from the earlier version.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
6117
|
+
"""[EARLY ACCESS] PreviewTransaction: Preview a transaction # noqa: E501
|
6118
|
+
|
6119
|
+
Returns the output-transaction(s) - e.g. as returned by BuildTransactions that would come out of LUSID if the provided TransactionRequest was booked. # noqa: E501
|
6120
|
+
This method makes a synchronous HTTP request by default. To make an
|
6121
|
+
asynchronous HTTP request, please pass async_req=True
|
6122
|
+
|
6123
|
+
>>> thread = api.preview_transaction_with_http_info(scope, code, transaction_request, property_keys, show_cancelled_transactions, preserve_properties, async_req=True)
|
6124
|
+
>>> result = thread.get()
|
6125
|
+
|
6126
|
+
:param scope: The scope of the transaction portfolio. (required)
|
6127
|
+
:type scope: str
|
6128
|
+
:param code: The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio. (required)
|
6129
|
+
:type code: str
|
6130
|
+
:param transaction_request: The transaction to be previewed. (required)
|
6131
|
+
:type transaction_request: TransactionRequest
|
6132
|
+
:param property_keys: A list of property keys from the \"Instrument\" or \"Transaction\" domain to decorate onto the transactions. These take the format {domain}/{scope}/{code} e.g. \"Instrument/system/Name\" or \"Transaction/strategy/quantsignal\".
|
6133
|
+
:type property_keys: List[str]
|
6134
|
+
:param show_cancelled_transactions: Option to specify whether to include previous versions of an amended transaction in the response. Defaults to False if not specified.
|
6135
|
+
:type show_cancelled_transactions: bool
|
6136
|
+
:param preserve_properties: If the preview transaction is an amendment to an existing transaction, then setting this to true will carry forward any unmodified properties from the earlier version.
|
6137
|
+
:type preserve_properties: bool
|
6138
|
+
:param async_req: Whether to execute the request asynchronously.
|
6139
|
+
:type async_req: bool, optional
|
6140
|
+
:param _preload_content: if False, the ApiResponse.data will
|
6141
|
+
be set to none and raw_data will store the
|
6142
|
+
HTTP response body without reading/decoding.
|
6143
|
+
Default is True.
|
6144
|
+
:type _preload_content: bool, optional
|
6145
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
6146
|
+
object with status code, headers, etc
|
6147
|
+
:type _return_http_data_only: bool, optional
|
6148
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
6149
|
+
:param opts: Configuration options for this request
|
6150
|
+
:type opts: ConfigurationOptions, optional
|
6151
|
+
:param _request_auth: set to override the auth_settings for an a single
|
6152
|
+
request; this effectively ignores the authentication
|
6153
|
+
in the spec for a single request.
|
6154
|
+
:type _request_auth: dict, optional
|
6155
|
+
:type _content_type: string, optional: force content-type for the request
|
6156
|
+
:return: Returns the result object.
|
6157
|
+
If the method is called asynchronously,
|
6158
|
+
returns the request thread.
|
6159
|
+
:rtype: tuple(ResourceListOfOutputTransaction, status_code(int), headers(HTTPHeaderDict))
|
6160
|
+
"""
|
6161
|
+
|
6162
|
+
_params = locals()
|
6163
|
+
|
6164
|
+
_all_params = [
|
6165
|
+
'scope',
|
6166
|
+
'code',
|
6167
|
+
'transaction_request',
|
6168
|
+
'property_keys',
|
6169
|
+
'show_cancelled_transactions',
|
6170
|
+
'preserve_properties'
|
6171
|
+
]
|
6172
|
+
_all_params.extend(
|
6173
|
+
[
|
6174
|
+
'async_req',
|
6175
|
+
'_return_http_data_only',
|
6176
|
+
'_preload_content',
|
6177
|
+
'_request_timeout',
|
6178
|
+
'_request_auth',
|
6179
|
+
'_content_type',
|
6180
|
+
'_headers',
|
6181
|
+
'opts'
|
6182
|
+
]
|
6183
|
+
)
|
6184
|
+
|
6185
|
+
# validate the arguments
|
6186
|
+
for _key, _val in _params['kwargs'].items():
|
6187
|
+
if _key not in _all_params:
|
6188
|
+
raise ApiTypeError(
|
6189
|
+
"Got an unexpected keyword argument '%s'"
|
6190
|
+
" to method preview_transaction" % _key
|
6191
|
+
)
|
6192
|
+
_params[_key] = _val
|
6193
|
+
del _params['kwargs']
|
6194
|
+
|
6195
|
+
_collection_formats = {}
|
6196
|
+
|
6197
|
+
# process the path parameters
|
6198
|
+
_path_params = {}
|
6199
|
+
if _params['scope']:
|
6200
|
+
_path_params['scope'] = _params['scope']
|
6201
|
+
|
6202
|
+
if _params['code']:
|
6203
|
+
_path_params['code'] = _params['code']
|
6204
|
+
|
6205
|
+
|
6206
|
+
# process the query parameters
|
6207
|
+
_query_params = []
|
6208
|
+
if _params.get('property_keys') is not None: # noqa: E501
|
6209
|
+
_query_params.append(('propertyKeys', _params['property_keys']))
|
6210
|
+
_collection_formats['propertyKeys'] = 'multi'
|
6211
|
+
|
6212
|
+
if _params.get('show_cancelled_transactions') is not None: # noqa: E501
|
6213
|
+
_query_params.append(('showCancelledTransactions', _params['show_cancelled_transactions']))
|
6214
|
+
|
6215
|
+
if _params.get('preserve_properties') is not None: # noqa: E501
|
6216
|
+
_query_params.append(('preserveProperties', _params['preserve_properties']))
|
6217
|
+
|
6218
|
+
# process the header parameters
|
6219
|
+
_header_params = dict(_params.get('_headers', {}))
|
6220
|
+
# process the form parameters
|
6221
|
+
_form_params = []
|
6222
|
+
_files = {}
|
6223
|
+
# process the body parameter
|
6224
|
+
_body_params = None
|
6225
|
+
if _params['transaction_request'] is not None:
|
6226
|
+
_body_params = _params['transaction_request']
|
6227
|
+
|
6228
|
+
# set the HTTP header `Accept`
|
6229
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
6230
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
6231
|
+
|
6232
|
+
# set the HTTP header `Content-Type`
|
6233
|
+
_content_types_list = _params.get('_content_type',
|
6234
|
+
self.api_client.select_header_content_type(
|
6235
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
6236
|
+
if _content_types_list:
|
6237
|
+
_header_params['Content-Type'] = _content_types_list
|
6238
|
+
|
6239
|
+
# authentication setting
|
6240
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
6241
|
+
|
6242
|
+
_response_types_map = {
|
6243
|
+
'200': "ResourceListOfOutputTransaction",
|
6244
|
+
'400': "LusidValidationProblemDetails",
|
6245
|
+
}
|
6246
|
+
|
6247
|
+
return self.api_client.call_api(
|
6248
|
+
'/api/transactionportfolios/{scope}/{code}/previewTransaction', 'POST',
|
6249
|
+
_path_params,
|
6250
|
+
_query_params,
|
6251
|
+
_header_params,
|
6252
|
+
body=_body_params,
|
6253
|
+
post_params=_form_params,
|
6254
|
+
files=_files,
|
6255
|
+
response_types_map=_response_types_map,
|
6256
|
+
auth_settings=_auth_settings,
|
6257
|
+
async_req=_params.get('async_req'),
|
6258
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
6259
|
+
_preload_content=_params.get('_preload_content', True),
|
6260
|
+
_request_timeout=_params.get('_request_timeout'),
|
6261
|
+
opts=_params.get('opts'),
|
6262
|
+
collection_formats=_collection_formats,
|
6263
|
+
_request_auth=_params.get('_request_auth'))
|
6264
|
+
|
6065
6265
|
@overload
|
6066
6266
|
async def resolve_instrument(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the transaction portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the transaction portfolio. Together with the scope this uniquely identifies the transaction portfolio.")], instrument_identifier_type : Annotated[StrictStr, Field(..., description="The instrument identifier type.")], instrument_identifier_value : Annotated[StrictStr, Field(..., description="The value for the given instrument identifier.")], from_effective_at : Annotated[Optional[StrictStr], Field(description="The lower bound effective datetime or cut label (inclusive) from which to retrieve the data. There is no lower bound if this is not specified.")] = None, re_resolve : Annotated[Optional[StrictBool], Field(description="When set to true, instrument resolution will be attempted for all transactions and holdings for the given identifier and date range. When set to false (default behaviour), instrument resolution will only be attempted for those transactions and holdings that were previously unresolved.")] = None, request_body : Annotated[Optional[Dict[str, StrictStr]], Field(description="The dictionary with the instrument identifiers to be updated on the transaction and holdings.")] = None, **kwargs) -> UpsertPortfolioTransactionsResponse: # noqa: E501
|
6067
6267
|
...
|
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.6914\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
@@ -851,6 +851,7 @@ from lusid.models.resource_list_of_mapping import ResourceListOfMapping
|
|
851
851
|
from lusid.models.resource_list_of_moved_order_to_different_block_response import ResourceListOfMovedOrderToDifferentBlockResponse
|
852
852
|
from lusid.models.resource_list_of_order import ResourceListOfOrder
|
853
853
|
from lusid.models.resource_list_of_order_instruction import ResourceListOfOrderInstruction
|
854
|
+
from lusid.models.resource_list_of_output_transaction import ResourceListOfOutputTransaction
|
854
855
|
from lusid.models.resource_list_of_package import ResourceListOfPackage
|
855
856
|
from lusid.models.resource_list_of_participation import ResourceListOfParticipation
|
856
857
|
from lusid.models.resource_list_of_performance_return import ResourceListOfPerformanceReturn
|
@@ -1971,6 +1972,7 @@ __all__ = [
|
|
1971
1972
|
"ResourceListOfMovedOrderToDifferentBlockResponse",
|
1972
1973
|
"ResourceListOfOrder",
|
1973
1974
|
"ResourceListOfOrderInstruction",
|
1975
|
+
"ResourceListOfOutputTransaction",
|
1974
1976
|
"ResourceListOfPackage",
|
1975
1977
|
"ResourceListOfParticipation",
|
1976
1978
|
"ResourceListOfPerformanceReturn",
|
@@ -0,0 +1,113 @@
|
|
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
|
+
from __future__ import annotations
|
16
|
+
import pprint
|
17
|
+
import re # noqa: F401
|
18
|
+
import json
|
19
|
+
|
20
|
+
|
21
|
+
from typing import Any, Dict, List, Optional
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist
|
23
|
+
from lusid.models.link import Link
|
24
|
+
from lusid.models.output_transaction import OutputTransaction
|
25
|
+
|
26
|
+
class ResourceListOfOutputTransaction(BaseModel):
|
27
|
+
"""
|
28
|
+
ResourceListOfOutputTransaction
|
29
|
+
"""
|
30
|
+
values: conlist(OutputTransaction) = Field(...)
|
31
|
+
href: Optional[StrictStr] = None
|
32
|
+
links: Optional[conlist(Link)] = None
|
33
|
+
next_page: Optional[StrictStr] = Field(None, alias="nextPage")
|
34
|
+
previous_page: Optional[StrictStr] = Field(None, alias="previousPage")
|
35
|
+
__properties = ["values", "href", "links", "nextPage", "previousPage"]
|
36
|
+
|
37
|
+
class Config:
|
38
|
+
"""Pydantic configuration"""
|
39
|
+
allow_population_by_field_name = True
|
40
|
+
validate_assignment = True
|
41
|
+
|
42
|
+
def to_str(self) -> str:
|
43
|
+
"""Returns the string representation of the model using alias"""
|
44
|
+
return pprint.pformat(self.dict(by_alias=True))
|
45
|
+
|
46
|
+
def to_json(self) -> str:
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
48
|
+
return json.dumps(self.to_dict())
|
49
|
+
|
50
|
+
@classmethod
|
51
|
+
def from_json(cls, json_str: str) -> ResourceListOfOutputTransaction:
|
52
|
+
"""Create an instance of ResourceListOfOutputTransaction from a JSON string"""
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
54
|
+
|
55
|
+
def to_dict(self):
|
56
|
+
"""Returns the dictionary representation of the model using alias"""
|
57
|
+
_dict = self.dict(by_alias=True,
|
58
|
+
exclude={
|
59
|
+
},
|
60
|
+
exclude_none=True)
|
61
|
+
# override the default output from pydantic by calling `to_dict()` of each item in values (list)
|
62
|
+
_items = []
|
63
|
+
if self.values:
|
64
|
+
for _item in self.values:
|
65
|
+
if _item:
|
66
|
+
_items.append(_item.to_dict())
|
67
|
+
_dict['values'] = _items
|
68
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
69
|
+
_items = []
|
70
|
+
if self.links:
|
71
|
+
for _item in self.links:
|
72
|
+
if _item:
|
73
|
+
_items.append(_item.to_dict())
|
74
|
+
_dict['links'] = _items
|
75
|
+
# set to None if href (nullable) is None
|
76
|
+
# and __fields_set__ contains the field
|
77
|
+
if self.href is None and "href" in self.__fields_set__:
|
78
|
+
_dict['href'] = None
|
79
|
+
|
80
|
+
# set to None if links (nullable) is None
|
81
|
+
# and __fields_set__ contains the field
|
82
|
+
if self.links is None and "links" in self.__fields_set__:
|
83
|
+
_dict['links'] = None
|
84
|
+
|
85
|
+
# set to None if next_page (nullable) is None
|
86
|
+
# and __fields_set__ contains the field
|
87
|
+
if self.next_page is None and "next_page" in self.__fields_set__:
|
88
|
+
_dict['nextPage'] = None
|
89
|
+
|
90
|
+
# set to None if previous_page (nullable) is None
|
91
|
+
# and __fields_set__ contains the field
|
92
|
+
if self.previous_page is None and "previous_page" in self.__fields_set__:
|
93
|
+
_dict['previousPage'] = None
|
94
|
+
|
95
|
+
return _dict
|
96
|
+
|
97
|
+
@classmethod
|
98
|
+
def from_dict(cls, obj: dict) -> ResourceListOfOutputTransaction:
|
99
|
+
"""Create an instance of ResourceListOfOutputTransaction from a dict"""
|
100
|
+
if obj is None:
|
101
|
+
return None
|
102
|
+
|
103
|
+
if not isinstance(obj, dict):
|
104
|
+
return ResourceListOfOutputTransaction.parse_obj(obj)
|
105
|
+
|
106
|
+
_obj = ResourceListOfOutputTransaction.parse_obj({
|
107
|
+
"values": [OutputTransaction.from_dict(_item) for _item in obj.get("values")] if obj.get("values") is not None else None,
|
108
|
+
"href": obj.get("href"),
|
109
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None,
|
110
|
+
"next_page": obj.get("nextPage"),
|
111
|
+
"previous_page": obj.get("previousPage")
|
112
|
+
})
|
113
|
+
return _obj
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lusid-sdk
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.485
|
4
4
|
Summary: LUSID API
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
6
6
|
License: MIT
|
@@ -590,6 +590,7 @@ Class | Method | HTTP request | Description
|
|
590
590
|
*TransactionPortfoliosApi* | [**list_custodian_accounts**](docs/TransactionPortfoliosApi.md#list_custodian_accounts) | **GET** /api/transactionportfolios/{scope}/{code}/custodianaccounts | [EXPERIMENTAL] ListCustodianAccounts: List Custodian Accounts
|
591
591
|
*TransactionPortfoliosApi* | [**list_holdings_adjustments**](docs/TransactionPortfoliosApi.md#list_holdings_adjustments) | **GET** /api/transactionportfolios/{scope}/{code}/holdingsadjustments | ListHoldingsAdjustments: List holdings adjustments
|
592
592
|
*TransactionPortfoliosApi* | [**patch_portfolio_details**](docs/TransactionPortfoliosApi.md#patch_portfolio_details) | **PATCH** /api/transactionportfolios/{scope}/{code}/details | PatchPortfolioDetails: Patch portfolio details
|
593
|
+
*TransactionPortfoliosApi* | [**preview_transaction**](docs/TransactionPortfoliosApi.md#preview_transaction) | **POST** /api/transactionportfolios/{scope}/{code}/previewTransaction | [EARLY ACCESS] PreviewTransaction: Preview a transaction
|
593
594
|
*TransactionPortfoliosApi* | [**resolve_instrument**](docs/TransactionPortfoliosApi.md#resolve_instrument) | **POST** /api/transactionportfolios/{scope}/{code}/$resolve | ResolveInstrument: Resolve instrument
|
594
595
|
*TransactionPortfoliosApi* | [**set_holdings**](docs/TransactionPortfoliosApi.md#set_holdings) | **PUT** /api/transactionportfolios/{scope}/{code}/holdings | SetHoldings: Set holdings
|
595
596
|
*TransactionPortfoliosApi* | [**upsert_custodian_accounts**](docs/TransactionPortfoliosApi.md#upsert_custodian_accounts) | **POST** /api/transactionportfolios/{scope}/{code}/custodianaccounts | [EXPERIMENTAL] UpsertCustodianAccounts: Upsert Custodian Accounts
|
@@ -1461,6 +1462,7 @@ Class | Method | HTTP request | Description
|
|
1461
1462
|
- [ResourceListOfMovedOrderToDifferentBlockResponse](docs/ResourceListOfMovedOrderToDifferentBlockResponse.md)
|
1462
1463
|
- [ResourceListOfOrder](docs/ResourceListOfOrder.md)
|
1463
1464
|
- [ResourceListOfOrderInstruction](docs/ResourceListOfOrderInstruction.md)
|
1465
|
+
- [ResourceListOfOutputTransaction](docs/ResourceListOfOutputTransaction.md)
|
1464
1466
|
- [ResourceListOfPackage](docs/ResourceListOfPackage.md)
|
1465
1467
|
- [ResourceListOfParticipation](docs/ResourceListOfParticipation.md)
|
1466
1468
|
- [ResourceListOfPerformanceReturn](docs/ResourceListOfPerformanceReturn.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lusid/__init__.py,sha256=
|
1
|
+
lusid/__init__.py,sha256=blVfsXbn6IHFs2mKznej4NcVSvOSbV7y7DRQl2B5T2Q,125630
|
2
2
|
lusid/api/__init__.py,sha256=6h2et93uMZgjdpV3C3_ITp_VbSBlwYu5BtqZ2puZPoI,5821
|
3
3
|
lusid/api/abor_api.py,sha256=CC0f6Aqqiqkgmpguvoqe8teU0bRRuc771AdUSyI4rJw,158222
|
4
4
|
lusid/api/abor_configuration_api.py,sha256=TmssMn5ni0mZV1q7LyPXYhBqqUGJqLYZapo8By8DFuI,63875
|
@@ -65,12 +65,12 @@ lusid/api/system_configuration_api.py,sha256=6udGEWQzI2t3NDgUdp8MR5X0zWRrTJpXxlZ
|
|
65
65
|
lusid/api/tax_rule_sets_api.py,sha256=Up74buqFZfgM8oxMObgVvMIJrrKY_fBJLwDBemXEr4M,49866
|
66
66
|
lusid/api/transaction_configuration_api.py,sha256=5wDGhFV3UYG61OPE45Xv0wsDSnNuKkk7F_o7oZzYqN0,107192
|
67
67
|
lusid/api/transaction_fees_api.py,sha256=nJ6Fd_AfguoHdXIm7aXWRL2D_KJa5Vbp6_IpNIitYLc,64354
|
68
|
-
lusid/api/transaction_portfolios_api.py,sha256=
|
68
|
+
lusid/api/transaction_portfolios_api.py,sha256=AkWPL8MnjCPGBi8UwpNih1XQvKIdAOo5vdiemtEKVR8,593611
|
69
69
|
lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,20072
|
70
70
|
lusid/api/workspace_api.py,sha256=mYQPqFUVf1VKYeWQUV5VkcdSqwejSmPDGd66Az86-_E,191319
|
71
71
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
72
72
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
73
|
-
lusid/configuration.py,sha256
|
73
|
+
lusid/configuration.py,sha256=--8bm3vXp59wVE1AKBrbChOW9FCr99kAnXQXmwcfGgk,17972
|
74
74
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
75
75
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
76
76
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -85,7 +85,7 @@ lusid/extensions/rest.py,sha256=dp-bD_LMR2zAL1tmC3-urhWKLomXx7r5iGN1VteMBVQ,1601
|
|
85
85
|
lusid/extensions/retry.py,sha256=EhW9OKJmGHipxN3H7eROH5DiMlAnfBVl95NQrttcsdg,14834
|
86
86
|
lusid/extensions/socket_keep_alive.py,sha256=NGlqsv-E25IjJOLGZhXZY6kUdx51nEF8qCQyVdzayRk,1653
|
87
87
|
lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
|
88
|
-
lusid/models/__init__.py,sha256=
|
88
|
+
lusid/models/__init__.py,sha256=VkMkZ6LUOFRfh29HOUmiA40ryTZlOkd57UnDNMN0I6Y,118777
|
89
89
|
lusid/models/a2_b_breakdown.py,sha256=Txi12EIQw3mH6NM-25QkOnHSQc3BVAWrP7yl9bZswSY,2947
|
90
90
|
lusid/models/a2_b_category.py,sha256=k6NPAACi0CUjKyhdQac4obQSrPmp2PXD6lkAtCnyEFM,2725
|
91
91
|
lusid/models/a2_b_data_record.py,sha256=zKGS2P4fzNpzdcGJiSIpkY4P3d_jAcawYfyuPCDeQgk,9737
|
@@ -923,6 +923,7 @@ lusid/models/resource_list_of_mapping.py,sha256=hg_yifC5rwLlJIckWPlSZH4RuLiykctR
|
|
923
923
|
lusid/models/resource_list_of_moved_order_to_different_block_response.py,sha256=iMugOcQPcv7VBIFR07e3RSvvy5tOdLRXyTijLHHaIKQ,4347
|
924
924
|
lusid/models/resource_list_of_order.py,sha256=YT8_X6z6bZPxDURwv4lkn_ntUbmEPjx4UXb32hH915E,3994
|
925
925
|
lusid/models/resource_list_of_order_instruction.py,sha256=sd42xNDIMmONYRGLPdHdcKG6yJyxJo2Msli-AqPuUnY,4127
|
926
|
+
lusid/models/resource_list_of_output_transaction.py,sha256=4ikLz2NGzoMbwl3RW3WdTK-YQUnQpSPleyQtLnAgr-8,4139
|
926
927
|
lusid/models/resource_list_of_package.py,sha256=MUJEwGxd57uCpV-F1W2NqSMfa4pHptU8QBIgplLW9B0,4018
|
927
928
|
lusid/models/resource_list_of_participation.py,sha256=WJwk343ka1BaotCEA8Zbtj-E7jRNhK-W5MkgrxF8Bzo,4090
|
928
929
|
lusid/models/resource_list_of_performance_return.py,sha256=Smf1nCr-bhuuEDwi_kTdbXo1cY0qEZbS9sPMBEjd_LU,4139
|
@@ -1205,6 +1206,6 @@ lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi
|
|
1205
1206
|
lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
|
1206
1207
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1207
1208
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1208
|
-
lusid_sdk-2.1.
|
1209
|
-
lusid_sdk-2.1.
|
1210
|
-
lusid_sdk-2.1.
|
1209
|
+
lusid_sdk-2.1.485.dist-info/METADATA,sha256=X94381r6hSlys2j8CiwsBMV-AKkZ-fnam259gBSCm-Q,206701
|
1210
|
+
lusid_sdk-2.1.485.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
1211
|
+
lusid_sdk-2.1.485.dist-info/RECORD,,
|
File without changes
|