lusid-sdk 2.1.452__py3-none-any.whl → 2.1.458__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 +10 -0
- lusid/api/funds_api.py +174 -0
- lusid/api/order_management_api.py +160 -0
- lusid/api/transaction_portfolios_api.py +242 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +10 -0
- lusid/models/basket.py +3 -3
- lusid/models/bond.py +3 -3
- 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/cap_floor.py +3 -3
- lusid/models/cash.py +3 -3
- lusid/models/cash_perpetual.py +3 -3
- lusid/models/cds_index.py +3 -3
- lusid/models/complex_bond.py +3 -3
- lusid/models/contract_for_difference.py +3 -3
- lusid/models/credit_default_swap.py +3 -3
- lusid/models/equity.py +3 -3
- lusid/models/equity_option.py +3 -3
- lusid/models/equity_swap.py +3 -3
- lusid/models/exchange_traded_option.py +3 -3
- lusid/models/exotic_instrument.py +3 -3
- lusid/models/fixed_leg.py +3 -3
- lusid/models/flexible_loan.py +3 -3
- lusid/models/floating_leg.py +3 -3
- lusid/models/forward_rate_agreement.py +3 -3
- lusid/models/fund_share_class.py +3 -3
- lusid/models/funding_leg.py +3 -3
- lusid/models/future.py +3 -3
- lusid/models/fx_forward.py +3 -3
- lusid/models/fx_option.py +3 -3
- lusid/models/fx_swap.py +3 -3
- lusid/models/holding_contributor.py +11 -4
- lusid/models/holding_ids_request.py +69 -0
- lusid/models/inflation_leg.py +3 -3
- lusid/models/inflation_linked_bond.py +3 -3
- lusid/models/inflation_swap.py +3 -3
- lusid/models/instrument_leg.py +3 -3
- lusid/models/instrument_type.py +1 -0
- lusid/models/interest_rate_swap.py +3 -3
- lusid/models/interest_rate_swaption.py +3 -3
- lusid/models/loan_facility.py +97 -0
- lusid/models/lusid_instrument.py +6 -5
- lusid/models/mastered_instrument.py +3 -3
- lusid/models/reference_instrument.py +3 -3
- lusid/models/repo.py +3 -3
- lusid/models/reverse_stock_split_event.py +18 -4
- lusid/models/simple_cash_flow_loan.py +3 -3
- lusid/models/simple_instrument.py +3 -3
- lusid/models/term_deposit.py +3 -3
- lusid/models/total_return_swap.py +3 -3
- {lusid_sdk-2.1.452.dist-info → lusid_sdk-2.1.458.dist-info}/METADATA +9 -1
- {lusid_sdk-2.1.452.dist-info → lusid_sdk-2.1.458.dist-info}/RECORD +55 -50
- {lusid_sdk-2.1.452.dist-info → lusid_sdk-2.1.458.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
|
@@ -522,6 +525,7 @@ from lusid.models.holding_adjustment import HoldingAdjustment
|
|
522
525
|
from lusid.models.holding_adjustment_with_date import HoldingAdjustmentWithDate
|
523
526
|
from lusid.models.holding_context import HoldingContext
|
524
527
|
from lusid.models.holding_contributor import HoldingContributor
|
528
|
+
from lusid.models.holding_ids_request import HoldingIdsRequest
|
525
529
|
from lusid.models.holding_pricing_info import HoldingPricingInfo
|
526
530
|
from lusid.models.holdings_adjustment import HoldingsAdjustment
|
527
531
|
from lusid.models.holdings_adjustment_header import HoldingsAdjustmentHeader
|
@@ -591,6 +595,7 @@ from lusid.models.link import Link
|
|
591
595
|
from lusid.models.list_aggregation_reconciliation import ListAggregationReconciliation
|
592
596
|
from lusid.models.list_aggregation_response import ListAggregationResponse
|
593
597
|
from lusid.models.list_complex_market_data_with_meta_data_response import ListComplexMarketDataWithMetaDataResponse
|
598
|
+
from lusid.models.loan_facility import LoanFacility
|
594
599
|
from lusid.models.loan_period import LoanPeriod
|
595
600
|
from lusid.models.lock_period_diary_entry_request import LockPeriodDiaryEntryRequest
|
596
601
|
from lusid.models.lusid_instrument import LusidInstrument
|
@@ -1374,6 +1379,9 @@ __all__ = [
|
|
1374
1379
|
"Calendar",
|
1375
1380
|
"CalendarDate",
|
1376
1381
|
"CalendarDependency",
|
1382
|
+
"CancelOrderAndMoveRemainingResult",
|
1383
|
+
"CancelOrdersAndMoveRemainingRequest",
|
1384
|
+
"CancelOrdersAndMoveRemainingResponse",
|
1377
1385
|
"CancelOrdersResponse",
|
1378
1386
|
"CancelPlacementsResponse",
|
1379
1387
|
"CancelledOrderResult",
|
@@ -1701,6 +1709,7 @@ __all__ = [
|
|
1701
1709
|
"HoldingAdjustmentWithDate",
|
1702
1710
|
"HoldingContext",
|
1703
1711
|
"HoldingContributor",
|
1712
|
+
"HoldingIdsRequest",
|
1704
1713
|
"HoldingPricingInfo",
|
1705
1714
|
"HoldingsAdjustment",
|
1706
1715
|
"HoldingsAdjustmentHeader",
|
@@ -1770,6 +1779,7 @@ __all__ = [
|
|
1770
1779
|
"ListAggregationReconciliation",
|
1771
1780
|
"ListAggregationResponse",
|
1772
1781
|
"ListComplexMarketDataWithMetaDataResponse",
|
1782
|
+
"LoanFacility",
|
1773
1783
|
"LoanPeriod",
|
1774
1784
|
"LockPeriodDiaryEntryRequest",
|
1775
1785
|
"LusidInstrument",
|
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
|
...
|