lusid-sdk 2.1.704__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/api/abor_api.py CHANGED
@@ -2295,15 +2295,15 @@ class AborApi:
2295
2295
  _request_auth=_params.get('_request_auth'))
2296
2296
 
2297
2297
  @overload
2298
- async def re_open_periods(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor to be deleted.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor to be deleted. Together with the scope this uniquely identifies the Abor.")], re_open_period_diary_entry_request : Annotated[Optional[ReOpenPeriodDiaryEntryRequest], Field(description="The request body, detailing re open details")] = None, **kwargs) -> PeriodDiaryEntriesReopenedResponse: # noqa: E501
2298
+ async def re_open_periods(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope this uniquely identifies the Abor.")], re_open_period_diary_entry_request : Annotated[Optional[ReOpenPeriodDiaryEntryRequest], Field(description="The request body, containing details about the period to be re-opened.")] = None, **kwargs) -> PeriodDiaryEntriesReopenedResponse: # noqa: E501
2299
2299
  ...
2300
2300
 
2301
2301
  @overload
2302
- def re_open_periods(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor to be deleted.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor to be deleted. Together with the scope this uniquely identifies the Abor.")], re_open_period_diary_entry_request : Annotated[Optional[ReOpenPeriodDiaryEntryRequest], Field(description="The request body, detailing re open details")] = None, async_req: Optional[bool]=True, **kwargs) -> PeriodDiaryEntriesReopenedResponse: # noqa: E501
2302
+ def re_open_periods(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope this uniquely identifies the Abor.")], re_open_period_diary_entry_request : Annotated[Optional[ReOpenPeriodDiaryEntryRequest], Field(description="The request body, containing details about the period to be re-opened.")] = None, async_req: Optional[bool]=True, **kwargs) -> PeriodDiaryEntriesReopenedResponse: # noqa: E501
2303
2303
  ...
2304
2304
 
2305
2305
  @validate_arguments
2306
- def re_open_periods(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor to be deleted.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor to be deleted. Together with the scope this uniquely identifies the Abor.")], re_open_period_diary_entry_request : Annotated[Optional[ReOpenPeriodDiaryEntryRequest], Field(description="The request body, detailing re open details")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PeriodDiaryEntriesReopenedResponse, Awaitable[PeriodDiaryEntriesReopenedResponse]]: # noqa: E501
2306
+ def re_open_periods(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope this uniquely identifies the Abor.")], re_open_period_diary_entry_request : Annotated[Optional[ReOpenPeriodDiaryEntryRequest], Field(description="The request body, containing details about the period to be re-opened.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[PeriodDiaryEntriesReopenedResponse, Awaitable[PeriodDiaryEntriesReopenedResponse]]: # noqa: E501
2307
2307
  """[EXPERIMENTAL] ReOpenPeriods: Reopen periods from a seed Diary Entry Code or when not specified, the last Closed Period for the given Abor. # noqa: E501
2308
2308
 
2309
2309
  Reopens one or more periods. # noqa: E501
@@ -2313,11 +2313,11 @@ class AborApi:
2313
2313
  >>> thread = api.re_open_periods(scope, code, re_open_period_diary_entry_request, async_req=True)
2314
2314
  >>> result = thread.get()
2315
2315
 
2316
- :param scope: The scope of the Abor to be deleted. (required)
2316
+ :param scope: The scope of the Abor. (required)
2317
2317
  :type scope: str
2318
- :param code: The code of the Abor to be deleted. Together with the scope this uniquely identifies the Abor. (required)
2318
+ :param code: The code of the Abor. Together with the scope this uniquely identifies the Abor. (required)
2319
2319
  :type code: str
2320
- :param re_open_period_diary_entry_request: The request body, detailing re open details
2320
+ :param re_open_period_diary_entry_request: The request body, containing details about the period to be re-opened.
2321
2321
  :type re_open_period_diary_entry_request: ReOpenPeriodDiaryEntryRequest
2322
2322
  :param async_req: Whether to execute the request asynchronously.
2323
2323
  :type async_req: bool, optional
@@ -2338,7 +2338,7 @@ class AborApi:
2338
2338
  return self.re_open_periods_with_http_info(scope, code, re_open_period_diary_entry_request, **kwargs) # noqa: E501
2339
2339
 
2340
2340
  @validate_arguments
2341
- def re_open_periods_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor to be deleted.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor to be deleted. Together with the scope this uniquely identifies the Abor.")], re_open_period_diary_entry_request : Annotated[Optional[ReOpenPeriodDiaryEntryRequest], Field(description="The request body, detailing re open details")] = None, **kwargs) -> ApiResponse: # noqa: E501
2341
+ def re_open_periods_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope this uniquely identifies the Abor.")], re_open_period_diary_entry_request : Annotated[Optional[ReOpenPeriodDiaryEntryRequest], Field(description="The request body, containing details about the period to be re-opened.")] = None, **kwargs) -> ApiResponse: # noqa: E501
2342
2342
  """[EXPERIMENTAL] ReOpenPeriods: Reopen periods from a seed Diary Entry Code or when not specified, the last Closed Period for the given Abor. # noqa: E501
2343
2343
 
2344
2344
  Reopens one or more periods. # noqa: E501
@@ -2348,11 +2348,11 @@ class AborApi:
2348
2348
  >>> thread = api.re_open_periods_with_http_info(scope, code, re_open_period_diary_entry_request, async_req=True)
2349
2349
  >>> result = thread.get()
2350
2350
 
2351
- :param scope: The scope of the Abor to be deleted. (required)
2351
+ :param scope: The scope of the Abor. (required)
2352
2352
  :type scope: str
2353
- :param code: The code of the Abor to be deleted. Together with the scope this uniquely identifies the Abor. (required)
2353
+ :param code: The code of the Abor. Together with the scope this uniquely identifies the Abor. (required)
2354
2354
  :type code: str
2355
- :param re_open_period_diary_entry_request: The request body, detailing re open details
2355
+ :param re_open_period_diary_entry_request: The request body, containing details about the period to be re-opened.
2356
2356
  :type re_open_period_diary_entry_request: ReOpenPeriodDiaryEntryRequest
2357
2357
  :param async_req: Whether to execute the request asynchronously.
2358
2358
  :type async_req: bool, optional
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.7397\n"\
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, constr
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: constr(strict=True, min_length=1) = Field(..., description="The client's representation of the block's side (buy, sell, short, etc)")
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
- __properties = ["properties", "quantity", "orderBookId", "portfolioId", "id", "state", "date", "price", "orderInstruction", "package"]
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.704
3
+ Version: 2.1.706
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  lusid/__init__.py,sha256=FWrbueI3l41IUchsiCm0QN0q79nKV7ejrohBf2_9h1c,133795
2
2
  lusid/api/__init__.py,sha256=b9BsX0qfl4jZSlEid6ihux1dyYgNwjtKQZk23veBuc0,6204
3
- lusid/api/abor_api.py,sha256=6bAhCnwf45obpEc3fKa6mt4GzpJsZOh4Ir45I55kBmw,171300
3
+ lusid/api/abor_api.py,sha256=dlEEwISzI_StiKKp-VAajSocjPiXmKQskYHQp6bOljE,171294
4
4
  lusid/api/abor_configuration_api.py,sha256=ug36aCVNswcZuRZXSNl1rq9yDrceobDdbVio8EG3oPQ,76011
5
5
  lusid/api/address_key_definition_api.py,sha256=jlvpmsmvVedaMNr1sRMNj2Kj4qArNtZxXKXD0DvRUwM,31574
6
6
  lusid/api/aggregation_api.py,sha256=Hbupc46i7zS4nLAhiWZMU7gQAowBlP__iSotN2zu_Xo,38361
@@ -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=kTdSoE0RYKtIFQEYvyxwhI6KHDUIOzkm9paogS-wvi0,17972
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=eRnE2Tm8GqwgHOEggzgty6HPzHbPbqvPsrXFLJqU2IA,6532
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=gIauW-21xcQmUh-BwEQG6vbdHI4sEwtq0bl1Hx7TzuI,6052
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.704.dist-info/METADATA,sha256=ZP6HRQ_Auir-R7Q6jGsI5SXsc4DN11rYvSmgqoIGdxA,219380
1278
- lusid_sdk-2.1.704.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1279
- lusid_sdk-2.1.704.dist-info/RECORD,,
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,,