lusid-sdk 2.0.474__py3-none-any.whl → 2.0.479__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.
Potentially problematic release.
This version of lusid-sdk might be problematic. Click here for more details.
- lusid/configuration.py +1 -1
- lusid/models/order_graph_block_order_synopsis.py +9 -2
- lusid/models/order_graph_block_placement_synopsis.py +9 -2
- {lusid_sdk-2.0.474.dist-info → lusid_sdk-2.0.479.dist-info}/METADATA +3 -3
- {lusid_sdk-2.0.474.dist-info → lusid_sdk-2.0.479.dist-info}/RECORD +6 -6
- {lusid_sdk-2.0.474.dist-info → lusid_sdk-2.0.479.dist-info}/WHEEL +0 -0
lusid/configuration.py
CHANGED
|
@@ -373,7 +373,7 @@ class Configuration:
|
|
|
373
373
|
return "Python SDK Debug Report:\n"\
|
|
374
374
|
"OS: {env}\n"\
|
|
375
375
|
"Python Version: {pyversion}\n"\
|
|
376
|
-
"Version of the API: 0.11.
|
|
376
|
+
"Version of the API: 0.11.6426\n"\
|
|
377
377
|
"SDK Package Version: {package_version}".\
|
|
378
378
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
|
379
379
|
|
|
@@ -18,7 +18,7 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import Any, Dict, List, Union
|
|
21
|
+
from typing import Any, Dict, List, Optional, Union
|
|
22
22
|
from pydantic import BaseModel, Field, StrictFloat, StrictInt, conlist
|
|
23
23
|
from lusid.models.order_graph_block_order_detail import OrderGraphBlockOrderDetail
|
|
24
24
|
|
|
@@ -27,8 +27,9 @@ class OrderGraphBlockOrderSynopsis(BaseModel):
|
|
|
27
27
|
OrderGraphBlockOrderSynopsis
|
|
28
28
|
"""
|
|
29
29
|
quantity: Union[StrictFloat, StrictInt] = Field(..., description="Total number of units ordered.")
|
|
30
|
+
quantity_by_state: Optional[Dict[str, Union[StrictFloat, StrictInt]]] = Field(None, alias="quantityByState", description="Total number of units placed.")
|
|
30
31
|
details: conlist(OrderGraphBlockOrderDetail) = Field(..., description="Identifiers and other info for each order in this block.")
|
|
31
|
-
__properties = ["quantity", "details"]
|
|
32
|
+
__properties = ["quantity", "quantityByState", "details"]
|
|
32
33
|
|
|
33
34
|
class Config:
|
|
34
35
|
"""Pydantic configuration"""
|
|
@@ -61,6 +62,11 @@ class OrderGraphBlockOrderSynopsis(BaseModel):
|
|
|
61
62
|
if _item:
|
|
62
63
|
_items.append(_item.to_dict())
|
|
63
64
|
_dict['details'] = _items
|
|
65
|
+
# set to None if quantity_by_state (nullable) is None
|
|
66
|
+
# and __fields_set__ contains the field
|
|
67
|
+
if self.quantity_by_state is None and "quantity_by_state" in self.__fields_set__:
|
|
68
|
+
_dict['quantityByState'] = None
|
|
69
|
+
|
|
64
70
|
return _dict
|
|
65
71
|
|
|
66
72
|
@classmethod
|
|
@@ -74,6 +80,7 @@ class OrderGraphBlockOrderSynopsis(BaseModel):
|
|
|
74
80
|
|
|
75
81
|
_obj = OrderGraphBlockOrderSynopsis.parse_obj({
|
|
76
82
|
"quantity": obj.get("quantity"),
|
|
83
|
+
"quantity_by_state": obj.get("quantityByState"),
|
|
77
84
|
"details": [OrderGraphBlockOrderDetail.from_dict(_item) for _item in obj.get("details")] if obj.get("details") is not None else None
|
|
78
85
|
})
|
|
79
86
|
return _obj
|
|
@@ -18,7 +18,7 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import Any, Dict, List, Union
|
|
21
|
+
from typing import Any, Dict, List, Optional, Union
|
|
22
22
|
from pydantic import BaseModel, Field, StrictFloat, StrictInt, conlist
|
|
23
23
|
from lusid.models.order_graph_block_placement_detail import OrderGraphBlockPlacementDetail
|
|
24
24
|
|
|
@@ -27,8 +27,9 @@ class OrderGraphBlockPlacementSynopsis(BaseModel):
|
|
|
27
27
|
OrderGraphBlockPlacementSynopsis
|
|
28
28
|
"""
|
|
29
29
|
quantity: Union[StrictFloat, StrictInt] = Field(..., description="Total number of units placed.")
|
|
30
|
+
quantity_by_state: Optional[Dict[str, Union[StrictFloat, StrictInt]]] = Field(None, alias="quantityByState", description="Total number of units placed.")
|
|
30
31
|
details: conlist(OrderGraphBlockPlacementDetail) = Field(..., description="Identifiers for each placement in this block.")
|
|
31
|
-
__properties = ["quantity", "details"]
|
|
32
|
+
__properties = ["quantity", "quantityByState", "details"]
|
|
32
33
|
|
|
33
34
|
class Config:
|
|
34
35
|
"""Pydantic configuration"""
|
|
@@ -61,6 +62,11 @@ class OrderGraphBlockPlacementSynopsis(BaseModel):
|
|
|
61
62
|
if _item:
|
|
62
63
|
_items.append(_item.to_dict())
|
|
63
64
|
_dict['details'] = _items
|
|
65
|
+
# set to None if quantity_by_state (nullable) is None
|
|
66
|
+
# and __fields_set__ contains the field
|
|
67
|
+
if self.quantity_by_state is None and "quantity_by_state" in self.__fields_set__:
|
|
68
|
+
_dict['quantityByState'] = None
|
|
69
|
+
|
|
64
70
|
return _dict
|
|
65
71
|
|
|
66
72
|
@classmethod
|
|
@@ -74,6 +80,7 @@ class OrderGraphBlockPlacementSynopsis(BaseModel):
|
|
|
74
80
|
|
|
75
81
|
_obj = OrderGraphBlockPlacementSynopsis.parse_obj({
|
|
76
82
|
"quantity": obj.get("quantity"),
|
|
83
|
+
"quantity_by_state": obj.get("quantityByState"),
|
|
77
84
|
"details": [OrderGraphBlockPlacementDetail.from_dict(_item) for _item in obj.get("details")] if obj.get("details") is not None else None
|
|
78
85
|
})
|
|
79
86
|
return _obj
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lusid-sdk
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.479
|
|
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.
|
|
33
|
-
- Package version: 2.0.
|
|
32
|
+
- API version: 0.11.6426
|
|
33
|
+
- Package version: 2.0.479
|
|
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
|
|
|
@@ -64,7 +64,7 @@ lusid/api/transaction_portfolios_api.py,sha256=Q-RvuNmYL4drz4LeytNHRCmvrWwxfnPnT
|
|
|
64
64
|
lusid/api/translation_api.py,sha256=8_YL07_CYCI-FV4jMdiq7zlsDXqvkPMFQPyT6NL4jvU,20086
|
|
65
65
|
lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
|
|
66
66
|
lusid/api_response.py,sha256=uCehWdXXDnAO2HAHGKe0SgpQ_mJiGDbcu-BHDF3n_IM,852
|
|
67
|
-
lusid/configuration.py,sha256=
|
|
67
|
+
lusid/configuration.py,sha256=cAaU2GLz7kG-A3ujkfretfiv4Bc9eLtfCDTIPDxi03k,14404
|
|
68
68
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
|
69
69
|
lusid/extensions/__init__.py,sha256=DeUuQP7yTcklJH7LT-bw9wQhKEggcs1KwQbPbFcOlhw,560
|
|
70
70
|
lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
|
|
@@ -546,9 +546,9 @@ lusid/models/order_graph_block_allocation_synopsis.py,sha256=9vnnwzlRwXb4-w7FxVn
|
|
|
546
546
|
lusid/models/order_graph_block_execution_detail.py,sha256=J6QWvSUB54f2vcKELfWGWTxp27rG_bUdOrDtHUq4QI8,2167
|
|
547
547
|
lusid/models/order_graph_block_execution_synopsis.py,sha256=RkxRE8hq_iOp6m3fEPbHv8xk6owSpIBBgzwsBK1iAZA,2749
|
|
548
548
|
lusid/models/order_graph_block_order_detail.py,sha256=xEKz8Wnzwl0YxZc7v-RN9aJnsZDTa1pP1cMzsx36zEw,4687
|
|
549
|
-
lusid/models/order_graph_block_order_synopsis.py,sha256=
|
|
549
|
+
lusid/models/order_graph_block_order_synopsis.py,sha256=RCUzGZzPp1muOQKNbzDWYxENXBfYpqBaHIbqVp3YFfw,3204
|
|
550
550
|
lusid/models/order_graph_block_placement_detail.py,sha256=jDNyAsJiA6B6Zm96WXrTeRdLyd0qovrWPLszC9fin_U,2167
|
|
551
|
-
lusid/models/order_graph_block_placement_synopsis.py,sha256=
|
|
551
|
+
lusid/models/order_graph_block_placement_synopsis.py,sha256=HkDGVaSrqfgloVrEYYeFfOdUjNuDxyhXITDtYp33dtc,3240
|
|
552
552
|
lusid/models/order_graph_placement.py,sha256=x5rnnGGebugWaKYZGRnkf1ql4c0EBt_iGbynoD0hHqs,5287
|
|
553
553
|
lusid/models/order_graph_placement_allocation_detail.py,sha256=I6kDWOsmKzJtxtq7dugmFpqtS1eJa8P3tStd4iY-yeM,2207
|
|
554
554
|
lusid/models/order_graph_placement_allocation_synopsis.py,sha256=EQFpRa0-3ThjNUEWM4D_Xz8Qhu9eQY8xQYl2h1GIqpo,2815
|
|
@@ -1003,6 +1003,6 @@ lusid/models/weighted_instruments.py,sha256=M2Mr7KTAcMS40g309xatBHDhvYk3g61yigx0
|
|
|
1003
1003
|
lusid/models/yield_curve_data.py,sha256=i2MHEJe9kdTTgxQFti2a6BAU7ikE0wTPXsS_sMJhrDk,6327
|
|
1004
1004
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1005
1005
|
lusid/rest.py,sha256=gHQ76psf1vzmBJI14ZGVvb3f_Urp0zBBo3R5u3-kNIM,10032
|
|
1006
|
-
lusid_sdk-2.0.
|
|
1007
|
-
lusid_sdk-2.0.
|
|
1008
|
-
lusid_sdk-2.0.
|
|
1006
|
+
lusid_sdk-2.0.479.dist-info/METADATA,sha256=f7s6WrpHNTzvk1O5cRPhIg7sVaq9GqUaSDQS1OHhCu0,176601
|
|
1007
|
+
lusid_sdk-2.0.479.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
1008
|
+
lusid_sdk-2.0.479.dist-info/RECORD,,
|
|
File without changes
|