lusid-sdk 2.1.20__py3-none-any.whl → 2.1.21__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 CHANGED
@@ -564,6 +564,8 @@ from lusid.models.order_graph_block_order_detail import OrderGraphBlockOrderDeta
564
564
  from lusid.models.order_graph_block_order_synopsis import OrderGraphBlockOrderSynopsis
565
565
  from lusid.models.order_graph_block_placement_detail import OrderGraphBlockPlacementDetail
566
566
  from lusid.models.order_graph_block_placement_synopsis import OrderGraphBlockPlacementSynopsis
567
+ from lusid.models.order_graph_block_transaction_detail import OrderGraphBlockTransactionDetail
568
+ from lusid.models.order_graph_block_transaction_synopsis import OrderGraphBlockTransactionSynopsis
567
569
  from lusid.models.order_graph_placement import OrderGraphPlacement
568
570
  from lusid.models.order_graph_placement_allocation_detail import OrderGraphPlacementAllocationDetail
569
571
  from lusid.models.order_graph_placement_allocation_synopsis import OrderGraphPlacementAllocationSynopsis
@@ -1576,6 +1578,8 @@ __all__ = [
1576
1578
  "OrderGraphBlockOrderSynopsis",
1577
1579
  "OrderGraphBlockPlacementDetail",
1578
1580
  "OrderGraphBlockPlacementSynopsis",
1581
+ "OrderGraphBlockTransactionDetail",
1582
+ "OrderGraphBlockTransactionSynopsis",
1579
1583
  "OrderGraphPlacement",
1580
1584
  "OrderGraphPlacementAllocationDetail",
1581
1585
  "OrderGraphPlacementAllocationSynopsis",
lusid/configuration.py CHANGED
@@ -373,7 +373,7 @@ class Configuration:
373
373
  return "Python SDK Debug Report:\n"\
374
374
  "OS: {env}\n"\
375
375
  "Python Version: {pyversion}\n"\
376
- "Version of the API: 0.11.6455\n"\
376
+ "Version of the API: 0.11.6456\n"\
377
377
  "SDK Package Version: {package_version}".\
378
378
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
379
379
 
lusid/models/__init__.py CHANGED
@@ -488,6 +488,8 @@ from lusid.models.order_graph_block_order_detail import OrderGraphBlockOrderDeta
488
488
  from lusid.models.order_graph_block_order_synopsis import OrderGraphBlockOrderSynopsis
489
489
  from lusid.models.order_graph_block_placement_detail import OrderGraphBlockPlacementDetail
490
490
  from lusid.models.order_graph_block_placement_synopsis import OrderGraphBlockPlacementSynopsis
491
+ from lusid.models.order_graph_block_transaction_detail import OrderGraphBlockTransactionDetail
492
+ from lusid.models.order_graph_block_transaction_synopsis import OrderGraphBlockTransactionSynopsis
491
493
  from lusid.models.order_graph_placement import OrderGraphPlacement
492
494
  from lusid.models.order_graph_placement_allocation_detail import OrderGraphPlacementAllocationDetail
493
495
  from lusid.models.order_graph_placement_allocation_synopsis import OrderGraphPlacementAllocationSynopsis
@@ -1426,6 +1428,8 @@ __all__ = [
1426
1428
  "OrderGraphBlockOrderSynopsis",
1427
1429
  "OrderGraphBlockPlacementDetail",
1428
1430
  "OrderGraphBlockPlacementSynopsis",
1431
+ "OrderGraphBlockTransactionDetail",
1432
+ "OrderGraphBlockTransactionSynopsis",
1429
1433
  "OrderGraphPlacement",
1430
1434
  "OrderGraphPlacementAllocationDetail",
1431
1435
  "OrderGraphPlacementAllocationSynopsis",
@@ -25,6 +25,7 @@ from lusid.models.order_graph_block_allocation_synopsis import OrderGraphBlockAl
25
25
  from lusid.models.order_graph_block_execution_synopsis import OrderGraphBlockExecutionSynopsis
26
26
  from lusid.models.order_graph_block_order_synopsis import OrderGraphBlockOrderSynopsis
27
27
  from lusid.models.order_graph_block_placement_synopsis import OrderGraphBlockPlacementSynopsis
28
+ from lusid.models.order_graph_block_transaction_synopsis import OrderGraphBlockTransactionSynopsis
28
29
 
29
30
  class OrderGraphBlock(BaseModel):
30
31
  """
@@ -35,10 +36,11 @@ class OrderGraphBlock(BaseModel):
35
36
  placed: OrderGraphBlockPlacementSynopsis = Field(...)
36
37
  executed: OrderGraphBlockExecutionSynopsis = Field(...)
37
38
  allocated: OrderGraphBlockAllocationSynopsis = Field(...)
39
+ booked: OrderGraphBlockTransactionSynopsis = Field(...)
38
40
  derived_state: constr(strict=True, min_length=1) = Field(..., alias="derivedState", description="A simple description of the overall state of a block.")
39
41
  derived_compliance_state: constr(strict=True, min_length=1) = Field(..., alias="derivedComplianceState", description="The overall compliance state of a block, derived from the block's orders. Possible values are 'Pending', 'Failed', 'Manually approved' and 'Passed'.")
40
42
  derived_approval_state: constr(strict=True, min_length=1) = Field(..., alias="derivedApprovalState", description="The overall approval state of a block, derived from approval of the block's orders. Possible values are 'Pending', 'Approved' and 'Rejected'.")
41
- __properties = ["block", "ordered", "placed", "executed", "allocated", "derivedState", "derivedComplianceState", "derivedApprovalState"]
43
+ __properties = ["block", "ordered", "placed", "executed", "allocated", "booked", "derivedState", "derivedComplianceState", "derivedApprovalState"]
42
44
 
43
45
  class Config:
44
46
  """Pydantic configuration"""
@@ -79,6 +81,9 @@ class OrderGraphBlock(BaseModel):
79
81
  # override the default output from pydantic by calling `to_dict()` of allocated
80
82
  if self.allocated:
81
83
  _dict['allocated'] = self.allocated.to_dict()
84
+ # override the default output from pydantic by calling `to_dict()` of booked
85
+ if self.booked:
86
+ _dict['booked'] = self.booked.to_dict()
82
87
  return _dict
83
88
 
84
89
  @classmethod
@@ -96,6 +101,7 @@ class OrderGraphBlock(BaseModel):
96
101
  "placed": OrderGraphBlockPlacementSynopsis.from_dict(obj.get("placed")) if obj.get("placed") is not None else None,
97
102
  "executed": OrderGraphBlockExecutionSynopsis.from_dict(obj.get("executed")) if obj.get("executed") is not None else None,
98
103
  "allocated": OrderGraphBlockAllocationSynopsis.from_dict(obj.get("allocated")) if obj.get("allocated") is not None else None,
104
+ "booked": OrderGraphBlockTransactionSynopsis.from_dict(obj.get("booked")) if obj.get("booked") is not None else None,
99
105
  "derived_state": obj.get("derivedState"),
100
106
  "derived_compliance_state": obj.get("derivedComplianceState"),
101
107
  "derived_approval_state": obj.get("derivedApprovalState")
@@ -0,0 +1,69 @@
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, constr
23
+
24
+ class OrderGraphBlockTransactionDetail(BaseModel):
25
+ """
26
+ OrderGraphBlockTransactionDetail
27
+ """
28
+ id: constr(strict=True, min_length=1) = Field(..., description="The id of this transaction.")
29
+ __properties = ["id"]
30
+
31
+ class Config:
32
+ """Pydantic configuration"""
33
+ allow_population_by_field_name = True
34
+ validate_assignment = True
35
+
36
+ def to_str(self) -> str:
37
+ """Returns the string representation of the model using alias"""
38
+ return pprint.pformat(self.dict(by_alias=True))
39
+
40
+ def to_json(self) -> str:
41
+ """Returns the JSON representation of the model using alias"""
42
+ return json.dumps(self.to_dict())
43
+
44
+ @classmethod
45
+ def from_json(cls, json_str: str) -> OrderGraphBlockTransactionDetail:
46
+ """Create an instance of OrderGraphBlockTransactionDetail from a JSON string"""
47
+ return cls.from_dict(json.loads(json_str))
48
+
49
+ def to_dict(self):
50
+ """Returns the dictionary representation of the model using alias"""
51
+ _dict = self.dict(by_alias=True,
52
+ exclude={
53
+ },
54
+ exclude_none=True)
55
+ return _dict
56
+
57
+ @classmethod
58
+ def from_dict(cls, obj: dict) -> OrderGraphBlockTransactionDetail:
59
+ """Create an instance of OrderGraphBlockTransactionDetail from a dict"""
60
+ if obj is None:
61
+ return None
62
+
63
+ if not isinstance(obj, dict):
64
+ return OrderGraphBlockTransactionDetail.parse_obj(obj)
65
+
66
+ _obj = OrderGraphBlockTransactionDetail.parse_obj({
67
+ "id": obj.get("id")
68
+ })
69
+ return _obj
@@ -0,0 +1,79 @@
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, Union
22
+ from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt, conlist
23
+ from lusid.models.order_graph_block_transaction_detail import OrderGraphBlockTransactionDetail
24
+
25
+ class OrderGraphBlockTransactionSynopsis(BaseModel):
26
+ """
27
+ OrderGraphBlockTransactionSynopsis
28
+ """
29
+ quantity: Union[StrictFloat, StrictInt] = Field(..., description="Total number of units booked.")
30
+ details: conlist(OrderGraphBlockTransactionDetail) = Field(..., description="Identifiers for each transaction in this block.")
31
+ __properties = ["quantity", "details"]
32
+
33
+ class Config:
34
+ """Pydantic configuration"""
35
+ allow_population_by_field_name = True
36
+ validate_assignment = True
37
+
38
+ def to_str(self) -> str:
39
+ """Returns the string representation of the model using alias"""
40
+ return pprint.pformat(self.dict(by_alias=True))
41
+
42
+ def to_json(self) -> str:
43
+ """Returns the JSON representation of the model using alias"""
44
+ return json.dumps(self.to_dict())
45
+
46
+ @classmethod
47
+ def from_json(cls, json_str: str) -> OrderGraphBlockTransactionSynopsis:
48
+ """Create an instance of OrderGraphBlockTransactionSynopsis from a JSON string"""
49
+ return cls.from_dict(json.loads(json_str))
50
+
51
+ def to_dict(self):
52
+ """Returns the dictionary representation of the model using alias"""
53
+ _dict = self.dict(by_alias=True,
54
+ exclude={
55
+ },
56
+ exclude_none=True)
57
+ # override the default output from pydantic by calling `to_dict()` of each item in details (list)
58
+ _items = []
59
+ if self.details:
60
+ for _item in self.details:
61
+ if _item:
62
+ _items.append(_item.to_dict())
63
+ _dict['details'] = _items
64
+ return _dict
65
+
66
+ @classmethod
67
+ def from_dict(cls, obj: dict) -> OrderGraphBlockTransactionSynopsis:
68
+ """Create an instance of OrderGraphBlockTransactionSynopsis from a dict"""
69
+ if obj is None:
70
+ return None
71
+
72
+ if not isinstance(obj, dict):
73
+ return OrderGraphBlockTransactionSynopsis.parse_obj(obj)
74
+
75
+ _obj = OrderGraphBlockTransactionSynopsis.parse_obj({
76
+ "quantity": obj.get("quantity"),
77
+ "details": [OrderGraphBlockTransactionDetail.from_dict(_item) for _item in obj.get("details")] if obj.get("details") is not None else None
78
+ })
79
+ return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.20
3
+ Version: 2.1.21
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -29,8 +29,8 @@ FINBOURNE Technology
29
29
 
30
30
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
31
31
 
32
- - API version: 0.11.6455
33
- - Package version: 2.1.20
32
+ - API version: 0.11.6456
33
+ - Package version: 2.1.21
34
34
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
35
35
  For more information, please visit [https://www.finbourne.com](https://www.finbourne.com)
36
36
 
@@ -1193,6 +1193,8 @@ Class | Method | HTTP request | Description
1193
1193
  - [OrderGraphBlockOrderSynopsis](docs/OrderGraphBlockOrderSynopsis.md)
1194
1194
  - [OrderGraphBlockPlacementDetail](docs/OrderGraphBlockPlacementDetail.md)
1195
1195
  - [OrderGraphBlockPlacementSynopsis](docs/OrderGraphBlockPlacementSynopsis.md)
1196
+ - [OrderGraphBlockTransactionDetail](docs/OrderGraphBlockTransactionDetail.md)
1197
+ - [OrderGraphBlockTransactionSynopsis](docs/OrderGraphBlockTransactionSynopsis.md)
1196
1198
  - [OrderGraphPlacement](docs/OrderGraphPlacement.md)
1197
1199
  - [OrderGraphPlacementAllocationDetail](docs/OrderGraphPlacementAllocationDetail.md)
1198
1200
  - [OrderGraphPlacementAllocationSynopsis](docs/OrderGraphPlacementAllocationSynopsis.md)
@@ -1,4 +1,4 @@
1
- lusid/__init__.py,sha256=RaXO0eIHbxTXnR46suHGImZ0T7xevjwsubtkBpmkYj0,103809
1
+ lusid/__init__.py,sha256=KWP9OwyChh6No-XHtgPRE_RSHl4iliVoLGjcf9nHagU,104085
2
2
  lusid/api/__init__.py,sha256=jdU3SmYCzfXVHFVThKX_tCGad2-l4-5Qql1cN864mCs,5388
3
3
  lusid/api/abor_api.py,sha256=gEqLNum0O0fIHTMPG1E9hxroX6g3vBzqRwbRY7oHGNU,149942
4
4
  lusid/api/abor_configuration_api.py,sha256=G2bKPtMYOZ2GhUrg-nPJtCa9XIZdZYK7oafcbJWDMP8,64033
@@ -65,7 +65,7 @@ lusid/api/transaction_portfolios_api.py,sha256=q6AoYasxV3LQDossmM2BdJSo3arh526yU
65
65
  lusid/api/translation_api.py,sha256=xTAaKEW96JTDIZBXCjxSguCa7Gz4oVd5jdObUE2egwo,20092
66
66
  lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
67
67
  lusid/api_response.py,sha256=uCehWdXXDnAO2HAHGKe0SgpQ_mJiGDbcu-BHDF3n_IM,852
68
- lusid/configuration.py,sha256=DGF1SN9SePuqPhbLHls72df0Se0Q5gn-jx2TRz_9i2Q,14404
68
+ lusid/configuration.py,sha256=aAg6T4HzGVkgJLVsaMCje6Tc78i2dCVt1fRUkK9HGaI,14404
69
69
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
70
70
  lusid/extensions/__init__.py,sha256=DeUuQP7yTcklJH7LT-bw9wQhKEggcs1KwQbPbFcOlhw,560
71
71
  lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
@@ -78,7 +78,7 @@ lusid/extensions/rest.py,sha256=tjVCu-cRrYcjp-ttB975vebPKtBNyBWaeoAdO3QXG2I,1269
78
78
  lusid/extensions/retry.py,sha256=orBJ1uF1iT1IncjWX1iGHVqsCgTh0SBe9rtiV_sPnwk,11564
79
79
  lusid/extensions/socket_keep_alive.py,sha256=NGlqsv-E25IjJOLGZhXZY6kUdx51nEF8qCQyVdzayRk,1653
80
80
  lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
81
- lusid/models/__init__.py,sha256=iPXdcQU9qIgOLQqhIhIu7VyAP5P4SClQViZGQaFl2KI,97464
81
+ lusid/models/__init__.py,sha256=gTyj9b5IK4uybrldf2iKhVH6lzSz50sI3KAojbbTxyc,97740
82
82
  lusid/models/a2_b_breakdown.py,sha256=Txi12EIQw3mH6NM-25QkOnHSQc3BVAWrP7yl9bZswSY,2947
83
83
  lusid/models/a2_b_category.py,sha256=k6NPAACi0CUjKyhdQac4obQSrPmp2PXD6lkAtCnyEFM,2725
84
84
  lusid/models/a2_b_data_record.py,sha256=zKGS2P4fzNpzdcGJiSIpkY4P3d_jAcawYfyuPCDeQgk,9737
@@ -544,7 +544,7 @@ lusid/models/optionality_schedule.py,sha256=8K9u_8rPLkkAr9HwGi62hsiVwH-4VeZQijfA
544
544
  lusid/models/order.py,sha256=-47dm6-P-pNB--pBRn6UxGCv7Az7ECBAgoykBdR3agM,9659
545
545
  lusid/models/order_by_spec.py,sha256=9RyLPdTBImMEcjhN2mq-BtMykndyNLZSpJ3xO_biaZk,2319
546
546
  lusid/models/order_flow_configuration.py,sha256=2Hkp1PwSVqdfawZq07A_nIoPqH-41yEhC_6aIvk3e98,1979
547
- lusid/models/order_graph_block.py,sha256=N-3oOvSD6rFOtTzhmcJywURELLgPM7Hym3qEd8pTTGg,4872
547
+ lusid/models/order_graph_block.py,sha256=NkPRWJSby5JizR6KHiS1v_UxyWDQCk1sXP4e-zz2-sI,5332
548
548
  lusid/models/order_graph_block_allocation_detail.py,sha256=L51Rl6sgG8R7jiwRtSYH6R2AT09M0SaIBB7jO8ykHdc,2178
549
549
  lusid/models/order_graph_block_allocation_synopsis.py,sha256=PTlPTHowUDna144w0yNEESTbK5cZ4BWLDL_jur42Nro,2766
550
550
  lusid/models/order_graph_block_execution_detail.py,sha256=IEEbVtfZFelskKbK8IbcLqw30jICItS8zhvy7rfeUmA,2170
@@ -553,6 +553,8 @@ lusid/models/order_graph_block_order_detail.py,sha256=Rp3p67T5cSPP4pef_tXl9A1sSa
553
553
  lusid/models/order_graph_block_order_synopsis.py,sha256=UYhXd7jsqdLKia6UclAKUYcarMQ0z9SSahWcoLu5zfs,3207
554
554
  lusid/models/order_graph_block_placement_detail.py,sha256=gcm_3SH6OhYyLUz6OILwZs6cKzq4JUm0kO8Ya-YV780,2170
555
555
  lusid/models/order_graph_block_placement_synopsis.py,sha256=K2BAK89iTOPXtk9Fj-AJ0KhZduFhw3eOyHDecB3lccg,3243
556
+ lusid/models/order_graph_block_transaction_detail.py,sha256=Jmz74ry-Me6f-i4iS05AHG5ZTuDASADGCbbRf92dbEQ,2006
557
+ lusid/models/order_graph_block_transaction_synopsis.py,sha256=kvIJnfb5EusKXGghXdPzLdJBOkrGZnxyebSpBqFoUO4,2776
556
558
  lusid/models/order_graph_placement.py,sha256=lGOmDSiQUKCf13mTdKZgYI6O1Wr1Dc9XZDNZBhSALlc,5290
557
559
  lusid/models/order_graph_placement_allocation_detail.py,sha256=wshAV5xdEoqUjS1fn0pAd0YlXWmqJ8y6KhoDrsM68nE,2210
558
560
  lusid/models/order_graph_placement_allocation_synopsis.py,sha256=RLt_tGCl9cTVuQySnR5rBbplLadVPrMpWlKH8OHoqN8,2818
@@ -1016,6 +1018,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
1016
1018
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1017
1019
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1018
1020
  lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
1019
- lusid_sdk-2.1.20.dist-info/METADATA,sha256=oX_GsWZn2tGAMmaNLhrrlwQg5r3GNak-DA8srcibbE4,179788
1020
- lusid_sdk-2.1.20.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1021
- lusid_sdk-2.1.20.dist-info/RECORD,,
1021
+ lusid_sdk-2.1.21.dist-info/METADATA,sha256=hTyL_avpDp1RkKDY9c0XHhVcPjfebXNEwRIAHzzC2oI,179952
1022
+ lusid_sdk-2.1.21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1023
+ lusid_sdk-2.1.21.dist-info/RECORD,,