lusid-sdk 2.1.552__py3-none-any.whl → 2.1.557__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.
@@ -585,7 +585,7 @@ class InstrumentEventsApi:
585
585
 
586
586
  @validate_arguments
587
587
  def query_instrument_events(self, limit : Annotated[Optional[StrictInt], Field(description="Optional. When paginating, limit the number of returned results to this many. If not specified, a default of 1000 is used.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. The pagination token to use to continue listing items from a previous call. Page values are return from list calls, and must be supplied exactly as returned. Additionally, when specifying this value, queryBody, and limit must not be modified.")] = None, query_instrument_events_request : Annotated[Optional[QueryInstrumentEventsRequest], Field(description="The filter parameters used to retrieve instrument events.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ResourceListOfInstrumentEventHolder, Awaitable[ResourceListOfInstrumentEventHolder]]: # noqa: E501
588
- """[EXPERIMENTAL] QueryInstrumentEvents: Returns a list of instrument events based on the holdings of the portfolios and date range specified in the query. # noqa: E501
588
+ """[EARLY ACCESS] QueryInstrumentEvents: Returns a list of instrument events based on the holdings of the portfolios and date range specified in the query. # noqa: E501
589
589
 
590
590
  Returns a list of instrument events based on the holdings of the portfolios and date range specified in the query. # noqa: E501
591
591
  This method makes a synchronous HTTP request by default. To make an
@@ -620,7 +620,7 @@ class InstrumentEventsApi:
620
620
 
621
621
  @validate_arguments
622
622
  def query_instrument_events_with_http_info(self, limit : Annotated[Optional[StrictInt], Field(description="Optional. When paginating, limit the number of returned results to this many. If not specified, a default of 1000 is used.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="Optional. The pagination token to use to continue listing items from a previous call. Page values are return from list calls, and must be supplied exactly as returned. Additionally, when specifying this value, queryBody, and limit must not be modified.")] = None, query_instrument_events_request : Annotated[Optional[QueryInstrumentEventsRequest], Field(description="The filter parameters used to retrieve instrument events.")] = None, **kwargs) -> ApiResponse: # noqa: E501
623
- """[EXPERIMENTAL] QueryInstrumentEvents: Returns a list of instrument events based on the holdings of the portfolios and date range specified in the query. # noqa: E501
623
+ """[EARLY ACCESS] QueryInstrumentEvents: Returns a list of instrument events based on the holdings of the portfolios and date range specified in the query. # noqa: E501
624
624
 
625
625
  Returns a list of instrument events based on the holdings of the portfolios and date range specified in the query. # noqa: E501
626
626
  This method makes a synchronous HTTP request by default. To make an
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.6981\n"\
448
+ "Version of the API: 0.11.6987\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -18,8 +18,8 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
  from datetime import datetime
21
- from typing import Any, Dict, Union
22
- from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr
21
+ from typing import Any, Dict, List, Optional, Union
22
+ from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, constr
23
23
  from lusid.models.lusid_instrument import LusidInstrument
24
24
 
25
25
  class ExchangeTradedOptionContractDetails(BaseModel):
@@ -39,7 +39,10 @@ class ExchangeTradedOptionContractDetails(BaseModel):
39
39
  option_type: constr(strict=True, min_length=1) = Field(..., alias="optionType", description="The option type, Call or Put. Supported string (enumeration) values are: [Call, Put].")
40
40
  underlying: LusidInstrument = Field(...)
41
41
  underlying_code: constr(strict=True, min_length=1) = Field(..., alias="underlyingCode", description="Code of the underlying, for an option on futures this should be the futures code.")
42
- __properties = ["domCcy", "strike", "contractSize", "country", "deliveryType", "description", "exchangeCode", "exerciseDate", "exerciseType", "optionCode", "optionType", "underlying", "underlyingCode"]
42
+ delivery_days: Optional[StrictInt] = Field(None, alias="deliveryDays", description="Number of business days between exercise date and settlement of the option payoff or underlying.")
43
+ business_day_convention: Optional[StrictStr] = Field(None, alias="businessDayConvention", description="The adjustment type to apply to dates that fall upon a non-business day, e.g. modified following or following. Supported string (enumeration) values are: [NoAdjustment, Previous, P, Following, F, ModifiedPrevious, MP, ModifiedFollowing, MF, HalfMonthModifiedFollowing, Nearest].")
44
+ settlement_calendars: Optional[conlist(StrictStr)] = Field(None, alias="settlementCalendars", description="An array of strings denoting calendars used in calculating the option settlement date.")
45
+ __properties = ["domCcy", "strike", "contractSize", "country", "deliveryType", "description", "exchangeCode", "exerciseDate", "exerciseType", "optionCode", "optionType", "underlying", "underlyingCode", "deliveryDays", "businessDayConvention", "settlementCalendars"]
43
46
 
44
47
  class Config:
45
48
  """Pydantic configuration"""
@@ -68,6 +71,16 @@ class ExchangeTradedOptionContractDetails(BaseModel):
68
71
  # override the default output from pydantic by calling `to_dict()` of underlying
69
72
  if self.underlying:
70
73
  _dict['underlying'] = self.underlying.to_dict()
74
+ # set to None if business_day_convention (nullable) is None
75
+ # and __fields_set__ contains the field
76
+ if self.business_day_convention is None and "business_day_convention" in self.__fields_set__:
77
+ _dict['businessDayConvention'] = None
78
+
79
+ # set to None if settlement_calendars (nullable) is None
80
+ # and __fields_set__ contains the field
81
+ if self.settlement_calendars is None and "settlement_calendars" in self.__fields_set__:
82
+ _dict['settlementCalendars'] = None
83
+
71
84
  return _dict
72
85
 
73
86
  @classmethod
@@ -92,6 +105,9 @@ class ExchangeTradedOptionContractDetails(BaseModel):
92
105
  "option_code": obj.get("optionCode"),
93
106
  "option_type": obj.get("optionType"),
94
107
  "underlying": LusidInstrument.from_dict(obj.get("underlying")) if obj.get("underlying") is not None else None,
95
- "underlying_code": obj.get("underlyingCode")
108
+ "underlying_code": obj.get("underlyingCode"),
109
+ "delivery_days": obj.get("deliveryDays"),
110
+ "business_day_convention": obj.get("businessDayConvention"),
111
+ "settlement_calendars": obj.get("settlementCalendars")
96
112
  })
97
113
  return _obj
@@ -31,7 +31,7 @@ class WorkspaceItem(BaseModel):
31
31
  format: StrictInt = Field(..., description="A simple integer format identifier.")
32
32
  name: constr(strict=True, min_length=1) = Field(..., description="A workspace item's name; a unique identifier.")
33
33
  description: constr(strict=True, max_length=1024, min_length=0) = Field(..., description="The description of a workspace item.")
34
- content: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="The content associated with a workspace item.")
34
+ content: Optional[Any] = Field(..., description="The content associated with a workspace item.")
35
35
  version: Optional[Version] = None
36
36
  links: Optional[conlist(Link)] = None
37
37
  __properties = ["type", "format", "name", "description", "content", "version", "links"]
@@ -77,6 +77,11 @@ class WorkspaceItem(BaseModel):
77
77
  if _item:
78
78
  _items.append(_item.to_dict())
79
79
  _dict['links'] = _items
80
+ # set to None if content (nullable) is None
81
+ # and __fields_set__ contains the field
82
+ if self.content is None and "content" in self.__fields_set__:
83
+ _dict['content'] = None
84
+
80
85
  # set to None if links (nullable) is None
81
86
  # and __fields_set__ contains the field
82
87
  if self.links is None and "links" in self.__fields_set__:
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
 
21
- from typing import Any, Dict
21
+ from typing import Any, Dict, Optional
22
22
  from pydantic.v1 import BaseModel, Field, StrictInt, constr, validator
23
23
 
24
24
  class WorkspaceItemCreationRequest(BaseModel):
@@ -28,7 +28,7 @@ class WorkspaceItemCreationRequest(BaseModel):
28
28
  format: StrictInt = Field(..., description="A simple integer format identifier.")
29
29
  name: constr(strict=True, max_length=64, min_length=1) = Field(..., description="A workspace item's name; a unique identifier.")
30
30
  description: constr(strict=True, max_length=1024, min_length=0) = Field(..., description="The description of a workspace item.")
31
- content: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="The content associated with a workspace item.")
31
+ content: Optional[Any] = Field(..., description="The content associated with a workspace item.")
32
32
  type: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="The type of the workspace item.")
33
33
  __properties = ["format", "name", "description", "content", "type"]
34
34
 
@@ -70,6 +70,11 @@ class WorkspaceItemCreationRequest(BaseModel):
70
70
  exclude={
71
71
  },
72
72
  exclude_none=True)
