lusid-sdk 2.1.318__py3-none-any.whl → 2.1.319__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 +4 -0
- lusid/api/order_management_api.py +159 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +4 -0
- lusid/models/cancel_orders_response.py +153 -0
- lusid/models/cancelled_order_result.py +73 -0
- {lusid_sdk-2.1.318.dist-info → lusid_sdk-2.1.319.dist-info}/METADATA +4 -1
- {lusid_sdk-2.1.318.dist-info → lusid_sdk-2.1.319.dist-info}/RECORD +9 -7
- {lusid_sdk-2.1.318.dist-info → lusid_sdk-2.1.319.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -185,7 +185,9 @@ from lusid.models.calculation_info import CalculationInfo
|
|
185
185
|
from lusid.models.calendar import Calendar
|
186
186
|
from lusid.models.calendar_date import CalendarDate
|
187
187
|
from lusid.models.calendar_dependency import CalendarDependency
|
188
|
+
from lusid.models.cancel_orders_response import CancelOrdersResponse
|
188
189
|
from lusid.models.cancel_placements_response import CancelPlacementsResponse
|
190
|
+
from lusid.models.cancelled_order_result import CancelledOrderResult
|
189
191
|
from lusid.models.cancelled_placement_result import CancelledPlacementResult
|
190
192
|
from lusid.models.cap_floor import CapFloor
|
191
193
|
from lusid.models.capital_distribution_event import CapitalDistributionEvent
|
@@ -1292,7 +1294,9 @@ __all__ = [
|
|
1292
1294
|
"Calendar",
|
1293
1295
|
"CalendarDate",
|
1294
1296
|
"CalendarDependency",
|
1297
|
+
"CancelOrdersResponse",
|
1295
1298
|
"CancelPlacementsResponse",
|
1299
|
+
"CancelledOrderResult",
|
1296
1300
|
"CancelledPlacementResult",
|
1297
1301
|
"CapFloor",
|
1298
1302
|
"CapitalDistributionEvent",
|
@@ -28,6 +28,7 @@ from lusid.models.allocation_service_run_response import AllocationServiceRunRes
|
|
28
28
|
from lusid.models.block_and_orders_create_request import BlockAndOrdersCreateRequest
|
29
29
|
from lusid.models.book_transactions_request import BookTransactionsRequest
|
30
30
|
from lusid.models.book_transactions_response import BookTransactionsResponse
|
31
|
+
from lusid.models.cancel_orders_response import CancelOrdersResponse
|
31
32
|
from lusid.models.cancel_placements_response import CancelPlacementsResponse
|
32
33
|
from lusid.models.move_orders_to_different_blocks_request import MoveOrdersToDifferentBlocksRequest
|
33
34
|
from lusid.models.place_blocks_request import PlaceBlocksRequest
|
@@ -224,6 +225,164 @@ class OrderManagementApi:
|
|
224
225
|
collection_formats=_collection_formats,
|
225
226
|
_request_auth=_params.get('_request_auth'))
|
226
227
|
|
228
|
+
@overload
|
229
|
+
async def cancel_orders(self, request_body : Annotated[Dict[str, ResourceId], Field(..., description="The request containing the ids of the orders to be cancelled.")], **kwargs) -> CancelOrdersResponse: # noqa: E501
|
230
|
+
...
|
231
|
+
|
232
|
+
@overload
|
233
|
+
def cancel_orders(self, request_body : Annotated[Dict[str, ResourceId], Field(..., description="The request containing the ids of the orders to be cancelled.")], async_req: Optional[bool]=True, **kwargs) -> CancelOrdersResponse: # noqa: E501
|
234
|
+
...
|
235
|
+
|
236
|
+
@validate_arguments
|
237
|
+
def cancel_orders(self, request_body : Annotated[Dict[str, ResourceId], Field(..., description="The request containing the ids of the orders to be cancelled.")], async_req: Optional[bool]=None, **kwargs) -> Union[CancelOrdersResponse, Awaitable[CancelOrdersResponse]]: # noqa: E501
|
238
|
+
"""[EARLY ACCESS] CancelOrders: Cancel existing orders # noqa: E501
|
239
|
+
|
240
|
+
The response returns both the collection of successfully canceled orders, as well as those that failed. For each failure, a reason is provided. It is important to check the failed set for unsuccessful results. # noqa: E501
|
241
|
+
This method makes a synchronous HTTP request by default. To make an
|
242
|
+
asynchronous HTTP request, please pass async_req=True
|
243
|
+
|
244
|
+
>>> thread = api.cancel_orders(request_body, async_req=True)
|
245
|
+
>>> result = thread.get()
|
246
|
+
|
247
|
+
:param request_body: The request containing the ids of the orders to be cancelled. (required)
|
248
|
+
:type request_body: Dict[str, ResourceId]
|
249
|
+
:param async_req: Whether to execute the request asynchronously.
|
250
|
+
:type async_req: bool, optional
|
251
|
+
:param _request_timeout: timeout setting for this request.
|
252
|
+
If one number provided, it will be total request
|
253
|
+
timeout. It can also be a pair (tuple) of
|
254
|
+
(connection, read) timeouts.
|
255
|
+
:return: Returns the result object.
|
256
|
+
If the method is called asynchronously,
|
257
|
+
returns the request thread.
|
258
|
+
:rtype: CancelOrdersResponse
|
259
|
+
"""
|
260
|
+
kwargs['_return_http_data_only'] = True
|
261
|
+
if '_preload_content' in kwargs:
|
262
|
+
message = "Error! Please call the cancel_orders_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
263
|
+
raise ValueError(message)
|
264
|
+
if async_req is not None:
|
265
|
+
kwargs['async_req'] = async_req
|
266
|
+
return self.cancel_orders_with_http_info(request_body, **kwargs) # noqa: E501
|
267
|
+
|
268
|
+
@validate_arguments
|
269
|
+
def cancel_orders_with_http_info(self, request_body : Annotated[Dict[str, ResourceId], Field(..., description="The request containing the ids of the orders to be cancelled.")], **kwargs) -> ApiResponse: # noqa: E501
|
270
|
+
"""[EARLY ACCESS] CancelOrders: Cancel existing orders # noqa: E501
|
271
|
+
|
272
|
+
The response returns both the collection of successfully canceled orders, as well as those that failed. For each failure, a reason is provided. It is important to check the failed set for unsuccessful results. # noqa: E501
|
273
|
+
This method makes a synchronous HTTP request by default. To make an
|
274
|
+
asynchronous HTTP request, please pass async_req=True
|
275
|
+
|
276
|
+
>>> thread = api.cancel_orders_with_http_info(request_body, async_req=True)
|
277
|
+
>>> result = thread.get()
|
278
|
+
|
279
|
+
:param request_body: The request containing the ids of the orders to be cancelled. (required)
|
280
|
+
:type request_body: Dict[str, ResourceId]
|
281
|
+
:param async_req: Whether to execute the request asynchronously.
|
282
|
+
:type async_req: bool, optional
|
283
|
+
:param _preload_content: if False, the ApiResponse.data will
|
284
|
+
be set to none and raw_data will store the
|
285
|
+
HTTP response body without reading/decoding.
|
286
|
+
Default is True.
|
287
|
+
:type _preload_content: bool, optional
|
288
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
289
|
+
object with status code, headers, etc
|
290
|
+
:type _return_http_data_only: bool, optional
|
291
|
+
:param _request_timeout: timeout setting for this request. If one
|
292
|
+
number provided, it will be total request
|
293
|
+
timeout. It can also be a pair (tuple) of
|
294
|
+
(connection, read) timeouts.
|
295
|
+
:param _request_auth: set to override the auth_settings for an a single
|
296
|
+
request; this effectively ignores the authentication
|
297
|
+
in the spec for a single request.
|
298
|
+
:type _request_auth: dict, optional
|
299
|
+
:type _content_type: string, optional: force content-type for the request
|
300
|
+
:return: Returns the result object.
|
301
|
+
If the method is called asynchronously,
|
302
|
+
returns the request thread.
|
303
|
+
:rtype: tuple(CancelOrdersResponse, status_code(int), headers(HTTPHeaderDict))
|
304
|
+
"""
|
305
|
+
|
306
|
+
_params = locals()
|
307
|
+
|
308
|
+
_all_params = [
|
309
|
+
'request_body'
|
310
|
+
]
|
311
|
+
_all_params.extend(
|
312
|
+
[
|
313
|
+
'async_req',
|
314
|
+
'_return_http_data_only',
|
315
|
+
'_preload_content',
|
316
|
+
'_request_timeout',
|
317
|
+
'_request_auth',
|
318
|
+
'_content_type',
|
319
|
+
'_headers'
|
320
|
+
]
|
321
|
+
)
|
322
|
+
|
323
|
+
# validate the arguments
|
324
|
+
for _key, _val in _params['kwargs'].items():
|
325
|
+
if _key not in _all_params:
|
326
|
+
raise ApiTypeError(
|
327
|
+
"Got an unexpected keyword argument '%s'"
|
328
|
+
" to method cancel_orders" % _key
|
329
|
+
)
|
330
|
+
_params[_key] = _val
|
331
|
+
del _params['kwargs']
|
332
|
+
|
333
|
+
_collection_formats = {}
|
334
|
+
|
335
|
+
# process the path parameters
|
336
|
+
_path_params = {}
|
337
|
+
|
338
|
+
# process the query parameters
|
339
|
+
_query_params = []
|
340
|
+
# process the header parameters
|
341
|
+
_header_params = dict(_params.get('_headers', {}))
|
342
|
+
# process the form parameters
|
343
|
+
_form_params = []
|
344
|
+
_files = {}
|
345
|
+
# process the body parameter
|
346
|
+
_body_params = None
|
347
|
+
if _params['request_body'] is not None:
|
348
|
+
_body_params = _params['request_body']
|
349
|
+
|
350
|
+
# set the HTTP header `Accept`
|
351
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
352
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
353
|
+
|
354
|
+
# set the HTTP header `Content-Type`
|
355
|
+
_content_types_list = _params.get('_content_type',
|
356
|
+
self.api_client.select_header_content_type(
|
357
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
358
|
+
if _content_types_list:
|
359
|
+
_header_params['Content-Type'] = _content_types_list
|
360
|
+
|
361
|
+
# authentication setting
|
362
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
363
|
+
|
364
|
+
_response_types_map = {
|
365
|
+
'200': "CancelOrdersResponse",
|
366
|
+
'400': "LusidValidationProblemDetails",
|
367
|
+
}
|
368
|
+
|
369
|
+
return self.api_client.call_api(
|
370
|
+
'/api/ordermanagement/cancelorders', 'POST',
|
371
|
+
_path_params,
|
372
|
+
_query_params,
|
373
|
+
_header_params,
|
374
|
+
body=_body_params,
|
375
|
+
post_params=_form_params,
|
376
|
+
files=_files,
|
377
|
+
response_types_map=_response_types_map,
|
378
|
+
auth_settings=_auth_settings,
|
379
|
+
async_req=_params.get('async_req'),
|
380
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
381
|
+
_preload_content=_params.get('_preload_content', True),
|
382
|
+
_request_timeout=_params.get('_request_timeout'),
|
383
|
+
collection_formats=_collection_formats,
|
384
|
+
_request_auth=_params.get('_request_auth'))
|
385
|
+
|
227
386
|
@overload
|
228
387
|
async def cancel_placements(self, request_body : Annotated[Dict[str, ResourceId], Field(..., description="The request containing the ids of the placements to be cancelled.")], **kwargs) -> CancelPlacementsResponse: # noqa: E501
|
229
388
|
...
|
lusid/configuration.py
CHANGED
@@ -373,7 +373,7 @@ class Configuration:
|
|
373
373
|
return "Python SDK Debug Report:\n"\
|
374
374
|
"OS: {env}\n"\
|
375
375
|
"Python Version: {pyversion}\n"\
|
376
|
-
"Version of the API: 0.11.
|
376
|
+
"Version of the API: 0.11.6750\n"\
|
377
377
|
"SDK Package Version: {package_version}".\
|
378
378
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
379
379
|
|
lusid/models/__init__.py
CHANGED
@@ -106,7 +106,9 @@ from lusid.models.calculation_info import CalculationInfo
|
|
106
106
|
from lusid.models.calendar import Calendar
|
107
107
|
from lusid.models.calendar_date import CalendarDate
|
108
108
|
from lusid.models.calendar_dependency import CalendarDependency
|
109
|
+
from lusid.models.cancel_orders_response import CancelOrdersResponse
|
109
110
|
from lusid.models.cancel_placements_response import CancelPlacementsResponse
|
111
|
+
from lusid.models.cancelled_order_result import CancelledOrderResult
|
110
112
|
from lusid.models.cancelled_placement_result import CancelledPlacementResult
|
111
113
|
from lusid.models.cap_floor import CapFloor
|
112
114
|
from lusid.models.capital_distribution_event import CapitalDistributionEvent
|
@@ -1135,7 +1137,9 @@ __all__ = [
|
|
1135
1137
|
"Calendar",
|
1136
1138
|
"CalendarDate",
|
1137
1139
|
"CalendarDependency",
|
1140
|
+
"CancelOrdersResponse",
|
1138
1141
|
"CancelPlacementsResponse",
|
1142
|
+
"CancelledOrderResult",
|
1139
1143
|
"CancelledPlacementResult",
|
1140
1144
|
"CapFloor",
|
1141
1145
|
"CapitalDistributionEvent",
|
@@ -0,0 +1,153 @@
|
|
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.cancelled_order_result import CancelledOrderResult
|
24
|
+
from lusid.models.error_detail import ErrorDetail
|
25
|
+
from lusid.models.link import Link
|
26
|
+
from lusid.models.response_meta_data import ResponseMetaData
|
27
|
+
|
28
|
+
class CancelOrdersResponse(BaseModel):
|
29
|
+
"""
|
30
|
+
CancelOrdersResponse
|
31
|
+
"""
|
32
|
+
href: Optional[StrictStr] = Field(None, description="The specific Uniform Resource Identifier (URI) for this resource at the requested effective and asAt datetime.")
|
33
|
+
values: Optional[Dict[str, CancelledOrderResult]] = Field(None, description="The orders which have been successfully cancelled.")
|
34
|
+
failed: Optional[Dict[str, ErrorDetail]] = Field(None, description="The orders that could not be cancelled, along with a reason for their failure.")
|
35
|
+
metadata: Optional[Dict[str, conlist(ResponseMetaData)]] = Field(None, description="Meta data associated with the cancellation event.")
|
36
|
+
links: Optional[conlist(Link)] = None
|
37
|
+
__properties = ["href", "values", "failed", "metadata", "links"]
|
38
|
+
|
39
|
+
class Config:
|
40
|
+
"""Pydantic configuration"""
|
41
|
+
allow_population_by_field_name = True
|
42
|
+
validate_assignment = True
|
43
|
+
|
44
|
+
def to_str(self) -> str:
|
45
|
+
"""Returns the string representation of the model using alias"""
|
46
|
+
return pprint.pformat(self.dict(by_alias=True))
|
47
|
+
|
48
|
+
def to_json(self) -> str:
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
50
|
+
return json.dumps(self.to_dict())
|
51
|
+
|
52
|
+
@classmethod
|
53
|
+
def from_json(cls, json_str: str) -> CancelOrdersResponse:
|
54
|
+
"""Create an instance of CancelOrdersResponse from a JSON string"""
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
56
|
+
|
57
|
+
def to_dict(self):
|
58
|
+
"""Returns the dictionary representation of the model using alias"""
|
59
|
+
_dict = self.dict(by_alias=True,
|
60
|
+
exclude={
|
61
|
+
},
|
62
|
+
exclude_none=True)
|
63
|
+
# override the default output from pydantic by calling `to_dict()` of each value in values (dict)
|
64
|
+
_field_dict = {}
|
65
|
+
if self.values:
|
66
|
+
for _key in self.values:
|
67
|
+
if self.values[_key]:
|
68
|
+
_field_dict[_key] = self.values[_key].to_dict()
|
69
|
+
_dict['values'] = _field_dict
|
70
|
+
# override the default output from pydantic by calling `to_dict()` of each value in failed (dict)
|
71
|
+
_field_dict = {}
|
72
|
+
if self.failed:
|
73
|
+
for _key in self.failed:
|
74
|
+
if self.failed[_key]:
|
75
|
+
_field_dict[_key] = self.failed[_key].to_dict()
|
76
|
+
_dict['failed'] = _field_dict
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of each value in metadata (dict of array)
|
78
|
+
_field_dict_of_array = {}
|
79
|
+
if self.metadata:
|
80
|
+
for _key in self.metadata:
|
81
|
+
if self.metadata[_key]:
|
82
|
+
_field_dict_of_array[_key] = [
|
83
|
+
_item.to_dict() for _item in self.metadata[_key]
|
84
|
+
]
|
85
|
+
_dict['metadata'] = _field_dict_of_array
|
86
|
+
# override the default output from pydantic by calling `to_dict()` of each item in links (list)
|
87
|
+
_items = []
|
88
|
+
if self.links:
|
89
|
+
for _item in self.links:
|
90
|
+
if _item:
|
91
|
+
_items.append(_item.to_dict())
|
92
|
+
_dict['links'] = _items
|
93
|
+
# set to None if href (nullable) is None
|
94
|
+
# and __fields_set__ contains the field
|
95
|
+
if self.href is None and "href" in self.__fields_set__:
|
96
|
+
_dict['href'] = None
|
97
|
+
|
98
|
+
# set to None if values (nullable) is None
|
99
|
+
# and __fields_set__ contains the field
|
100
|
+
if self.values is None and "values" in self.__fields_set__:
|
101
|
+
_dict['values'] = None
|
102
|
+
|
103
|
+
# set to None if failed (nullable) is None
|
104
|
+
# and __fields_set__ contains the field
|
105
|
+
if self.failed is None and "failed" in self.__fields_set__:
|
106
|
+
_dict['failed'] = None
|
107
|
+
|
108
|
+
# set to None if metadata (nullable) is None
|
109
|
+
# and __fields_set__ contains the field
|
110
|
+
if self.metadata is None and "metadata" in self.__fields_set__:
|
111
|
+
_dict['metadata'] = None
|
112
|
+
|
113
|
+
# set to None if links (nullable) is None
|
114
|
+
# and __fields_set__ contains the field
|
115
|
+
if self.links is None and "links" in self.__fields_set__:
|
116
|
+
_dict['links'] = None
|
117
|
+
|
118
|
+
return _dict
|
119
|
+
|
120
|
+
@classmethod
|
121
|
+
def from_dict(cls, obj: dict) -> CancelOrdersResponse:
|
122
|
+
"""Create an instance of CancelOrdersResponse from a dict"""
|
123
|
+
if obj is None:
|
124
|
+
return None
|
125
|
+
|
126
|
+
if not isinstance(obj, dict):
|
127
|
+
return CancelOrdersResponse.parse_obj(obj)
|
128
|
+
|
129
|
+
_obj = CancelOrdersResponse.parse_obj({
|
130
|
+
"href": obj.get("href"),
|
131
|
+
"values": dict(
|
132
|
+
(_k, CancelledOrderResult.from_dict(_v))
|
133
|
+
for _k, _v in obj.get("values").items()
|
134
|
+
)
|
135
|
+
if obj.get("values") is not None
|
136
|
+
else None,
|
137
|
+
"failed": dict(
|
138
|
+
(_k, ErrorDetail.from_dict(_v))
|
139
|
+
for _k, _v in obj.get("failed").items()
|
140
|
+
)
|
141
|
+
if obj.get("failed") is not None
|
142
|
+
else None,
|
143
|
+
"metadata": dict(
|
144
|
+
(_k,
|
145
|
+
[ResponseMetaData.from_dict(_item) for _item in _v]
|
146
|
+
if _v is not None
|
147
|
+
else None
|
148
|
+
)
|
149
|
+
for _k, _v in obj.get("metadata").items()
|
150
|
+
),
|
151
|
+
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
152
|
+
})
|
153
|
+
return _obj
|
@@ -0,0 +1,73 @@
|
|
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, Optional
|
22
|
+
from pydantic.v1 import BaseModel, Field
|
23
|
+
from lusid.models.order import Order
|
24
|
+
|
25
|
+
class CancelledOrderResult(BaseModel):
|
26
|
+
"""
|
27
|
+
CancelledOrderResult
|
28
|
+
"""
|
29
|
+
order_state: Optional[Order] = Field(None, alias="orderState")
|
30
|
+
__properties = ["orderState"]
|
31
|
+
|
32
|
+
class Config:
|
33
|
+
"""Pydantic configuration"""
|
34
|
+
allow_population_by_field_name = True
|
35
|
+
validate_assignment = True
|
36
|
+
|
37
|
+
def to_str(self) -> str:
|
38
|
+
"""Returns the string representation of the model using alias"""
|
39
|
+
return pprint.pformat(self.dict(by_alias=True))
|
40
|
+
|
41
|
+
def to_json(self) -> str:
|
42
|
+
"""Returns the JSON representation of the model using alias"""
|
43
|
+
return json.dumps(self.to_dict())
|
44
|
+
|
45
|
+
@classmethod
|
46
|
+
def from_json(cls, json_str: str) -> CancelledOrderResult:
|
47
|
+
"""Create an instance of CancelledOrderResult from a JSON string"""
|
48
|
+
return cls.from_dict(json.loads(json_str))
|
49
|
+
|
50
|
+
def to_dict(self):
|
51
|
+
"""Returns the dictionary representation of the model using alias"""
|
52
|
+
_dict = self.dict(by_alias=True,
|
53
|
+
exclude={
|
54
|
+
},
|
55
|
+
exclude_none=True)
|
56
|
+
# override the default output from pydantic by calling `to_dict()` of order_state
|
57
|
+
if self.order_state:
|
58
|
+
_dict['orderState'] = self.order_state.to_dict()
|
59
|
+
return _dict
|
60
|
+
|
61
|
+
@classmethod
|
62
|
+
def from_dict(cls, obj: dict) -> CancelledOrderResult:
|
63
|
+
"""Create an instance of CancelledOrderResult from a dict"""
|
64
|
+
if obj is None:
|
65
|
+
return None
|
66
|
+
|
67
|
+
if not isinstance(obj, dict):
|
68
|
+
return CancelledOrderResult.parse_obj(obj)
|
69
|
+
|
70
|
+
_obj = CancelledOrderResult.parse_obj({
|
71
|
+
"order_state": Order.from_dict(obj.get("orderState")) if obj.get("orderState") is not None else None
|
72
|
+
})
|
73
|
+
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.319
|
4
4
|
Summary: LUSID API
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
6
6
|
License: MIT
|
@@ -310,6 +310,7 @@ Class | Method | HTTP request | Description
|
|
310
310
|
*OrderInstructionsApi* | [**list_order_instructions**](docs/OrderInstructionsApi.md#list_order_instructions) | **GET** /api/orderinstructions | [EXPERIMENTAL] ListOrderInstructions: List OrderInstructions
|
311
311
|
*OrderInstructionsApi* | [**upsert_order_instructions**](docs/OrderInstructionsApi.md#upsert_order_instructions) | **POST** /api/orderinstructions | [EXPERIMENTAL] UpsertOrderInstructions: Upsert OrderInstruction
|
312
312
|
*OrderManagementApi* | [**book_transactions**](docs/OrderManagementApi.md#book_transactions) | **POST** /api/ordermanagement/booktransactions | [EXPERIMENTAL] BookTransactions: Books transactions using specific allocations as a source.
|
313
|
+
*OrderManagementApi* | [**cancel_orders**](docs/OrderManagementApi.md#cancel_orders) | **POST** /api/ordermanagement/cancelorders | [EARLY ACCESS] CancelOrders: Cancel existing orders
|
313
314
|
*OrderManagementApi* | [**cancel_placements**](docs/OrderManagementApi.md#cancel_placements) | **POST** /api/ordermanagement/$cancelplacements | [EARLY ACCESS] CancelPlacements: Cancel existing placements
|
314
315
|
*OrderManagementApi* | [**create_orders**](docs/OrderManagementApi.md#create_orders) | **POST** /api/ordermanagement/createorders | [EARLY ACCESS] CreateOrders: Upsert a Block and associated orders
|
315
316
|
*OrderManagementApi* | [**move_orders**](docs/OrderManagementApi.md#move_orders) | **POST** /api/ordermanagement/moveorders | [EARLY ACCESS] MoveOrders: Move orders to new or existing block
|
@@ -665,7 +666,9 @@ Class | Method | HTTP request | Description
|
|
665
666
|
- [Calendar](docs/Calendar.md)
|
666
667
|
- [CalendarDate](docs/CalendarDate.md)
|
667
668
|
- [CalendarDependency](docs/CalendarDependency.md)
|
669
|
+
- [CancelOrdersResponse](docs/CancelOrdersResponse.md)
|
668
670
|
- [CancelPlacementsResponse](docs/CancelPlacementsResponse.md)
|
671
|
+
- [CancelledOrderResult](docs/CancelledOrderResult.md)
|
669
672
|
- [CancelledPlacementResult](docs/CancelledPlacementResult.md)
|
670
673
|
- [CapFloor](docs/CapFloor.md)
|
671
674
|
- [CapitalDistributionEvent](docs/CapitalDistributionEvent.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lusid/__init__.py,sha256=
|
1
|
+
lusid/__init__.py,sha256=ISA3XY7Oek2VGwUe-Oihg0f1avsl9h69ONkP9A19__s,113998
|
2
2
|
lusid/api/__init__.py,sha256=EuHJI-4kmmibn1IVmY9akKMT-R1Bnth9msFll5hlBGY,5652
|
3
3
|
lusid/api/abor_api.py,sha256=AvgsHuWE7qRSYJhKveBE2htSjHpqqS0VNJrysAfwME0,159655
|
4
4
|
lusid/api/abor_configuration_api.py,sha256=G2bKPtMYOZ2GhUrg-nPJtCa9XIZdZYK7oafcbJWDMP8,64033
|
@@ -34,7 +34,7 @@ lusid/api/legacy_compliance_api.py,sha256=EjYqCQTemq71q2_sfHU9ptr-ULhNk1EJ0Vejrf
|
|
34
34
|
lusid/api/legal_entities_api.py,sha256=DFpQxYU_illhMl8_CnlmpLKcBEaxOt7ECiHT51Xl49Q,267854
|
35
35
|
lusid/api/order_graph_api.py,sha256=YcL-SdC42ufKcFgbzD_qwVpWRZKkRDRijGpBviizbVU,45280
|
36
36
|
lusid/api/order_instructions_api.py,sha256=HZn9ZwVgp6bF32GIHpBwaejKKri0tG_KLfgHWfllR8U,46091
|
37
|
-
lusid/api/order_management_api.py,sha256=
|
37
|
+
lusid/api/order_management_api.py,sha256=c8TqR7NdABfR-FRE0k0D9eo4D9aLYjhwlztX9BJ9D4o,68646
|
38
38
|
lusid/api/orders_api.py,sha256=PjkqtLhbS6lQEEfZiXXAiIa5ls0jLokiqizseg7_nx0,43527
|
39
39
|
lusid/api/packages_api.py,sha256=-2mdoL2HSQ2aCXqYUMxt-1rrlezyQhgCNtevVazqM9o,43985
|
40
40
|
lusid/api/participations_api.py,sha256=nlVzeyfE33X9Ue9HC9rqCW3WACEPKBvcrEjFEmT8wlk,45263
|
@@ -68,7 +68,7 @@ lusid/api/transaction_portfolios_api.py,sha256=7G5m6iTQXTKCc6ASdxnlVJjvFascHxEgD
|
|
68
68
|
lusid/api/translation_api.py,sha256=xTAaKEW96JTDIZBXCjxSguCa7Gz4oVd5jdObUE2egwo,20092
|
69
69
|
lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
|
70
70
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
71
|
-
lusid/configuration.py,sha256=
|
71
|
+
lusid/configuration.py,sha256=OjAoRUPvUiCsSkl6P7k8-MHd1DkEERbftQqV4L52uw8,14404
|
72
72
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
73
73
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
74
74
|
lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
|
@@ -82,7 +82,7 @@ lusid/extensions/rest.py,sha256=tjVCu-cRrYcjp-ttB975vebPKtBNyBWaeoAdO3QXG2I,1269
|
|
82
82
|
lusid/extensions/retry.py,sha256=orBJ1uF1iT1IncjWX1iGHVqsCgTh0SBe9rtiV_sPnwk,11564
|
83
83
|
lusid/extensions/socket_keep_alive.py,sha256=NGlqsv-E25IjJOLGZhXZY6kUdx51nEF8qCQyVdzayRk,1653
|
84
84
|
lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
|
85
|
-
lusid/models/__init__.py,sha256=
|
85
|
+
lusid/models/__init__.py,sha256=2H_-odxZOoZHJBLzWc7235Wy2YrrUo-ybMykyvuCA_8,107314
|
86
86
|
lusid/models/a2_b_breakdown.py,sha256=Txi12EIQw3mH6NM-25QkOnHSQc3BVAWrP7yl9bZswSY,2947
|
87
87
|
lusid/models/a2_b_category.py,sha256=k6NPAACi0CUjKyhdQac4obQSrPmp2PXD6lkAtCnyEFM,2725
|
88
88
|
lusid/models/a2_b_data_record.py,sha256=zKGS2P4fzNpzdcGJiSIpkY4P3d_jAcawYfyuPCDeQgk,9737
|
@@ -175,7 +175,9 @@ lusid/models/calculation_info.py,sha256=ZdZp4VUza1yaBFDfPGZi6UHn4iy2N-pTbeVLdoNI
|
|
175
175
|
lusid/models/calendar.py,sha256=ZxD15NO_vvFHi6CTvYvYn0-oUOesbyGsRFzO47viJn4,3961
|
176
176
|
lusid/models/calendar_date.py,sha256=CtQHbrmTnJdrjtVTL5AWd6rYn6bl5rtPi1-Lm5KFEUE,3688
|
177
177
|
lusid/models/calendar_dependency.py,sha256=XYN9AYoLnwuL234DkyDbXArsWalMIdG8U2iU_3dBXrY,3871
|
178
|
+
lusid/models/cancel_orders_response.py,sha256=dbef36DqyiejdxVA9NwzQ5e0DGT9g7IfA4s6ZpfM4Xg,6033
|
178
179
|
lusid/models/cancel_placements_response.py,sha256=xe43QiiMvapew4BvR1C3wj5tYgn-zLy3cX54sdjbt3o,6089
|
180
|
+
lusid/models/cancelled_order_result.py,sha256=ZAwAhNd7IouFTPRwwYvAflZqlYkbweSttNmJ6cHoIkw,2187
|
179
181
|
lusid/models/cancelled_placement_result.py,sha256=eW3lgoyFakoGKcFSp3WN11bpuJyJun9jm8rVS4hdxwg,3127
|
180
182
|
lusid/models/cap_floor.py,sha256=njXRS6hQ-0fmlpaX7VVzLaxB5NpJHTYn_4HMp9e6BSA,6051
|
181
183
|
lusid/models/capital_distribution_event.py,sha256=UXD4-9IBaDXgMWueV-ivEeJ8RDDbPsPAq6Xx4bH5dyg,6691
|
@@ -1111,6 +1113,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
|
|
1111
1113
|
lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
|
1112
1114
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1113
1115
|
lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
|
1114
|
-
lusid_sdk-2.1.
|
1115
|
-
lusid_sdk-2.1.
|
1116
|
-
lusid_sdk-2.1.
|
1116
|
+
lusid_sdk-2.1.319.dist-info/METADATA,sha256=K-YfXK-0xxb49vOWYwWARK6MTZ8PgCAz3gEdo5okuBs,187771
|
1117
|
+
lusid_sdk-2.1.319.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
1118
|
+
lusid_sdk-2.1.319.dist-info/RECORD,,
|
File without changes
|