lusid-sdk 2.1.788__py3-none-any.whl → 2.1.790__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.
@@ -0,0 +1,115 @@
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 StrictStr, Field, BaseModel, Field
23
+ from lusid.models.error_detail import ErrorDetail
24
+ from lusid.models.resource_id import ResourceId
25
+
26
+ class SweepBlocksResponse(BaseModel):
27
+ """
28
+ SweepBlocksResponse
29
+ """
30
+ values: Optional[Dict[str, ResourceId]] = Field(None, description="The identifiers of blocks which have been successfully swept, indexed by ephemeral request-lived id.")
31
+ failed: Optional[Dict[str, ErrorDetail]] = Field(None, description="The identifiers of blocks that could not be swept, along with a reason for their failure.")
32
+ __properties = ["values", "failed"]
33
+
34
+ class Config:
35
+ """Pydantic configuration"""
36
+ allow_population_by_field_name = True
37
+ validate_assignment = True
38
+
39
+ def __str__(self):
40
+ """For `print` and `pprint`"""
41
+ return pprint.pformat(self.dict(by_alias=False))
42
+
43
+ def __repr__(self):
44
+ """For `print` and `pprint`"""
45
+ return self.to_str()
46
+
47
+ def to_str(self) -> str:
48
+ """Returns the string representation of the model using alias"""
49
+ return pprint.pformat(self.dict(by_alias=True))
50
+
51
+ def to_json(self) -> str:
52
+ """Returns the JSON representation of the model using alias"""
53
+ return json.dumps(self.to_dict())
54
+
55
+ @classmethod
56
+ def from_json(cls, json_str: str) -> SweepBlocksResponse:
57
+ """Create an instance of SweepBlocksResponse from a JSON string"""
58
+ return cls.from_dict(json.loads(json_str))
59
+
60
+ def to_dict(self):
61
+ """Returns the dictionary representation of the model using alias"""
62
+ _dict = self.dict(by_alias=True,
63
+ exclude={
64
+ },
65
+ exclude_none=True)
66
+ # override the default output from pydantic by calling `to_dict()` of each value in values (dict)
67
+ _field_dict = {}
68
+ if self.values:
69
+ for _key in self.values:
70
+ if self.values[_key]:
71
+ _field_dict[_key] = self.values[_key].to_dict()
72
+ _dict['values'] = _field_dict
73
+ # override the default output from pydantic by calling `to_dict()` of each value in failed (dict)
74
+ _field_dict = {}
75
+ if self.failed:
76
+ for _key in self.failed:
77
+ if self.failed[_key]:
78
+ _field_dict[_key] = self.failed[_key].to_dict()
79
+ _dict['failed'] = _field_dict
80
+ # set to None if values (nullable) is None
81
+ # and __fields_set__ contains the field
82
+ if self.values is None and "values" in self.__fields_set__:
83
+ _dict['values'] = None
84
+
85
+ # set to None if failed (nullable) is None
86
+ # and __fields_set__ contains the field
87
+ if self.failed is None and "failed" in self.__fields_set__:
88
+ _dict['failed'] = None
89
+
90
+ return _dict
91
+
92
+ @classmethod
93
+ def from_dict(cls, obj: dict) -> SweepBlocksResponse:
94
+ """Create an instance of SweepBlocksResponse from a dict"""
95
+ if obj is None:
96
+ return None
97
+
98
+ if not isinstance(obj, dict):
99
+ return SweepBlocksResponse.parse_obj(obj)
100
+
101
+ _obj = SweepBlocksResponse.parse_obj({
102
+ "values": dict(
103
+ (_k, ResourceId.from_dict(_v))
104
+ for _k, _v in obj.get("values").items()
105
+ )
106
+ if obj.get("values") is not None
107
+ else None,
108
+ "failed": dict(
109
+ (_k, ErrorDetail.from_dict(_v))
110
+ for _k, _v in obj.get("failed").items()
111
+ )
112
+ if obj.get("failed") is not None
113
+ else None
114
+ })
115
+ return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.788
3
+ Version: 2.1.790
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -55,6 +55,10 @@ Class | Method | HTTP request | Description
55
55
  *AddressKeyDefinitionApi* | [**create_address_key_definition**](docs/AddressKeyDefinitionApi.md#create_address_key_definition) | **POST** /api/addresskeydefinitions | [EARLY ACCESS] CreateAddressKeyDefinition: Create an AddressKeyDefinition.
56
56
  *AddressKeyDefinitionApi* | [**get_address_key_definition**](docs/AddressKeyDefinitionApi.md#get_address_key_definition) | **GET** /api/addresskeydefinitions/{key} | [EARLY ACCESS] GetAddressKeyDefinition: Get an AddressKeyDefinition.
57
57
  *AddressKeyDefinitionApi* | [**list_address_key_definitions**](docs/AddressKeyDefinitionApi.md#list_address_key_definitions) | **GET** /api/addresskeydefinitions | [EARLY ACCESS] ListAddressKeyDefinitions: List AddressKeyDefinitions.
58
+ *AggregatedReturnsApi* | [**delete_returns_entity**](docs/AggregatedReturnsApi.md#delete_returns_entity) | **DELETE** /api/returns/{scope}/{code} | [EXPERIMENTAL] DeleteReturnsEntity: Delete returns entity.
59
+ *AggregatedReturnsApi* | [**get_returns_entity**](docs/AggregatedReturnsApi.md#get_returns_entity) | **GET** /api/returns/{scope}/{code} | [EXPERIMENTAL] GetReturnsEntity: Get returns entity.
60
+ *AggregatedReturnsApi* | [**list_returns_entities**](docs/AggregatedReturnsApi.md#list_returns_entities) | **GET** /api/returns | [EXPERIMENTAL] ListReturnsEntities: List returns entities.
61
+ *AggregatedReturnsApi* | [**upsert_returns_entity**](docs/AggregatedReturnsApi.md#upsert_returns_entity) | **POST** /api/returns | [EXPERIMENTAL] UpsertReturnsEntity: Upsert returns entity.
58
62
  *AggregationApi* | [**generate_configuration_recipe**](docs/AggregationApi.md#generate_configuration_recipe) | **POST** /api/aggregation/{scope}/{code}/$generateconfigurationrecipe | [EXPERIMENTAL] GenerateConfigurationRecipe: Generates a recipe sufficient to perform valuations for the given portfolio.
59
63
  *AggregationApi* | [**get_queryable_keys**](docs/AggregationApi.md#get_queryable_keys) | **GET** /api/results/queryable/keys | GetQueryableKeys: Query the set of supported \"addresses\" that can be queried from the aggregation endpoint.
60
64
  *AggregationApi* | [**get_valuation**](docs/AggregationApi.md#get_valuation) | **POST** /api/aggregation/$valuation | GetValuation: Perform valuation for a list of portfolios and/or portfolio groups
@@ -369,6 +373,7 @@ Class | Method | HTTP request | Description
369
373
  *OrderManagementApi* | [**move_orders**](docs/OrderManagementApi.md#move_orders) | **POST** /api/ordermanagement/moveorders | [EARLY ACCESS] MoveOrders: Move orders to new or existing block
370
374
  *OrderManagementApi* | [**place_blocks**](docs/OrderManagementApi.md#place_blocks) | **POST** /api/ordermanagement/placeblocks | [EARLY ACCESS] PlaceBlocks: Places blocks for a given list of placement requests.
371
375
  *OrderManagementApi* | [**run_allocation_service**](docs/OrderManagementApi.md#run_allocation_service) | **POST** /api/ordermanagement/allocate | [EXPERIMENTAL] RunAllocationService: Runs the Allocation Service
376
+ *OrderManagementApi* | [**sweep_blocks**](docs/OrderManagementApi.md#sweep_blocks) | **POST** /api/ordermanagement/SweepBlocks | [EXPERIMENTAL] SweepBlocks: Sweeps specified blocks, for each block that meets the requirements. The request may be partially successful.
372
377
  *OrderManagementApi* | [**update_orders**](docs/OrderManagementApi.md#update_orders) | **POST** /api/ordermanagement/updateorders | [EARLY ACCESS] UpdateOrders: Update existing orders
373
378
  *OrderManagementApi* | [**update_placements**](docs/OrderManagementApi.md#update_placements) | **POST** /api/ordermanagement/$updateplacements | [EARLY ACCESS] UpdatePlacements: Update existing placements
374
379
  *OrdersApi* | [**delete_order**](docs/OrdersApi.md#delete_order) | **DELETE** /api/orders/{scope}/{code} | [EARLY ACCESS] DeleteOrder: Delete order
@@ -1583,6 +1588,7 @@ Class | Method | HTTP request | Description
1583
1588
  - [ResourceListOfReconciliationBreak](docs/ResourceListOfReconciliationBreak.md)
1584
1589
  - [ResourceListOfRelation](docs/ResourceListOfRelation.md)
1585
1590
  - [ResourceListOfRelationship](docs/ResourceListOfRelationship.md)
1591
+ - [ResourceListOfReturnsEntity](docs/ResourceListOfReturnsEntity.md)
1586
1592
  - [ResourceListOfScopeDefinition](docs/ResourceListOfScopeDefinition.md)
1587
1593
  - [ResourceListOfSideDefinition](docs/ResourceListOfSideDefinition.md)
1588
1594
  - [ResourceListOfString](docs/ResourceListOfString.md)
@@ -1606,6 +1612,7 @@ Class | Method | HTTP request | Description
1606
1612
  - [ResultValueString](docs/ResultValueString.md)
1607
1613
  - [ResultValueType](docs/ResultValueType.md)
1608
1614
  - [ReturnZeroPvOptions](docs/ReturnZeroPvOptions.md)
1615
+ - [ReturnsEntity](docs/ReturnsEntity.md)
1609
1616
  - [ReverseStockSplitEvent](docs/ReverseStockSplitEvent.md)
1610
1617
  - [RolloverConstituent](docs/RolloverConstituent.md)
1611
1618
  - [RoundingConfiguration](docs/RoundingConfiguration.md)
@@ -1673,6 +1680,8 @@ Class | Method | HTTP request | Description
1673
1680
  - [SubHoldingKeyValueEquals](docs/SubHoldingKeyValueEquals.md)
1674
1681
  - [SwapCashFlowEvent](docs/SwapCashFlowEvent.md)
1675
1682
  - [SwapPrincipalEvent](docs/SwapPrincipalEvent.md)
1683
+ - [SweepBlocksRequest](docs/SweepBlocksRequest.md)
1684
+ - [SweepBlocksResponse](docs/SweepBlocksResponse.md)
1676
1685
  - [TargetTaxLot](docs/TargetTaxLot.md)
1677
1686
  - [TargetTaxLotRequest](docs/TargetTaxLotRequest.md)
1678
1687
  - [TaxRule](docs/TaxRule.md)
@@ -1,8 +1,9 @@
1
- lusid/__init__.py,sha256=h8coe5afB3OYZDTn_rtVxO_6bzfn8IbCMWmAQs2NlMg,137181
2
- lusid/api/__init__.py,sha256=9-X349LJuDKH0wYaQDInFVG325vE0DTnvsawLStj6NI,6292
1
+ lusid/__init__.py,sha256=BVYOZvPKlcIPtxCg8dNFO7prZF9h7Hyg48N3M7BdofQ,137655
2
+ lusid/api/__init__.py,sha256=EQ3XKHP9QY2QeLD97_6ePDtx6g6tykdAzwWWHaW0dYo,6386
3
3
  lusid/api/abor_api.py,sha256=oAvtx9mQGWa5ZQRKjhzkJJH110GiIqiPIefIYNoiT14,166017
4
4
  lusid/api/abor_configuration_api.py,sha256=3Y3KwOOJqPsCsl7rfP-ScCYrKvVsQSP5adbsAsJ9G1s,74238
5
5
  lusid/api/address_key_definition_api.py,sha256=m1nlEYBeggP_6XUW-i7ah9G0Vmz8hNuKuYtM6Z9VTzA,31350
6
+ lusid/api/aggregated_returns_api.py,sha256=baHloWbQnmiO6TbuMNbfE6igvUEMM7HpwCUuBF6JLVY,32553
6
7
  lusid/api/aggregation_api.py,sha256=2rNBwnt3WvOpwqDTBSL--xybTGJ-15Ph-ERFcdtsohc,37886
7
8
  lusid/api/allocations_api.py,sha256=lHieU7JG7SAwt_tdBt-uxV_pbuQMH7i_FTEyZpGVQSI,49489
8
9
  lusid/api/amortisation_rule_sets_api.py,sha256=umrqxfUbLJllgAuij2XyeRk0MBjaCyYT0-4jadd7JrE,62141
@@ -38,7 +39,7 @@ lusid/api/legacy_compliance_api.py,sha256=DvApZDZ-_yzZ72e9oqKBK7Ey8oEaavGtw5cgxh
38
39
  lusid/api/legal_entities_api.py,sha256=3rCwRIrEXwKH2T8-16ZizKx_Hyi8YeEfrZFpCJX5Hfs,257649
39
40
  lusid/api/order_graph_api.py,sha256=-oaauVeAJxJsK6AHscON1nODEDbv8dcXlKNb6ilBOAU,44022
40
41
  lusid/api/order_instructions_api.py,sha256=o6zLGAFzsZsZdj78fXZ0_jIYz7fo4ZHam75Af4eXg4k,45672
41
- lusid/api/order_management_api.py,sha256=OvTqsXPNBsRNUFMgwa3UdBe3TpMWTjJFHd9YeJPANvc,97595
42
+ lusid/api/order_management_api.py,sha256=tzMrhJIZ0vjo1XHq1Xm7h5r3n1SdKMa6QYsynaTdMPs,105703
42
43
  lusid/api/orders_api.py,sha256=ujZOS8BbUlAOaGAgA7eEiwOiGNxfCAgeKEH94OiNxGE,43228
43
44
  lusid/api/packages_api.py,sha256=Vis2ktcicNqTF8Bw66vWhmFUyu0jOfiR5FT6iLKGXSM,43686
44
45
  lusid/api/participations_api.py,sha256=UivNIoEmZ2eIxYwHvMnW94Tfy6loXDu5PO5loY0yDJk,44964
@@ -75,7 +76,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
75
76
  lusid/api/workspace_api.py,sha256=QmcywrL34lbVo4CbSwyyJDh0kRG7Gt91xrQB0ShqQQQ,106017
76
77
  lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
77
78
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
78
- lusid/configuration.py,sha256=XztWS72lYrd2wif2Waab6ZAcn52eFuZxFZW_owg1PdI,17972
79
+ lusid/configuration.py,sha256=R2eD8ddoU8h93hzAnSNV-EbF1TjqKGKEVdYf02vVizM,17972
79
80
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
80
81
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
81
82
  lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
@@ -90,7 +91,7 @@ lusid/extensions/rest.py,sha256=dp-bD_LMR2zAL1tmC3-urhWKLomXx7r5iGN1VteMBVQ,1601
90
91
  lusid/extensions/retry.py,sha256=EhW9OKJmGHipxN3H7eROH5DiMlAnfBVl95NQrttcsdg,14834
91
92
  lusid/extensions/socket_keep_alive.py,sha256=NGlqsv-E25IjJOLGZhXZY6kUdx51nEF8qCQyVdzayRk,1653
92
93
  lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
93
- lusid/models/__init__.py,sha256=vZRIm6hIoK-rrxKbWoikqB4tGdtdCS7t5HgRov35_uE,129857
94
+ lusid/models/__init__.py,sha256=F74NN4FipnCzFgMKPdn4g1KwMCl5Y0bjjB5xRmkCh3s,130237
94
95
  lusid/models/a2_b_breakdown.py,sha256=-FXgILrvtZXQDmvS0ARaJVGBq5LJ4AH-o3HjujFVmS4,3198
95
96
  lusid/models/a2_b_category.py,sha256=WunXUgx-dCnApPeLC8Qo5tVCX8Ywxkehib1vmNqNgNs,2957
96
97
  lusid/models/a2_b_data_record.py,sha256=qANTmV1_HUEo4l72-F8qzZjlQxOe0Onc9WPz7h-WWuY,9993
@@ -1021,6 +1022,7 @@ lusid/models/resource_list_of_quote_access_metadata_rule.py,sha256=zdrOLlXCiWEsR
1021
1022
  lusid/models/resource_list_of_reconciliation_break.py,sha256=EYYvIQe4p13ocL84m1CxsCLW_Vnx6R_UKcVaWA2WPwQ,4419
1022
1023
  lusid/models/resource_list_of_relation.py,sha256=hg7E3q9vFMzO8TXfTdEEILsOgmQmIUvepTsk5Pps4k0,4286
1023
1024
  lusid/models/resource_list_of_relationship.py,sha256=Vzwor1HXgkSoYvdluGxMVtcwZ0N0juHcL2gmMGE7nfI,4334
1025
+ lusid/models/resource_list_of_returns_entity.py,sha256=p6MqfnwjzfwcnOH4lFz6Y1yM18ie7-qjZdIiItnnQK8,4347
1024
1026
  lusid/models/resource_list_of_scope_definition.py,sha256=IBN8sBPOaXmPwCUwG72KC2qbs_9NisoL_Il5Jv0G8RM,4371
1025
1027
  lusid/models/resource_list_of_side_definition.py,sha256=TNnI6n2JzDapvDdVKxExDOA0TGqiaSOEZAsAdu3JYPg,4359
1026
1028
  lusid/models/resource_list_of_string.py,sha256=a21qwmXtmefzjX2Ij_WFgyX_9v23zrN_pYGkMmjPCfw,3843
@@ -1044,6 +1046,7 @@ lusid/models/result_value_int.py,sha256=JovKD5QZVWYY4DUFm1WDYBf8R5vhDKz2dpuA7pRm
1044
1046
  lusid/models/result_value_string.py,sha256=REGhrjIoC8OTlX-qEZRqljFtiaMkFileyHcOcTBJ0vg,7155
1045
1047
  lusid/models/result_value_type.py,sha256=CrOf0KEyx1VJIkAAyXjoGm8rcpSx26Gl_b5MgzZGqHU,1216
1046
1048
  lusid/models/return_zero_pv_options.py,sha256=yzxjpinsuE8q4rJX8ivybtkMAWbcFkXPClwKuPjJzH8,2392
1049
+ lusid/models/returns_entity.py,sha256=sntUBli75or3EaDBqZSeRRNFMvliBlCY0tIwusJ1TtU,5219
1047
1050
  lusid/models/reverse_stock_split_event.py,sha256=0Osps4IMec4ToYV18YqF3M6Z6qPs1D9yr9sHQ9yvpTQ,13331
1048
1051
  lusid/models/rollover_constituent.py,sha256=054MY77stl4-lM20PpY5YY_SEP_YAeZzjquZZSwhxkg,2723
1049
1052
  lusid/models/rounding_configuration.py,sha256=omjrizntdNApbrOAlN-a1b3n8Y4tOwY_PRUqyZtdFuA,2529
@@ -1111,6 +1114,8 @@ lusid/models/structured_result_data_id.py,sha256=Exm8dnNZj0ji53RG2aFdcQMWTta33wg
1111
1114
  lusid/models/sub_holding_key_value_equals.py,sha256=t0vqmATxi-Pm3TiStfQwPK6oFUyIbc-rOMXeZJsZ8QQ,6736
1112
1115
  lusid/models/swap_cash_flow_event.py,sha256=2aNGEod_e3VAnU09xBQ-RV3ipdLMCr1OBU0TL9r6WIs,11208
1113
1116
  lusid/models/swap_principal_event.py,sha256=Cifn6uwYfRnUHi7JNEkS5Qx1ck6cg44L9l06c7AtE5Q,11213
1117
+ lusid/models/sweep_blocks_request.py,sha256=3xBTEDM8c5Y4Xc1pVHHH8Smw6Zw8tjCrXz10eQi_7Sg,3192
1118
+ lusid/models/sweep_blocks_response.py,sha256=tD6LPHxd4uEz7-tgNrCM2GAvhV-j6v805syfcutNPN0,3968
1114
1119
  lusid/models/target_tax_lot.py,sha256=D1VoHujwoqHuyAdm-6NcbMNCP5l0chryV81Sgajum_M,6126
1115
1120
  lusid/models/target_tax_lot_request.py,sha256=NOmdFEonZw6iy0SyaG7PJEpMXYN4aGEOBbnszc4bajg,6120
1116
1121
  lusid/models/tax_rule.py,sha256=BPy4nqM_FwlPYtbfF_ojQapUq4qzXg3X91kyDQy8jj4,3127
@@ -1306,6 +1311,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
1306
1311
  lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
1307
1312
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1308
1313
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1309
- lusid_sdk-2.1.788.dist-info/METADATA,sha256=uJ2bJF5_-ow_eFor3BWK_NOViffn0e3Faeua1_TfxVs,218632
1310
- lusid_sdk-2.1.788.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1311
- lusid_sdk-2.1.788.dist-info/RECORD,,
1314
+ lusid_sdk-2.1.790.dist-info/METADATA,sha256=88tqJ-_yZ02iOK7YIpEPSS3R5z075G0q0hakl9Ib7PM,219895
1315
+ lusid_sdk-2.1.790.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1316
+ lusid_sdk-2.1.790.dist-info/RECORD,,