73
+ # set to None if content (nullable) is None
74
+ # and __fields_set__ contains the field
75
+ if self.content is None and "content" in self.__fields_set__:
76
+ _dict['content'] = None
77
+
73
78
  return _dict
74
79
 
75
80
  @classmethod
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
 
21
- from typing import Any, Dict
21
+ from typing import Any, Dict, Optional
22
22
  from pydantic.v1 import BaseModel, Field, StrictInt, constr, validator
23
23
 
24
24
  class WorkspaceItemUpdateRequest(BaseModel):
@@ -27,7 +27,7 @@ class WorkspaceItemUpdateRequest(BaseModel):
27
27
  """
28
28
  format: StrictInt = Field(..., description="A simple integer format identifier.")
29
29
  description: constr(strict=True, max_length=1024, min_length=0) = Field(..., description="The description of a workspace item.")
30
- content: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="The content associated with a workspace item.")
30
+ content: Optional[Any] = Field(..., description="The content associated with a workspace item.")
31
31
  type: constr(strict=True, max_length=6000, min_length=0) = Field(..., description="The type of the workspace item.")
32
32
  __properties = ["format", "description", "content", "type"]
33
33
 
@@ -62,6 +62,11 @@ class WorkspaceItemUpdateRequest(BaseModel):
62
62
  exclude={
63
63
  },
64
64
  exclude_none=True)
65
+ # set to None if content (nullable) is None
66
+ # and __fields_set__ contains the field
67
+ if self.content is None and "content" in self.__fields_set__:
68
+ _dict['content'] = None
69
+
65
70
  return _dict
66
71
 
67
72
  @classmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.552
3
+ Version: 2.1.557
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -279,7 +279,7 @@ Class | Method | HTTP request | Description
279
279
  *InstrumentEventsApi* | [**query_applicable_instrument_events**](docs/InstrumentEventsApi.md#query_applicable_instrument_events) | **POST** /api/instrumentevents/$queryApplicableInstrumentEvents | [EXPERIMENTAL] QueryApplicableInstrumentEvents: Returns a list of applicable instrument events based on the holdings of the portfolios and date range specified in the query.
280
280
  *InstrumentEventsApi* | [**query_bucketed_cash_flows**](docs/InstrumentEventsApi.md#query_bucketed_cash_flows) | **POST** /api/instrumentevents/$queryBucketedCashFlows | QueryBucketedCashFlows: Returns bucketed cashflows based on the holdings of the portfolios and date range specified in the query.
281
281
  *InstrumentEventsApi* | [**query_cash_flows**](docs/InstrumentEventsApi.md#query_cash_flows) | **POST** /api/instrumentevents/$queryCashFlows | [EXPERIMENTAL] QueryCashFlows: Returns a list of cashflows based on the holdings of the portfolios and date range specified in the query.
282
- *InstrumentEventsApi* | [**query_instrument_events**](docs/InstrumentEventsApi.md#query_instrument_events) | **POST** /api/instrumentevents/$query | [EXPERIMENTAL] QueryInstrumentEvents: Returns a list of instrument events based on the holdings of the portfolios and date range specified in the query.
282
+ *InstrumentEventsApi* | [**query_instrument_events**](docs/InstrumentEventsApi.md#query_instrument_events) | **POST** /api/instrumentevents/$query | [EARLY ACCESS] QueryInstrumentEvents: Returns a list of instrument events based on the holdings of the portfolios and date range specified in the query.
283
283
  *InstrumentEventsApi* | [**query_trade_tickets**](docs/InstrumentEventsApi.md#query_trade_tickets) | **POST** /api/instrumentevents/$queryTradeTickets | [EXPERIMENTAL] QueryTradeTickets: Returns a list of trade tickets based on the holdings of the portfolios and date range specified in the query.
284
284
  *InstrumentsApi* | [**batch_upsert_instrument_properties**](docs/InstrumentsApi.md#batch_upsert_instrument_properties) | **POST** /api/instruments/$batchupsertproperties | BatchUpsertInstrumentProperties: Batch upsert instruments properties
285
285
  *InstrumentsApi* | [**calculate_settlement_date**](docs/InstrumentsApi.md#calculate_settlement_date) | **GET** /api/instruments/{identifierType}/{identifier}/settlementdate | [EARLY ACCESS] CalculateSettlementDate: Get the settlement date for an instrument.
@@ -29,7 +29,7 @@ lusid/api/fund_configuration_api.py,sha256=sItl8nbm7PsJYVZYMLWKtGQG80y_y6LP7D_r6
29
29
  lusid/api/funds_api.py,sha256=cfiP9aomuX9SNepJfrF8FpEy1_2rSg0ROPZDGVKU-aU,224540
30
30
  lusid/api/group_reconciliations_api.py,sha256=0zuSvNM9c61ZhzdxSCVen_y3-y9gPeykflxgNzv9-8U,167598
31
31
  lusid/api/instrument_event_types_api.py,sha256=G4gpfM6eWl77dtF3DC7b0lUOby_EREyLmXTxSyo9-ew,81296
32
- lusid/api/instrument_events_api.py,sha256=HJoC-pHztF2jKfX5xhXItEn3svBya8RNzd_hMDbmZKI,58350
32
+ lusid/api/instrument_events_api.py,sha256=sdKGJQAcoqEPJPuYSkP3axM1o63nB8qcdyIEHZ8cRkk,58350
33
33
  lusid/api/instruments_api.py,sha256=bsFgBfz5dPAd4uNxrWn5m0m8B7ne85z10jvVagL3FWs,293269
34
34
  lusid/api/legacy_compliance_api.py,sha256=a7nqMHB7Eh9f33Hrh55kOTmIB_Gfj9y4b8xOjMSBuxw,96394
35
35
  lusid/api/legal_entities_api.py,sha256=YiKzvDknl_Yc61F4m-kbz976UWTGDjcLAJK2g_3Wn70,267038
@@ -70,7 +70,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
70
70
  lusid/api/workspace_api.py,sha256=mYQPqFUVf1VKYeWQUV5VkcdSqwejSmPDGd66Az86-_E,191319
71
71
  lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
72
72
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
73
- lusid/configuration.py,sha256=cuWo6Kd8GieRH73QaTVJ6SV6UVJ0P0sA5bDinDPHpHU,17972
73
+ lusid/configuration.py,sha256=jbRXx-DymOgRV5QoLivsRHa4Fee9B9EeQrQWqJAGQGc,17972
74
74
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
75
75
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
76
76
  lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
@@ -406,7 +406,7 @@ lusid/models/error_detail.py,sha256=XkNJc5yCGsIri9wDciaONqobIbADaU90i5UrI71WM4c,
406
406
  lusid/models/event_date_range.py,sha256=5JHxchKA0cjiv_dgYzDUrnj08Za90WDasnXpP9pM85s,2252
407
407
  lusid/models/ex_dividend_configuration.py,sha256=TFJwnRyy5TBp3jTYUkV9zc2Av5Zc3TVWl8ukfQOU2Kc,3511
408
408
  lusid/models/exchange_traded_option.py,sha256=b01E6S7CUPsFfm4Yh9LHxJj59CBKNOjr_iO8tIDro2U,6181
409
- lusid/models/exchange_traded_option_contract_details.py,sha256=deXRIMrBJkkIdUHM3gsk2-ff1rFkBUZrDNtfe8yoe3E,5601
409
+ lusid/models/exchange_traded_option_contract_details.py,sha256=8e-LGUmWY6IU-skbQDHWmG-wlGgxIIC9C5NP4atMhwY,7188
410
410
  lusid/models/execution.py,sha256=xgTGRwDwyKoIs2Pr1bO2gyqCZse_xbUX-FawwhMDgS8,8094
411
411
  lusid/models/execution_request.py,sha256=QIRsZXIKhl_YftXWBWjaT1IZuvIzSi766FWAx7I6Qlc,6720
412
412
  lusid/models/execution_set_request.py,sha256=CXGgbdH8abVfPqnUs4J1xR_mHI3byH4ES_T7IGDm0nM,2672
@@ -1217,13 +1217,13 @@ lusid/models/weighted_instrument_in_line_lookup_identifiers.py,sha256=MWApQn-pqg
1217
1217
  lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D37U8HoLg,2543
1218
1218
  lusid/models/workspace.py,sha256=6k40c0HJHQ_in9JN8GLvUVpXlEbMa9AnlUU_XTDK_Tw,3150
1219
1219
  lusid/models/workspace_creation_request.py,sha256=nka8SVfnjVQFn3PwYfWcP-rUNoOG29Yi__u-sS9LBF0,2512
1220
- lusid/models/workspace_item.py,sha256=xeG1_8RNz85WZLa5EMCYlnfEkcAu601YUixTRyLcAu4,3984
1221
- lusid/models/workspace_item_creation_request.py,sha256=QzTB6ZNJvUIFiYinmDt0D7f5R4CHZUh-egVVY20lZmY,3338
1222
- lusid/models/workspace_item_update_request.py,sha256=tsRVCvhVus4vccYqHN5k0GaXmGuS9Z8YIqLHoQBopCQ,2850
1220
+ lusid/models/workspace_item.py,sha256=By4NZ2Y5nHhVdRNZ6NWpBuc1lqmFngGoxqslHlHNYxk,4154
1221
+ lusid/models/workspace_item_creation_request.py,sha256=ywPGfHpUfuoF67irpcprKxzbnrO5ke5sCmBc7FoL2qQ,3518
1222
+ lusid/models/workspace_item_update_request.py,sha256=pLz-wlt9AwYV2g2loAe7b9xJyA56fnYCDwkuOVOgc0U,3030
1223
1223
  lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi8PWGYQOlrys,2016
1224
1224
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1225
1225
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1226
1226
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1227
- lusid_sdk-2.1.552.dist-info/METADATA,sha256=OXk54nAAhX0Ejo5CKJSY-lnvbTqWCmCS76CxUwf4MR4,208755
1228
- lusid_sdk-2.1.552.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1229
- lusid_sdk-2.1.552.dist-info/RECORD,,
1227
+ lusid_sdk-2.1.557.dist-info/METADATA,sha256=2yQcXuyq97OUcigiGARCUmSn2y9xn4dhH5LtJOxc_Q0,208755
1228
+ lusid_sdk-2.1.557.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1229
+ lusid_sdk-2.1.557.dist-info/RECORD,,