lusid-sdk 2.1.451__py3-none-any.whl → 2.1.454__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 +6 -0
- lusid/api/funds_api.py +174 -0
- lusid/api/order_management_api.py +160 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +6 -0
- lusid/models/cancel_order_and_move_remaining_result.py +84 -0
- lusid/models/cancel_orders_and_move_remaining_request.py +83 -0
- lusid/models/cancel_orders_and_move_remaining_response.py +153 -0
- lusid/models/reverse_stock_split_event.py +18 -4
- {lusid_sdk-2.1.451.dist-info → lusid_sdk-2.1.454.dist-info}/METADATA +6 -1
- {lusid_sdk-2.1.451.dist-info → lusid_sdk-2.1.454.dist-info}/RECORD +12 -9
- {lusid_sdk-2.1.451.dist-info → lusid_sdk-2.1.454.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -195,6 +195,9 @@ from lusid.models.calculation_info import CalculationInfo
|
|
195
195
|
from lusid.models.calendar import Calendar
|
196
196
|
from lusid.models.calendar_date import CalendarDate
|
197
197
|
from lusid.models.calendar_dependency import CalendarDependency
|
198
|
+
from lusid.models.cancel_order_and_move_remaining_result import CancelOrderAndMoveRemainingResult
|
199
|
+
from lusid.models.cancel_orders_and_move_remaining_request import CancelOrdersAndMoveRemainingRequest
|
200
|
+
from lusid.models.cancel_orders_and_move_remaining_response import CancelOrdersAndMoveRemainingResponse
|
198
201
|
from lusid.models.cancel_orders_response import CancelOrdersResponse
|
199
202
|
from lusid.models.cancel_placements_response import CancelPlacementsResponse
|
200
203
|
from lusid.models.cancelled_order_result import CancelledOrderResult
|
@@ -1374,6 +1377,9 @@ __all__ = [
|
|
1374
1377
|
"Calendar",
|
1375
1378
|
"CalendarDate",
|
1376
1379
|
"CalendarDependency",
|
1380
|
+
"CancelOrderAndMoveRemainingResult",
|
1381
|
+
"CancelOrdersAndMoveRemainingRequest",
|
1382
|
+
"CancelOrdersAndMoveRemainingResponse",
|
1377
1383
|
"CancelOrdersResponse",
|
1378
1384
|
"CancelPlacementsResponse",
|
1379
1385
|
"CancelledOrderResult",
|
lusid/api/funds_api.py
CHANGED
@@ -2632,6 +2632,180 @@ class FundsApi:
|
|
2632
2632
|
collection_formats=_collection_formats,
|
2633
2633
|
_request_auth=_params.get('_request_auth'))
|
2634
2634
|
|
2635
|
+
@overload
|
2636
|
+
async def patch_fund(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902.")], **kwargs) -> Fund: # noqa: E501
|
2637
|
+
...
|
2638
|
+
|
2639
|
+
@overload
|
2640
|
+
def patch_fund(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902.")], async_req: Optional[bool]=True, **kwargs) -> Fund: # noqa: E501
|
2641
|
+
...
|
2642
|
+
|
2643
|
+
@validate_arguments
|
2644
|
+
def patch_fund(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902.")], async_req: Optional[bool]=None, **kwargs) -> Union[Fund, Awaitable[Fund]]: # noqa: E501
|
2645
|
+
"""[EXPERIMENTAL] PatchFund: Patch a Fund. # noqa: E501
|
2646
|
+
|
2647
|
+
Update fields on a Fund. The behaviour is defined by the JSON Patch specification. Currently supported fields are: DisplayName, Description, FundConfigurationId, AborId, ShareClassInstrumentScopes, ShareClassInstruments, InceptionDate, DecimalPlaces, YearEndDate. # noqa: E501
|
2648
|
+
This method makes a synchronous HTTP request by default. To make an
|
2649
|
+
asynchronous HTTP request, please pass async_req=True
|
2650
|
+
|
2651
|
+
>>> thread = api.patch_fund(scope, code, operation, async_req=True)
|
2652
|
+
>>> result = thread.get()
|
2653
|
+
|
2654
|
+
:param scope: The scope of the Fund. (required)
|
2655
|
+
:type scope: str
|
2656
|
+
:param code: The code of the Fund. Together with the scope this uniquely identifies the Fund. (required)
|
2657
|
+
:type code: str
|
2658
|
+
:param operation: The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902. (required)
|
2659
|
+
:type operation: List[Operation]
|
2660
|
+
:param async_req: Whether to execute the request asynchronously.
|
2661
|
+
:type async_req: bool, optional
|
2662
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2663
|
+
:param opts: Configuration options for this request
|
2664
|
+
:type opts: ConfigurationOptions, optional
|
2665
|
+
:return: Returns the result object.
|
2666
|
+
If the method is called asynchronously,
|
2667
|
+
returns the request thread.
|
2668
|
+
:rtype: Fund
|
2669
|
+
"""
|
2670
|
+
kwargs['_return_http_data_only'] = True
|
2671
|
+
if '_preload_content' in kwargs:
|
2672
|
+
message = "Error! Please call the patch_fund_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
2673
|
+
raise ValueError(message)
|
2674
|
+
if async_req is not None:
|
2675
|
+
kwargs['async_req'] = async_req
|
2676
|
+
return self.patch_fund_with_http_info(scope, code, operation, **kwargs) # noqa: E501
|
2677
|
+
|
2678
|
+
@validate_arguments
|
2679
|
+
def patch_fund_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund. Together with the scope this uniquely identifies the Fund.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902.")], **kwargs) -> ApiResponse: # noqa: E501
|
2680
|
+
"""[EXPERIMENTAL] PatchFund: Patch a Fund. # noqa: E501
|
2681
|
+
|
2682
|
+
Update fields on a Fund. The behaviour is defined by the JSON Patch specification. Currently supported fields are: DisplayName, Description, FundConfigurationId, AborId, ShareClassInstrumentScopes, ShareClassInstruments, InceptionDate, DecimalPlaces, YearEndDate. # noqa: E501
|
2683
|
+
This method makes a synchronous HTTP request by default. To make an
|
2684
|
+
asynchronous HTTP request, please pass async_req=True
|
2685
|
+
|
2686
|
+
>>> thread = api.patch_fund_with_http_info(scope, code, operation, async_req=True)
|
2687
|
+
>>> result = thread.get()
|
2688
|
+
|
2689
|
+
:param scope: The scope of the Fund. (required)
|
2690
|
+
:type scope: str
|
2691
|
+
:param code: The code of the Fund. Together with the scope this uniquely identifies the Fund. (required)
|
2692
|
+
:type code: str
|
2693
|
+
:param operation: The json patch document. For more information see: https://datatracker.ietf.org/doc/html/rfc6902. (required)
|
2694
|
+
:type operation: List[Operation]
|
2695
|
+
:param async_req: Whether to execute the request asynchronously.
|
2696
|
+
:type async_req: bool, optional
|
2697
|
+
:param _preload_content: if False, the ApiResponse.data will
|
2698
|
+
be set to none and raw_data will store the
|
2699
|
+
HTTP response body without reading/decoding.
|
2700
|
+
Default is True.
|
2701
|
+
:type _preload_content: bool, optional
|
2702
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
2703
|
+
object with status code, headers, etc
|
2704
|
+
:type _return_http_data_only: bool, optional
|
2705
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
2706
|
+
:param opts: Configuration options for this request
|
2707
|
+
:type opts: ConfigurationOptions, optional
|
2708
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2709
|
+
request; this effectively ignores the authentication
|
2710
|
+
in the spec for a single request.
|
2711
|
+
:type _request_auth: dict, optional
|
2712
|
+
:type _content_type: string, optional: force content-type for the request
|
2713
|
+
:return: Returns the result object.
|
2714
|
+
If the method is called asynchronously,
|
2715
|
+
returns the request thread.
|
2716
|
+
:rtype: tuple(Fund, status_code(int), headers(HTTPHeaderDict))
|
2717
|
+
"""
|
2718
|
+
|
2719
|
+
_params = locals()
|
2720
|
+
|
2721
|
+
_all_params = [
|
2722
|
+
'scope',
|
2723
|
+
'code',
|
2724
|
+
'operation'
|
2725
|
+
]
|
2726
|
+
_all_params.extend(
|
2727
|
+
[
|
2728
|
+
'async_req',
|
2729
|
+
'_return_http_data_only',
|
2730
|
+
'_preload_content',
|
2731
|
+
'_request_timeout',
|
2732
|
+
'_request_auth',
|
2733
|
+
'_content_type',
|
2734
|
+
'_headers',
|
2735
|
+
'opts'
|
2736
|
+
]
|
2737
|
+
)
|
2738
|
+
|
2739
|
+
# validate the arguments
|
2740
|
+
for _key, _val in _params['kwargs'].items():
|
2741
|
+
if _key not in _all_params:
|
2742
|
+
raise ApiTypeError(
|
2743
|
+
"Got an unexpected keyword argument '%s'"
|
2744
|
+
" to method patch_fund" % _key
|
2745
|
+
)
|
2746
|
+
_params[_key] = _val
|
2747
|
+
del _params['kwargs']
|
2748
|
+
|
2749
|
+
_collection_formats = {}
|
2750
|
+
|
2751
|
+
# process the path parameters
|
2752
|
+
_path_params = {}
|
2753
|
+
if _params['scope']:
|
2754
|
+
_path_params['scope'] = _params['scope']
|
2755
|
+
|
2756
|
+
if _params['code']:
|
2757
|
+
_path_params['code'] = _params['code']
|
2758
|
+
|
2759
|
+
|
2760
|
+
# process the query parameters
|
2761
|
+
_query_params = []
|
2762
|
+
# process the header parameters
|
2763
|
+
_header_params = dict(_params.get('_headers', {}))
|
2764
|
+
# process the form parameters
|
2765
|
+
_form_params = []
|
2766
|
+
_files = {}
|
2767
|
+
# process the body parameter
|
2768
|
+
_body_params = None
|
2769
|
+
if _params['operation'] is not None:
|
2770
|
+
_body_params = _params['operation']
|
2771
|
+
|
2772
|
+
# set the HTTP header `Accept`
|
2773
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2774
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
2775
|
+
|
2776
|
+
# set the HTTP header `Content-Type`
|
2777
|
+
_content_types_list = _params.get('_content_type',
|
2778
|
+
self.api_client.select_header_content_type(
|
2779
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
2780
|
+
if _content_types_list:
|
2781
|
+
_header_params['Content-Type'] = _content_types_list
|
2782
|
+
|
2783
|
+
# authentication setting
|
2784
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
2785
|
+
|
2786
|
+
_response_types_map = {
|
2787
|
+
'200': "Fund",
|
2788
|
+
'400': "LusidValidationProblemDetails",
|
2789
|
+
}
|
2790
|
+
|
2791
|
+
return self.api_client.call_api(
|
2792
|
+
'/api/funds/{scope}/{code}', 'PATCH',
|
2793
|
+
_path_params,
|
2794
|
+
_query_params,
|
2795
|
+
_header_params,
|
2796
|
+
body=_body_params,
|
2797
|
+
post_params=_form_params,
|
2798
|
+
files=_files,
|
2799
|
+
response_types_map=_response_types_map,
|
2800
|
+
auth_settings=_auth_settings,
|
2801
|
+
async_req=_params.get('async_req'),
|
2802
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
2803
|
+
_preload_content=_params.get('_preload_content', True),
|
2804
|
+
_request_timeout=_params.get('_request_timeout'),
|
2805
|
+
opts=_params.get('opts'),
|
2806
|
+
collection_formats=_collection_formats,
|
2807
|
+
_request_auth=_params.get('_request_auth'))
|
2808
|
+
|
2635
2809
|
@overload
|
2636
2810
|
async def set_share_class_instruments(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Fund.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Fund.")], set_share_class_instruments_request : Annotated[SetShareClassInstrumentsRequest, Field(..., description="The scopes and instrument identifiers for the instruments to be set.")], **kwargs) -> Fund: # noqa: E501
|
2637
2811
|
...
|
@@ -30,6 +30,8 @@ from lusid.models.allocation_service_run_response import AllocationServiceRunRes
|
|
30
30
|
from lusid.models.block_and_orders_create_request import BlockAndOrdersCreateRequest
|
31
31
|
from lusid.models.book_transactions_request import BookTransactionsRequest
|
32
32
|
from lusid.models.book_transactions_response import BookTransactionsResponse
|
33
|
+
from lusid.models.cancel_orders_and_move_remaining_request import CancelOrdersAndMoveRemainingRequest
|
34
|
+
from lusid.models.cancel_orders_and_move_remaining_response import CancelOrdersAndMoveRemainingResponse
|
33
35
|
from lusid.models.cancel_orders_response import CancelOrdersResponse
|
34
36
|
from lusid.models.cancel_placements_response import CancelPlacementsResponse
|
35
37
|
from lusid.models.move_orders_to_different_blocks_request import MoveOrdersToDifferentBlocksRequest
|
@@ -389,6 +391,164 @@ class OrderManagementApi:
|
|
389
391
|
collection_formats=_collection_formats,
|
390
392
|
_request_auth=_params.get('_request_auth'))
|
391
393
|
|
394
|
+
@overload
|
395
|
+
async def cancel_orders_and_move_remaining(self, request_body : Annotated[Dict[str, CancelOrdersAndMoveRemainingRequest], Field(..., description="The request containing the orders to be cancelled, and the destinations of remaining quantities.")], **kwargs) -> CancelOrdersAndMoveRemainingResponse: # noqa: E501
|
396
|
+
...
|
397
|
+
|
398
|
+
@overload
|
399
|
+
def cancel_orders_and_move_remaining(self, request_body : Annotated[Dict[str, CancelOrdersAndMoveRemainingRequest], Field(..., description="The request containing the orders to be cancelled, and the destinations of remaining quantities.")], async_req: Optional[bool]=True, **kwargs) -> CancelOrdersAndMoveRemainingResponse: # noqa: E501
|
400
|
+
...
|
401
|
+
|
402
|
+
@validate_arguments
|
403
|
+
def cancel_orders_and_move_remaining(self, request_body : Annotated[Dict[str, CancelOrdersAndMoveRemainingRequest], Field(..., description="The request containing the orders to be cancelled, and the destinations of remaining quantities.")], async_req: Optional[bool]=None, **kwargs) -> Union[CancelOrdersAndMoveRemainingResponse, Awaitable[CancelOrdersAndMoveRemainingResponse]]: # noqa: E501
|
404
|
+
"""[EARLY ACCESS] CancelOrdersAndMoveRemaining: Cancel existing orders and move any unplaced quantities to new orders in new blocks # noqa: E501
|
405
|
+
|
406
|
+
Cancels existing orders, reducing their quantities to those aleady placed. Any remaining quantities are moved to new orders in new blocks. The placed quantities are distributed to the cancelled orders on a pro-rata basis. # noqa: E501
|
407
|
+
This method makes a synchronous HTTP request by default. To make an
|
408
|
+
asynchronous HTTP request, please pass async_req=True
|
409
|
+
|
410
|
+
>>> thread = api.cancel_orders_and_move_remaining(request_body, async_req=True)
|
411
|
+
>>> result = thread.get()
|
412
|
+
|
413
|
+
:param request_body: The request containing the orders to be cancelled, and the destinations of remaining quantities. (required)
|
414
|
+
:type request_body: Dict[str, CancelOrdersAndMoveRemainingRequest]
|
415
|
+
:param async_req: Whether to execute the request asynchronously.
|
416
|
+
:type async_req: bool, optional
|
417
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
418
|
+
:param opts: Configuration options for this request
|
419
|
+
:type opts: ConfigurationOptions, optional
|
420
|
+
:return: Returns the result object.
|
421
|
+
If the method is called asynchronously,
|
422
|
+
returns the request thread.
|
423
|
+
:rtype: CancelOrdersAndMoveRemainingResponse
|
424
|
+
"""
|
425
|
+
kwargs['_return_http_data_only'] = True
|
426
|
+
if '_preload_content' in kwargs:
|
427
|
+
message = "Error! Please call the cancel_orders_and_move_remaining_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
|
428
|
+
raise ValueError(message)
|
429
|
+
if async_req is not None:
|
430
|
+
kwargs['async_req'] = async_req
|
431
|
+
return self.cancel_orders_and_move_remaining_with_http_info(request_body, **kwargs) # noqa: E501
|
432
|
+
|
433
|
+
@validate_arguments
|
434
|
+
def cancel_orders_and_move_remaining_with_http_info(self, request_body : Annotated[Dict[str, CancelOrdersAndMoveRemainingRequest], Field(..., description="The request containing the orders to be cancelled, and the destinations of remaining quantities.")], **kwargs) -> ApiResponse: # noqa: E501
|
435
|
+
"""[EARLY ACCESS] CancelOrdersAndMoveRemaining: Cancel existing orders and move any unplaced quantities to new orders in new blocks # noqa: E501
|
436
|
+
|
437
|
+
Cancels existing orders, reducing their quantities to those aleady placed. Any remaining quantities are moved to new orders in new blocks. The placed quantities are distributed to the cancelled orders on a pro-rata basis. # noqa: E501
|
438
|
+
This method makes a synchronous HTTP request by default. To make an
|
439
|
+
asynchronous HTTP request, please pass async_req=True
|
440
|
+
|
441
|
+
>>> thread = api.cancel_orders_and_move_remaining_with_http_info(request_body, async_req=True)
|
442
|
+
>>> result = thread.get()
|
443
|
+
|
444
|
+
:param request_body: The request containing the orders to be cancelled, and the destinations of remaining quantities. (required)
|
445
|
+
:type request_body: Dict[str, CancelOrdersAndMoveRemainingRequest]
|
446
|
+
:param async_req: Whether to execute the request asynchronously.
|
447
|
+
:type async_req: bool, optional
|
448
|
+
:param _preload_content: if False, the ApiResponse.data will
|
449
|
+
be set to none and raw_data will store the
|
450
|
+
HTTP response body without reading/decoding.
|
451
|
+
Default is True.
|
452
|
+
:type _preload_content: bool, optional
|
453
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
454
|
+
object with status code, headers, etc
|
455
|
+
:type _return_http_data_only: bool, optional
|
456
|
+
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
457
|
+
:param opts: Configuration options for this request
|
458
|
+
:type opts: ConfigurationOptions, optional
|
459
|
+
:param _request_auth: set to override the auth_settings for an a single
|
460
|
+
request; this effectively ignores the authentication
|
461
|
+
in the spec for a single request.
|
462
|
+
:type _request_auth: dict, optional
|
463
|
+
:type _content_type: string, optional: force content-type for the request
|
464
|
+
:return: Returns the result object.
|
465
|
+
If the method is called asynchronously,
|
466
|
+
returns the request thread.
|
467
|
+
:rtype: tuple(CancelOrdersAndMoveRemainingResponse, status_code(int), headers(HTTPHeaderDict))
|
468
|
+
"""
|
469
|
+
|
470
|
+
_params = locals()
|
471
|
+
|
472
|
+
_all_params = [
|
473
|
+
'request_body'
|
474
|
+
]
|
475
|
+
_all_params.extend(
|
476
|
+
[
|
477
|
+
'async_req',
|
478
|
+
'_return_http_data_only',
|
479
|
+
'_preload_content',
|
480
|
+
'_request_timeout',
|
481
|
+
'_request_auth',
|
482
|
+
'_content_type',
|
483
|
+
'_headers',
|
484
|
+
'opts'
|
485
|
+
]
|
486
|
+
)
|
487
|
+
|
488
|
+
# validate the arguments
|
489
|
+
for _key, _val in _params['kwargs'].items():
|
490
|
+
if _key not in _all_params:
|
491
|
+
raise ApiTypeError(
|
492
|
+
"Got an unexpected keyword argument '%s'"
|
493
|
+
" to method cancel_orders_and_move_remaining" % _key
|
494
|
+
)
|
495
|
+
_params[_key] = _val
|
496
|
+
del _params['kwargs']
|
497
|
+
|
498
|
+
_collection_formats = {}
|
499
|
+
|
500
|
+
# process the path parameters
|
501
|
+
_path_params = {}
|
502
|
+
|
503
|
+
# process the query parameters
|
504
|
+
_query_params = []
|
505
|
+
# process the header parameters
|
506
|
+
_header_params = dict(_params.get('_headers', {}))
|
507
|
+
# process the form parameters
|
508
|
+
_form_params = []
|
509
|
+
_files = {}
|
510
|
+
# process the body parameter
|
511
|
+
_body_params = None
|
512
|
+
if _params['request_body'] is not None:
|
513
|
+
_body_params = _params['request_body']
|
514
|
+
|
515
|
+
# set the HTTP header `Accept`
|
516
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
517
|
+
['text/plain', 'application/json', 'text/json']) # noqa: E501
|
518
|
+
|
519
|
+
# set the HTTP header `Content-Type`
|
520
|
+
_content_types_list = _params.get('_content_type',
|
521
|
+
self.api_client.select_header_content_type(
|
522
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']))
|
523
|
+
if _content_types_list:
|
524
|
+
_header_params['Content-Type'] = _content_types_list
|
525
|
+
|
526
|
+
# authentication setting
|
527
|
+
_auth_settings = ['oauth2'] # noqa: E501
|
528
|
+
|
529
|
+
_response_types_map = {
|
530
|
+
'200': "CancelOrdersAndMoveRemainingResponse",
|
531
|
+
'400': "LusidValidationProblemDetails",
|
532
|
+
}
|
533
|
+
|
534
|
+
return self.api_client.call_api(
|
535
|
+
'/api/ordermanagement/cancelordersandmoveremaining', 'POST',
|
536
|
+
_path_params,
|
537
|
+
_query_params,
|
538
|
+
_header_params,
|
539
|
+
body=_body_params,
|
540
|
+
post_params=_form_params,
|
541
|
+
files=_files,
|
542
|
+
response_types_map=_response_types_map,
|
543
|
+
auth_settings=_auth_settings,
|
544
|
+
async_req=_params.get('async_req'),
|
545
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
546
|
+
_preload_content=_params.get('_preload_content', True),
|
547
|
+
_request_timeout=_params.get('_request_timeout'),
|
548
|
+
opts=_params.get('opts'),
|
549
|
+
collection_formats=_collection_formats,
|
550
|
+
_request_auth=_params.get('_request_auth'))
|
551
|
+
|
392
552
|
@overload
|
393
553
|
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
|
394
554
|
...
|
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.6883\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
@@ -114,6 +114,9 @@ from lusid.models.calculation_info import CalculationInfo
|
|
114
114
|
from lusid.models.calendar import Calendar
|
115
115
|
from lusid.models.calendar_date import CalendarDate
|
116
116
|
from lusid.models.calendar_dependency import CalendarDependency
|
117
|
+
from lusid.models.cancel_order_and_move_remaining_result import CancelOrderAndMoveRemainingResult
|
118
|
+
from lusid.models.cancel_orders_and_move_remaining_request import CancelOrdersAndMoveRemainingRequest
|
119
|
+
from lusid.models.cancel_orders_and_move_remaining_response import CancelOrdersAndMoveRemainingResponse
|
117
120
|
from lusid.models.cancel_orders_response import CancelOrdersResponse
|
118
121
|
from lusid.models.cancel_placements_response import CancelPlacementsResponse
|
119
122
|
from lusid.models.cancelled_order_result import CancelledOrderResult
|
@@ -1213,6 +1216,9 @@ __all__ = [
|
|
1213
1216
|
"Calendar",
|
1214
1217
|
"CalendarDate",
|
1215
1218
|
"CalendarDependency",
|
1219
|
+
"CancelOrderAndMoveRemainingResult",
|
1220
|
+
"CancelOrdersAndMoveRemainingRequest",
|
1221
|
+
"CancelOrdersAndMoveRemainingResponse",
|
1216
1222
|
"CancelOrdersResponse",
|
1217
1223
|
"CancelPlacementsResponse",
|
1218
1224
|
"CancelledOrderResult",
|
@@ -0,0 +1,84 @@
|
|
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
|
+
from lusid.models.resource_id import ResourceId
|
25
|
+
|
26
|
+
class CancelOrderAndMoveRemainingResult(BaseModel):
|
27
|
+
"""
|
28
|
+
CancelOrderAndMoveRemainingResult
|
29
|
+
"""
|
30
|
+
cancelled_order: Optional[Order] = Field(None, alias="cancelledOrder")
|
31
|
+
new_order: Optional[Order] = Field(None, alias="newOrder")
|
32
|
+
new_block_id: Optional[ResourceId] = Field(None, alias="newBlockId")
|
33
|
+
__properties = ["cancelledOrder", "newOrder", "newBlockId"]
|
34
|
+
|
35
|
+
class Config:
|
36
|
+
"""Pydantic configuration"""
|
37
|
+
allow_population_by_field_name = True
|
38
|
+
validate_assignment = True
|
39
|
+
|
40
|
+
def to_str(self) -> str:
|
41
|
+
"""Returns the string representation of the model using alias"""
|
42
|
+
return pprint.pformat(self.dict(by_alias=True))
|
43
|
+
|
44
|
+
def to_json(self) -> str:
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
46
|
+
return json.dumps(self.to_dict())
|
47
|
+
|
48
|
+
@classmethod
|
49
|
+
def from_json(cls, json_str: str) -> CancelOrderAndMoveRemainingResult:
|
50
|
+
"""Create an instance of CancelOrderAndMoveRemainingResult from a JSON string"""
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
52
|
+
|
53
|
+
def to_dict(self):
|
54
|
+
"""Returns the dictionary representation of the model using alias"""
|
55
|
+
_dict = self.dict(by_alias=True,
|
56
|
+
exclude={
|
57
|
+
},
|
58
|
+
exclude_none=True)
|
59
|
+
# override the default output from pydantic by calling `to_dict()` of cancelled_order
|
60
|
+
if self.cancelled_order:
|
61
|
+
_dict['cancelledOrder'] = self.cancelled_order.to_dict()
|
62
|
+
# override the default output from pydantic by calling `to_dict()` of new_order
|
63
|
+
if self.new_order:
|
64
|
+
_dict['newOrder'] = self.new_order.to_dict()
|
65
|
+
# override the default output from pydantic by calling `to_dict()` of new_block_id
|
66
|
+
if self.new_block_id:
|
67
|
+
_dict['newBlockId'] = self.new_block_id.to_dict()
|
68
|
+
return _dict
|
69
|
+
|
70
|
+
@classmethod
|
71
|
+
def from_dict(cls, obj: dict) -> CancelOrderAndMoveRemainingResult:
|
72
|
+
"""Create an instance of CancelOrderAndMoveRemainingResult from a dict"""
|
73
|
+
if obj is None:
|
74
|
+
return None
|
75
|
+
|
76
|
+
if not isinstance(obj, dict):
|
77
|
+
return CancelOrderAndMoveRemainingResult.parse_obj(obj)
|
78
|
+
|
79
|
+
_obj = CancelOrderAndMoveRemainingResult.parse_obj({
|
80
|
+
"cancelled_order": Order.from_dict(obj.get("cancelledOrder")) if obj.get("cancelledOrder") is not None else None,
|
81
|
+
"new_order": Order.from_dict(obj.get("newOrder")) if obj.get("newOrder") is not None else None,
|
82
|
+
"new_block_id": ResourceId.from_dict(obj.get("newBlockId")) if obj.get("newBlockId") is not None else None
|
83
|
+
})
|
84
|
+
return _obj
|
@@ -0,0 +1,83 @@
|
|
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
|
22
|
+
from pydantic.v1 import BaseModel, Field
|
23
|
+
from lusid.models.resource_id import ResourceId
|
24
|
+
|
25
|
+
class CancelOrdersAndMoveRemainingRequest(BaseModel):
|
26
|
+
"""
|
27
|
+
A request to create or update a Order. # noqa: E501
|
28
|
+
"""
|
29
|
+
cancel_order_id: ResourceId = Field(..., alias="cancelOrderId")
|
30
|
+
move_remaining_to_order_id: ResourceId = Field(..., alias="moveRemainingToOrderId")
|
31
|
+
move_remaining_to_block_id: ResourceId = Field(..., alias="moveRemainingToBlockId")
|
32
|
+
__properties = ["cancelOrderId", "moveRemainingToOrderId", "moveRemainingToBlockId"]
|
33
|
+
|
34
|
+
class Config:
|
35
|
+
"""Pydantic configuration"""
|
36
|
+
allow_population_by_field_name = True
|
37
|
+
validate_assignment = True
|
38
|
+
|
39
|
+
def to_str(self) -> str:
|
40
|
+
"""Returns the string representation of the model using alias"""
|
41
|
+
return pprint.pformat(self.dict(by_alias=True))
|
42
|
+
|
43
|
+
def to_json(self) -> str:
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
45
|
+
return json.dumps(self.to_dict())
|
46
|
+
|
47
|
+
@classmethod
|
48
|
+
def from_json(cls, json_str: str) -> CancelOrdersAndMoveRemainingRequest:
|
49
|
+
"""Create an instance of CancelOrdersAndMoveRemainingRequest from a JSON string"""
|
50
|
+
return cls.from_dict(json.loads(json_str))
|
51
|
+
|
52
|
+
def to_dict(self):
|
53
|
+
"""Returns the dictionary representation of the model using alias"""
|
54
|
+
_dict = self.dict(by_alias=True,
|
55
|
+
exclude={
|
56
|
+
},
|
57
|
+
exclude_none=True)
|
58
|
+
# override the default output from pydantic by calling `to_dict()` of cancel_order_id
|
59
|
+
if self.cancel_order_id:
|
60
|
+
_dict['cancelOrderId'] = self.cancel_order_id.to_dict()
|
61
|
+
# override the default output from pydantic by calling `to_dict()` of move_remaining_to_order_id
|
62
|
+
if self.move_remaining_to_order_id:
|
63
|
+
_dict['moveRemainingToOrderId'] = self.move_remaining_to_order_id.to_dict()
|
64
|
+
# override the default output from pydantic by calling `to_dict()` of move_remaining_to_block_id
|
65
|
+
if self.move_remaining_to_block_id:
|
66
|
+
_dict['moveRemainingToBlockId'] = self.move_remaining_to_block_id.to_dict()
|
67
|
+
return _dict
|
68
|
+
|
69
|
+
@classmethod
|
70
|
+
def from_dict(cls, obj: dict) -> CancelOrdersAndMoveRemainingRequest:
|
71
|
+
"""Create an instance of CancelOrdersAndMoveRemainingRequest from a dict"""
|
72
|
+
if obj is None:
|
73
|
+
return None
|
74
|
+
|
75
|
+
if not isinstance(obj, dict):
|
76
|
+
return CancelOrdersAndMoveRemainingRequest.parse_obj(obj)
|
77
|
+
|
78
|
+
_obj = CancelOrdersAndMoveRemainingRequest.parse_obj({
|
79
|
+
"cancel_order_id": ResourceId.from_dict(obj.get("cancelOrderId")) if obj.get("cancelOrderId") is not None else None,
|
80
|
+
"move_remaining_to_order_id": ResourceId.from_dict(obj.get("moveRemainingToOrderId")) if obj.get("moveRemainingToOrderId") is not None else None,
|
81
|
+
"move_remaining_to_block_id": ResourceId.from_dict(obj.get("moveRemainingToBlockId")) if obj.get("moveRemainingToBlockId") is not None else None
|
82
|
+
})
|
83
|
+
return _obj
|
@@ -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.cancel_order_and_move_remaining_result import CancelOrderAndMoveRemainingResult
|
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 CancelOrdersAndMoveRemainingResponse(BaseModel):
|
29
|
+
"""
|
30
|
+
CancelOrdersAndMoveRemainingResponse
|
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, CancelOrderAndMoveRemainingResult]] = Field(None, description="The orders which have been successfully cancelled, and any remaining quantities moved.")
|
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) -> CancelOrdersAndMoveRemainingResponse:
|
54
|
+
"""Create an instance of CancelOrdersAndMoveRemainingResponse 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) -> CancelOrdersAndMoveRemainingResponse:
|
122
|
+
"""Create an instance of CancelOrdersAndMoveRemainingResponse from a dict"""
|
123
|
+
if obj is None:
|
124
|
+
return None
|
125
|
+
|
126
|
+
if not isinstance(obj, dict):
|
127
|
+
return CancelOrdersAndMoveRemainingResponse.parse_obj(obj)
|
128
|
+
|
129
|
+
_obj = CancelOrdersAndMoveRemainingResponse.parse_obj({
|
130
|
+
"href": obj.get("href"),
|
131
|
+
"values": dict(
|
132
|
+
(_k, CancelOrderAndMoveRemainingResult.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
|
@@ -18,8 +18,8 @@ import re # noqa: F401
|
|
18
18
|
import json
|
19
19
|
|
20
20
|
from datetime import datetime
|
21
|
-
from typing import Any, Dict, Optional
|
22
|
-
from pydantic.v1 import Field, StrictStr, validator
|
21
|
+
from typing import Any, Dict, Optional, Union
|
22
|
+
from pydantic.v1 import Field, StrictFloat, StrictInt, StrictStr, validator
|
23
23
|
from lusid.models.instrument_event import InstrumentEvent
|
24
24
|
from lusid.models.units_ratio import UnitsRatio
|
25
25
|
|
@@ -32,9 +32,11 @@ class ReverseStockSplitEvent(InstrumentEvent):
|
|
32
32
|
units_ratio: UnitsRatio = Field(..., alias="unitsRatio")
|
33
33
|
record_date: Optional[datetime] = Field(None, alias="recordDate", description="Date you have to be the holder of record in order to have their shares merged.")
|
34
34
|
announcement_date: Optional[datetime] = Field(None, alias="announcementDate", description="Date the reverse stock split was announced.")
|
35
|
+
fractional_units_cash_currency: Optional[StrictStr] = Field(None, alias="fractionalUnitsCashCurrency", description="The currency of the cash paid in lieu of fractionalUnits.")
|
36
|
+
fractional_units_cash_price: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="fractionalUnitsCashPrice", description="The cash price paid in lieu of fractionalUnits.")
|
35
37
|
instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent")
|
36
38
|
additional_properties: Dict[str, Any] = {}
|
37
|
-
__properties = ["instrumentEventType", "paymentDate", "exDate", "unitsRatio", "recordDate", "announcementDate"]
|
39
|
+
__properties = ["instrumentEventType", "paymentDate", "exDate", "unitsRatio", "recordDate", "announcementDate", "fractionalUnitsCashCurrency", "fractionalUnitsCashPrice"]
|
38
40
|
|
39
41
|
@validator('instrument_event_type')
|
40
42
|
def instrument_event_type_validate_enum(cls, value):
|
@@ -86,6 +88,16 @@ class ReverseStockSplitEvent(InstrumentEvent):
|
|
86
88
|
if self.announcement_date is None and "announcement_date" in self.__fields_set__:
|
87
89
|
_dict['announcementDate'] = None
|
88
90
|
|
91
|
+
# set to None if fractional_units_cash_currency (nullable) is None
|
92
|
+
# and __fields_set__ contains the field
|
93
|
+
if self.fractional_units_cash_currency is None and "fractional_units_cash_currency" in self.__fields_set__:
|
94
|
+
_dict['fractionalUnitsCashCurrency'] = None
|
95
|
+
|
96
|
+
# set to None if fractional_units_cash_price (nullable) is None
|
97
|
+
# and __fields_set__ contains the field
|
98
|
+
if self.fractional_units_cash_price is None and "fractional_units_cash_price" in self.__fields_set__:
|
99
|
+
_dict['fractionalUnitsCashPrice'] = None
|
100
|
+
|
89
101
|
return _dict
|
90
102
|
|
91
103
|
@classmethod
|
@@ -103,7 +115,9 @@ class ReverseStockSplitEvent(InstrumentEvent):
|
|
103
115
|
"ex_date": obj.get("exDate"),
|
104
116
|
"units_ratio": UnitsRatio.from_dict(obj.get("unitsRatio")) if obj.get("unitsRatio") is not None else None,
|
105
117
|
"record_date": obj.get("recordDate"),
|
106
|
-
"announcement_date": obj.get("announcementDate")
|
118
|
+
"announcement_date": obj.get("announcementDate"),
|
119
|
+
"fractional_units_cash_currency": obj.get("fractionalUnitsCashCurrency"),
|
120
|
+
"fractional_units_cash_price": obj.get("fractionalUnitsCashPrice")
|
107
121
|
})
|
108
122
|
# store additional fields in additional_properties
|
109
123
|
for _key in obj.keys():
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lusid-sdk
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.454
|
4
4
|
Summary: LUSID API
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
6
6
|
License: MIT
|
@@ -250,6 +250,7 @@ Class | Method | HTTP request | Description
|
|
250
250
|
*FundsApi* | [**list_funds**](docs/FundsApi.md#list_funds) | **GET** /api/funds | [EXPERIMENTAL] ListFunds: List Funds.
|
251
251
|
*FundsApi* | [**list_valuation_point_overview**](docs/FundsApi.md#list_valuation_point_overview) | **GET** /api/funds/{scope}/{code}/valuationPointOverview | [EXPERIMENTAL] ListValuationPointOverview: List Valuation Points Overview for a given Fund.
|
252
252
|
*FundsApi* | [**patch_fee**](docs/FundsApi.md#patch_fee) | **PATCH** /api/funds/{scope}/{code}/fees/{feeCode} | [EXPERIMENTAL] PatchFee: Patch Fee.
|
253
|
+
*FundsApi* | [**patch_fund**](docs/FundsApi.md#patch_fund) | **PATCH** /api/funds/{scope}/{code} | [EXPERIMENTAL] PatchFund: Patch a Fund.
|
253
254
|
*FundsApi* | [**set_share_class_instruments**](docs/FundsApi.md#set_share_class_instruments) | **PUT** /api/funds/{scope}/{code}/shareclasses | [EXPERIMENTAL] SetShareClassInstruments: Set the ShareClass Instruments on a fund.
|
254
255
|
*FundsApi* | [**upsert_diary_entry_type_valuation_point**](docs/FundsApi.md#upsert_diary_entry_type_valuation_point) | **POST** /api/funds/{scope}/{code}/valuationpoints | [EXPERIMENTAL] UpsertDiaryEntryTypeValuationPoint: Upsert Valuation Point.
|
255
256
|
*FundsApi* | [**upsert_fee_properties**](docs/FundsApi.md#upsert_fee_properties) | **POST** /api/funds/{scope}/{code}/fees/{feeCode}/properties/$upsert | [EXPERIMENTAL] UpsertFeeProperties: Upsert Fee properties.
|
@@ -331,6 +332,7 @@ Class | Method | HTTP request | Description
|
|
331
332
|
*OrderInstructionsApi* | [**upsert_order_instructions**](docs/OrderInstructionsApi.md#upsert_order_instructions) | **POST** /api/orderinstructions | [EXPERIMENTAL] UpsertOrderInstructions: Upsert OrderInstruction
|
332
333
|
*OrderManagementApi* | [**book_transactions**](docs/OrderManagementApi.md#book_transactions) | **POST** /api/ordermanagement/booktransactions | [EXPERIMENTAL] BookTransactions: Books transactions using specific allocations as a source.
|
333
334
|
*OrderManagementApi* | [**cancel_orders**](docs/OrderManagementApi.md#cancel_orders) | **POST** /api/ordermanagement/cancelorders | [EARLY ACCESS] CancelOrders: Cancel existing orders
|
335
|
+
*OrderManagementApi* | [**cancel_orders_and_move_remaining**](docs/OrderManagementApi.md#cancel_orders_and_move_remaining) | **POST** /api/ordermanagement/cancelordersandmoveremaining | [EARLY ACCESS] CancelOrdersAndMoveRemaining: Cancel existing orders and move any unplaced quantities to new orders in new blocks
|
334
336
|
*OrderManagementApi* | [**cancel_placements**](docs/OrderManagementApi.md#cancel_placements) | **POST** /api/ordermanagement/$cancelplacements | [EARLY ACCESS] CancelPlacements: Cancel existing placements
|
335
337
|
*OrderManagementApi* | [**create_orders**](docs/OrderManagementApi.md#create_orders) | **POST** /api/ordermanagement/createorders | [EARLY ACCESS] CreateOrders: Upsert a Block and associated orders
|
336
338
|
*OrderManagementApi* | [**get_order_history**](docs/OrderManagementApi.md#get_order_history) | **GET** /api/ordermanagement/order/{scope}/{code}/$history | [EXPERIMENTAL] GetOrderHistory: Get the history of an order and related entity changes
|
@@ -718,6 +720,9 @@ Class | Method | HTTP request | Description
|
|
718
720
|
- [Calendar](docs/Calendar.md)
|
719
721
|
- [CalendarDate](docs/CalendarDate.md)
|
720
722
|
- [CalendarDependency](docs/CalendarDependency.md)
|
723
|
+
- [CancelOrderAndMoveRemainingResult](docs/CancelOrderAndMoveRemainingResult.md)
|
724
|
+
- [CancelOrdersAndMoveRemainingRequest](docs/CancelOrdersAndMoveRemainingRequest.md)
|
725
|
+
- [CancelOrdersAndMoveRemainingResponse](docs/CancelOrdersAndMoveRemainingResponse.md)
|
721
726
|
- [CancelOrdersResponse](docs/CancelOrdersResponse.md)
|
722
727
|
- [CancelPlacementsResponse](docs/CancelPlacementsResponse.md)
|
723
728
|
- [CancelledOrderResult](docs/CancelledOrderResult.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lusid/__init__.py,sha256=
|
1
|
+
lusid/__init__.py,sha256=HCCYKNA-b8xbnmsWSRzsttV7eNQKRWIyATQwf5AOIu4,123195
|
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
|
@@ -26,7 +26,7 @@ lusid/api/entities_api.py,sha256=ZE6QsxisPowNg6m9a-J_HjvV9vJSgFTYoNri6jJfaqg,855
|
|
26
26
|
lusid/api/executions_api.py,sha256=QW6_mT0rsZTiW1R5tG-_fa-UT6khiMYfHsnapbzlVmo,44263
|
27
27
|
lusid/api/fee_types_api.py,sha256=vcDM_7QOAX0LjNz5Wr7lTV_LVYtrmhZ8-59-ZRjL2Sg,55933
|
28
28
|
lusid/api/fund_configuration_api.py,sha256=sItl8nbm7PsJYVZYMLWKtGQG80y_y6LP7D_r6NjxbOc,74272
|
29
|
-
lusid/api/funds_api.py,sha256=
|
29
|
+
lusid/api/funds_api.py,sha256=cfiP9aomuX9SNepJfrF8FpEy1_2rSg0ROPZDGVKU-aU,224540
|
30
30
|
lusid/api/group_reconciliations_api.py,sha256=97A4RwUSaylKaWDKrbDzHrbRbTSnHjWImI0reagHYHc,114527
|
31
31
|
lusid/api/instrument_event_types_api.py,sha256=G4gpfM6eWl77dtF3DC7b0lUOby_EREyLmXTxSyo9-ew,81296
|
32
32
|
lusid/api/instrument_events_api.py,sha256=HJoC-pHztF2jKfX5xhXItEn3svBya8RNzd_hMDbmZKI,58350
|
@@ -35,7 +35,7 @@ lusid/api/legacy_compliance_api.py,sha256=a7nqMHB7Eh9f33Hrh55kOTmIB_Gfj9y4b8xOjM
|
|
35
35
|
lusid/api/legal_entities_api.py,sha256=YiKzvDknl_Yc61F4m-kbz976UWTGDjcLAJK2g_3Wn70,267038
|
36
36
|
lusid/api/order_graph_api.py,sha256=iouv81cDentnN_yKCF3_Vb7pMtKTecbpzgfur5rjb2Y,45154
|
37
37
|
lusid/api/order_instructions_api.py,sha256=Yi2hfOKsXdTZ98wIWj3GHEhGPgSgAop11UAwtOv3Ic0,45979
|
38
|
-
lusid/api/order_management_api.py,sha256=
|
38
|
+
lusid/api/order_management_api.py,sha256=yBsZA_Rwp2ynf82uWKQ4sK7qE_GHpU0fxvlQhmmxVMU,94883
|
39
39
|
lusid/api/orders_api.py,sha256=_HC4-TH1xoVJi7JeYLcbUp2fe2XSUskzo-b4J0yCoYo,43415
|
40
40
|
lusid/api/packages_api.py,sha256=54Hd7oO-1Ol4mNTat2A6dcyL08FPEAvCRY4OzymLpv0,43873
|
41
41
|
lusid/api/participations_api.py,sha256=Uh3M3jZqoSL3_BpBDxhI-4rkyWsKyeCSzsN4VIKLfho,45151
|
@@ -70,7 +70,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
|
|
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=_b9V2WCoWUjfjQSmsaG6j0yp94C4vuNUkBPpXMYrnzo,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=avig4Gpj1wybcZgIqg-7EaVbWrx4gklfaxKYZeUdFKw,116342
|
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
|
@@ -186,6 +186,9 @@ lusid/models/calculation_info.py,sha256=ZdZp4VUza1yaBFDfPGZi6UHn4iy2N-pTbeVLdoNI
|
|
186
186
|
lusid/models/calendar.py,sha256=nPe7TTvz9JRzeLcKae3K9HcWpDiXEJ_Kj4HL5fUIjQw,4661
|
187
187
|
lusid/models/calendar_date.py,sha256=CtQHbrmTnJdrjtVTL5AWd6rYn6bl5rtPi1-Lm5KFEUE,3688
|
188
188
|
lusid/models/calendar_dependency.py,sha256=XYN9AYoLnwuL234DkyDbXArsWalMIdG8U2iU_3dBXrY,3871
|
189
|
+
lusid/models/cancel_order_and_move_remaining_result.py,sha256=BY-cNuMvdgzjk5H3DhYUCWg7PitEccqxghkZKjPInsA,3124
|
190
|
+
lusid/models/cancel_orders_and_move_remaining_request.py,sha256=KhhaXbnHMn9wBWjfni47ZsV_KVpvMGVDQZHg1smwtuw,3377
|
191
|
+
lusid/models/cancel_orders_and_move_remaining_response.py,sha256=fdPfcpAC6FrTqSxDapq2etf6l2MxSnjgbSe5BeXc_Qo,6252
|
189
192
|
lusid/models/cancel_orders_response.py,sha256=dbef36DqyiejdxVA9NwzQ5e0DGT9g7IfA4s6ZpfM4Xg,6033
|
190
193
|
lusid/models/cancel_placements_response.py,sha256=xe43QiiMvapew4BvR1C3wj5tYgn-zLy3cX54sdjbt3o,6089
|
191
194
|
lusid/models/cancelled_order_result.py,sha256=ZAwAhNd7IouFTPRwwYvAflZqlYkbweSttNmJ6cHoIkw,2187
|
@@ -944,7 +947,7 @@ lusid/models/result_value_dictionary.py,sha256=9Y_LcAKrU_RY84gNBujObXEx59DYgtixO
|
|
944
947
|
lusid/models/result_value_int.py,sha256=_tXdKUiNtsb10Wco7Hq8LCuUwab4HPyXBs3UQIkIrOE,4173
|
945
948
|
lusid/models/result_value_string.py,sha256=FCe2SsB9fZAvvjqRNuxQFTsa5sth7-3TlBdWujqO-c4,3881
|
946
949
|
lusid/models/result_value_type.py,sha256=CrOf0KEyx1VJIkAAyXjoGm8rcpSx26Gl_b5MgzZGqHU,1216
|
947
|
-
lusid/models/reverse_stock_split_event.py,sha256=
|
950
|
+
lusid/models/reverse_stock_split_event.py,sha256=s9Z_Mi_4-8NwK_aCUVdWVSiaGeTkDBxsVlg5hk0SkLQ,8271
|
948
951
|
lusid/models/rounding_configuration.py,sha256=jpeBHvca82qlK64vSOkZD7azNRI3Z599lhpx66BKKcM,2297
|
949
952
|
lusid/models/rounding_configuration_component.py,sha256=bLKRyNkrImXApHRSxODZ0Kp6-mX-JK9ycdOIFdr45g4,2111
|
950
953
|
lusid/models/rounding_convention.py,sha256=wHP76MnZGN_2m25x7fRsNA6mkcCLmkHx-YSGSRRnrzk,3968
|
@@ -1184,6 +1187,6 @@ lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi
|
|
1184
1187
|
lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
|
1185
1188
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1186
1189
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1187
|
-
lusid_sdk-2.1.
|
1188
|
-
lusid_sdk-2.1.
|
1189
|
-
lusid_sdk-2.1.
|
1190
|
+
lusid_sdk-2.1.454.dist-info/METADATA,sha256=BdeGYCTceIcjeIREAzSPNhf3UY_2-GckJIl3u7PWuR8,203909
|
1191
|
+
lusid_sdk-2.1.454.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
1192
|
+
lusid_sdk-2.1.454.dist-info/RECORD,,
|
File without changes
|