lusid-sdk 2.1.705__py3-none-any.whl → 2.1.706__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/configuration.py +1 -1
- lusid/models/block_and_orders_request.py +7 -2
- lusid/models/blocked_order_request.py +9 -2
- {lusid_sdk-2.1.705.dist-info → lusid_sdk-2.1.706.dist-info}/METADATA +1 -1
- {lusid_sdk-2.1.705.dist-info → lusid_sdk-2.1.706.dist-info}/RECORD +6 -6
- {lusid_sdk-2.1.705.dist-info → lusid_sdk-2.1.706.dist-info}/WHEEL +0 -0
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.7408\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
@@ -19,7 +19,7 @@ import json
|
|
19
19
|
|
20
20
|
from datetime import datetime
|
21
21
|
from typing import Any, Dict, List, Optional
|
22
|
-
from pydantic.v1 import BaseModel, Field, StrictStr, conlist
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr, conlist
|
23
23
|
from lusid.models.blocked_order_request import BlockedOrderRequest
|
24
24
|
from lusid.models.currency_and_amount import CurrencyAndAmount
|
25
25
|
from lusid.models.perpetual_property import PerpetualProperty
|
@@ -33,7 +33,7 @@ class BlockAndOrdersRequest(BaseModel):
|
|
33
33
|
orders: conlist(BlockedOrderRequest) = Field(..., description="An order which belongs to a block. Fields common to both entities (such as instrument) should be derived from the block.")
|
34
34
|
block_properties: Optional[Dict[str, PerpetualProperty]] = Field(None, alias="blockProperties", description="Client-defined properties associated with this block.")
|
35
35
|
instrument_identifiers: Dict[str, StrictStr] = Field(..., alias="instrumentIdentifiers", description="The instrument ordered.")
|
36
|
-
side:
|
36
|
+
side: Optional[StrictStr] = Field(None, description="The client's representation of the block's side (buy, sell, short, etc). BlockedOrders in the request which do not specify a side will have their side populated with this value.")
|
37
37
|
type: Optional[StrictStr] = Field(None, description="The block order's type (examples: Limit, Market, ...)")
|
38
38
|
time_in_force: Optional[StrictStr] = Field(None, alias="timeInForce", description="The block orders' time in force (examples: Day, GoodTilCancel, ...)")
|
39
39
|
var_date: Optional[datetime] = Field(None, alias="date", description="The date on which the block was made")
|
@@ -101,6 +101,11 @@ class BlockAndOrdersRequest(BaseModel):
|
|
101
101
|
if self.block_properties is None and "block_properties" in self.__fields_set__:
|
102
102
|
_dict['blockProperties'] = None
|
103
103
|
|
104
|
+
# set to None if side (nullable) is None
|
105
|
+
# and __fields_set__ contains the field
|
106
|
+
if self.side is None and "side" in self.__fields_set__:
|
107
|
+
_dict['side'] = None
|
108
|
+
|
104
109
|
# set to None if type (nullable) is None
|
105
110
|
# and __fields_set__ contains the field
|
106
111
|
if self.type is None and "type" in self.__fields_set__:
|
@@ -38,7 +38,8 @@ class BlockedOrderRequest(BaseModel):
|
|
38
38
|
price: Optional[CurrencyAndAmount] = None
|
39
39
|
order_instruction: Optional[ResourceId] = Field(None, alias="orderInstruction")
|
40
40
|
package: Optional[ResourceId] = None
|
41
|
-
|
41
|
+
side: Optional[StrictStr] = Field(None, description="The client's representation of the order's side (buy, sell, short, etc)")
|
42
|
+
__properties = ["properties", "quantity", "orderBookId", "portfolioId", "id", "state", "date", "price", "orderInstruction", "package", "side"]
|
42
43
|
|
43
44
|
class Config:
|
44
45
|
"""Pydantic configuration"""
|
@@ -107,6 +108,11 @@ class BlockedOrderRequest(BaseModel):
|
|
107
108
|
if self.state is None and "state" in self.__fields_set__:
|
108
109
|
_dict['state'] = None
|
109
110
|
|
111
|
+
# set to None if side (nullable) is None
|
112
|
+
# and __fields_set__ contains the field
|
113
|
+
if self.side is None and "side" in self.__fields_set__:
|
114
|
+
_dict['side'] = None
|
115
|
+
|
110
116
|
return _dict
|
111
117
|
|
112
118
|
@classmethod
|
@@ -133,6 +139,7 @@ class BlockedOrderRequest(BaseModel):
|
|
133
139
|
"var_date": obj.get("date"),
|
134
140
|
"price": CurrencyAndAmount.from_dict(obj.get("price")) if obj.get("price") is not None else None,
|
135
141
|
"order_instruction": ResourceId.from_dict(obj.get("orderInstruction")) if obj.get("orderInstruction") is not None else None,
|
136
|
-
"package": ResourceId.from_dict(obj.get("package")) if obj.get("package") is not None else None
|
142
|
+
"package": ResourceId.from_dict(obj.get("package")) if obj.get("package") is not None else None,
|
143
|
+
"side": obj.get("side")
|
137
144
|
})
|
138
145
|
return _obj
|
@@ -74,7 +74,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
|
|
74
74
|
lusid/api/workspace_api.py,sha256=Yox1q7TDY-_O3HF-N8g5kGuNgp4unWvlSZmRZ6MNZO0,196701
|
75
75
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
76
76
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
77
|
-
lusid/configuration.py,sha256=
|
77
|
+
lusid/configuration.py,sha256=BBXyfb3uMHP4F3FmOwwhOgO4bJC7gnDYg24fi71Uun4,17972
|
78
78
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
79
79
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
80
80
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -170,10 +170,10 @@ lusid/models/block.py,sha256=7ypXBcYjhhDbGqpY0a1FqHq6Z6vEa-O0ds7BejUHn9Y,7371
|
|
170
170
|
lusid/models/block_and_order_id_request.py,sha256=-am87ZmIcso-xg9uKNLHwknyjpLBoJaHJWj0O-ZWabk,2845
|
171
171
|
lusid/models/block_and_orders.py,sha256=fFqGa3l9QUappodAW_azK4TUUoEB4f7spxYfutmpUwY,2786
|
172
172
|
lusid/models/block_and_orders_create_request.py,sha256=k_CVTgJvyj2M3jBTDA7bP8MglTD_-Akv2dVUBtqA3GU,2726
|
173
|
-
lusid/models/block_and_orders_request.py,sha256=
|
173
|
+
lusid/models/block_and_orders_request.py,sha256=cdf0nRjD0_rLIJrrZtP7-dk-Bd4gw2EDVF9zyEpn2LQ,6812
|
174
174
|
lusid/models/block_request.py,sha256=sW9F_iB6nIdVyImuC_nif3lRSAwmY-XyIqGYBS6O9f0,6010
|
175
175
|
lusid/models/block_set_request.py,sha256=67DTahQUpmVRGQY2gx94r0sgauEyvVQxSRrQJMJcIFk,2833
|
176
|
-
lusid/models/blocked_order_request.py,sha256=
|
176
|
+
lusid/models/blocked_order_request.py,sha256=GI8xLKjhswqriiOpOO4wgxJWmG-FH3EqUyQk_nPFJ4Q,6423
|
177
177
|
lusid/models/bond.py,sha256=R2rkqxJqx303f54lBSCLZKCo2BAE0oSX8tyis-i3Th4,13274
|
178
178
|
lusid/models/bond_conversion_entry.py,sha256=wlRjUsWBhPu_j5iZZzulDwPLF-o4I6SSTbd3XNUBs-8,3762
|
179
179
|
lusid/models/bond_conversion_schedule.py,sha256=pCTDyo1hbEC-CAroA_7TOmbN2zrcVhkcUDkvpRzhGzk,7871
|
@@ -1274,6 +1274,6 @@ lusid/models/workspace_update_request.py,sha256=5N7j21uF9XV75Sl3oJbsSOKT5PrQEx3y
|
|
1274
1274
|
lusid/models/yield_curve_data.py,sha256=vtOzY4t2lgHJUWcna9dEKnuZ_tinolyb8IAFPB23DZ0,6543
|
1275
1275
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1276
1276
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1277
|
-
lusid_sdk-2.1.
|
1278
|
-
lusid_sdk-2.1.
|
1279
|
-
lusid_sdk-2.1.
|
1277
|
+
lusid_sdk-2.1.706.dist-info/METADATA,sha256=bmgWVVl-RUaDZGESmgHpZE3bhb2LIS-93ia8nyxNn28,219380
|
1278
|
+
lusid_sdk-2.1.706.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1279
|
+
lusid_sdk-2.1.706.dist-info/RECORD,,
|
File without changes
|