lusid-sdk 2.1.757__py3-none-any.whl → 2.1.759__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 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.7621\n"\
448
+ "Version of the API: 0.11.7641\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -25,9 +25,9 @@ class ExDividendConfiguration(BaseModel):
25
25
  """
26
26
  Configure the ex-dividend periods for the instrument. # noqa: E501
27
27
  """
28
- use_business_days: Optional[StrictBool] = Field(None, alias="useBusinessDays", description="Is the ex-dividend period counted in business days or calendar days. Defaults to true if not set.")
28
+ use_business_days: Optional[StrictBool] = Field(None, alias="useBusinessDays", description="Is the ex-dividend period counted in business days or calendar days. Defaults to false if not set.")
29
29
  ex_dividend_days: StrictInt = Field(..., alias="exDividendDays", description="Number of days in the ex-dividend period. If the settlement date falls in the ex-dividend period then the coupon paid is zero and the accrued interest is negative. If set, this must be a non-negative number. If not set, or set to 0, than there is no ex-dividend period.")
30
- return_negative_accrued: Optional[StrictBool] = Field(None, alias="returnNegativeAccrued", description="Does the accrued interest go negative in the ex-dividend period, or does it go to zero. Defaults to true if not set.")
30
+ return_negative_accrued: Optional[StrictBool] = Field(None, alias="returnNegativeAccrued", description="Does the accrued interest go negative in the ex-dividend period, or does it go to zero.")
31
31
  apply_thirty360_pay_delay: Optional[StrictBool] = Field(None, alias="applyThirty360PayDelay", description="Set this flag to true if the ex-dividend days represent a pay delay from the accrual end date in calendar days under the 30/360 day count convention. The typical use case for this flag are Mortgage Backed Securities with pay delay between 1 and 60 days, such as FreddieMac and FannieMae. If this flag is set, the useBusinessDays setting will be ignored. Defaults to false if not provided.")
32
32
  __properties = ["useBusinessDays", "exDividendDays", "returnNegativeAccrued", "applyThirty360PayDelay"]
33
33
 
lusid/models/future.py CHANGED
@@ -33,7 +33,7 @@ class Future(LusidInstrument):
33
33
  maturity_date: datetime = Field(..., alias="maturityDate", description="The final maturity date of the instrument. This means the last date on which the instruments makes a payment of any amount. For the avoidance of doubt, that is not necessarily prior to its last sensitivity date for the purposes of risk; e.g. instruments such as Constant Maturity Swaps (CMS) often have sensitivities to rates that may well be observed or set prior to the maturity date, but refer to a termination date beyond it.")
34
34
  identifiers: Dict[str, StrictStr] = Field(..., description="External market codes and identifiers for the bond, e.g. ISIN.")
35
35
  contract_details: FuturesContractDetails = Field(..., alias="contractDetails")
36
- contracts: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The number of contracts held. This is optional and will default to 1 if not set. Instrument events will only work when this field is 1. We recommend not using this field and instead relying on the number of holdings to represent the number of futures contracts.")
36
+ contracts: Optional[Union[StrictFloat, StrictInt]] = Field(1, description="The number of contracts held. This is optional and will default to 1 if not set. Instrument events will only work when this field is 1. We recommend not using this field and instead relying on the number of holdings to represent the number of futures contracts.")
37
37
  mark_to_market_conventions: Optional[MarkToMarketConventions] = Field(None, alias="markToMarketConventions")
38
38
  ref_spot_price: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="refSpotPrice", description="The reference spot price for the future at which the contract was entered into.")
39
39
  underlying: Optional[LusidInstrument] = None
@@ -174,7 +174,7 @@ class Future(LusidInstrument):
174
174
  "maturity_date": obj.get("maturityDate"),
175
175
  "identifiers": obj.get("identifiers"),
176
176
  "contract_details": FuturesContractDetails.from_dict(obj.get("contractDetails")) if obj.get("contractDetails") is not None else None,
177
- "contracts": obj.get("contracts"),
177
+ "contracts": obj.get("contracts") if obj.get("contracts") is not None else 1,
178
178
  "mark_to_market_conventions": MarkToMarketConventions.from_dict(obj.get("markToMarketConventions")) if obj.get("markToMarketConventions") is not None else None,
179
179
  "ref_spot_price": obj.get("refSpotPrice"),
180
180
  "underlying": LusidInstrument.from_dict(obj.get("underlying")) if obj.get("underlying") is not None else None,
@@ -19,14 +19,14 @@ import json
19
19
 
20
20
 
21
21
  from typing import Any, Dict, Optional, Union
22
- from pydantic.v1 import StrictStr, Field, BaseModel, Field, confloat, conint, constr
22
+ from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictFloat, StrictInt, constr
23
23
 
24
24
  class PropertyReferenceDataValue(BaseModel):
25
25
  """
26
26
  The ReferenceData relevant to the property. The ReferenceData is taken from the DataType on the PropertyDefinition that defines the Property. Only ReferenceData where the ReferenceData value matches the Property value is included. # noqa: E501
27
27
  """
28
28
  string_value: Optional[StrictStr] = Field(None,alias="stringValue")
29
- numeric_value: Optional[Union[confloat(strict=True), conint(strict=True)]] = Field(None, alias="numericValue")
29
+ numeric_value: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="numericValue")
30
30
  __properties = ["stringValue", "numericValue"]
31
31
 
32
32
  class Config:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.757
3
+ Version: 2.1.759
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -74,7 +74,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
74
74
  lusid/api/workspace_api.py,sha256=QmcywrL34lbVo4CbSwyyJDh0kRG7Gt91xrQB0ShqQQQ,106017
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=YG32vYVzEsnaehL8WDro0U0_DcNjRfTusIsSjruSl5E,17972
77
+ lusid/configuration.py,sha256=D9HaB7BbhsBTAD4xkaQfmkwdXnZslM0L_rsTSIJmllQ,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
@@ -442,7 +442,7 @@ lusid/models/equity_vol_dependency.py,sha256=OhiCCEbehzdQk6TedJYmGfl4PZTDhFaLh8y
442
442
  lusid/models/equity_vol_surface_data.py,sha256=hdcunQvgukKmT0QgnCmOt12SiikylpuSrN4NsYM0-jE,9102
443
443
  lusid/models/error_detail.py,sha256=iEBAZ78tQjoZhpoWyK0CLqpYRFH5vGtT3mRyft42OYc,3556
444
444
  lusid/models/event_date_range.py,sha256=bCa-KYbgjgQX1KZ8DMvQv7D056dHmPLhHJGsSvTRP6A,2484
445
- lusid/models/ex_dividend_configuration.py,sha256=76drnnrQJQnfjZRIHktdHrcJU3eSTb5tPQzH46USdss,3743
445
+ lusid/models/ex_dividend_configuration.py,sha256=82r83JBGnhkmvI-SSybnP8-0nfsTUB6Cw_RQNxdkJKA,3714
446
446
  lusid/models/exchange_traded_option.py,sha256=vt-p_dbK0JH-kFfhZYvw_duXX_llLtlkQDX5MKcA4Qk,10050
447
447
  lusid/models/exchange_traded_option_contract_details.py,sha256=lGNfXepR-w61o-p8Jfeouejth6sbBcM89A4JFiXZKCk,7276
448
448
  lusid/models/execution.py,sha256=uZr2HAGXYTndXYgTVZ_Zz21H3SPhpR5sQS_wkg3yOxE,8277
@@ -497,7 +497,7 @@ lusid/models/fund_share_class.py,sha256=ZsQUZIb5O0K7tO0Z_BELdjx5K-cqH3Hiac-rNvZ-
497
497
  lusid/models/fund_valuation_point_data.py,sha256=e4AoY_OBFZLpMvpoChDzm7oD-KUluVPcfeWH1VdalxQ,7042
498
498
  lusid/models/funding_leg.py,sha256=g4LWvqfIPGKZvIFZEdKWv5fCbq93L2TnCXl39HaHW-4,10869
499
499
  lusid/models/funding_leg_options.py,sha256=nNKvJJXO93OEfoOfFEYGgWC0eAg5TPB56N1TzgZx23c,6751
500
- lusid/models/future.py,sha256=sYXvt2hozzKd-OXNW4zhJV8rfpEN7xblbacgl9tB_PQ,13888
500
+ lusid/models/future.py,sha256=HbfN2GSM3lO-cDw9hg0zYll0FN8jC3l5Eqvr-ThHSfQ,13928
501
501
  lusid/models/future_expiry_event.py,sha256=-dUGekAty_H_JmbrvYjnK8P6tUv4qnD3-M9L-KJ-icw,11250
502
502
  lusid/models/future_mark_to_market_event.py,sha256=_JYcRUaculZPu_CgERNH3_uZ4G_VYN3j4hamttRqksc,11326
503
503
  lusid/models/futures_contract_details.py,sha256=aX3yWvdcWk9NCYSNdOrN9S1WXT-BbxjVRYOXokRguAo,8377
@@ -890,7 +890,7 @@ lusid/models/property_key_list_compliance_parameter.py,sha256=d3s8MEXbSAjcbM0-cx
890
890
  lusid/models/property_life_time.py,sha256=J3yUafzD0tis5kSMKy77p87ngARdmAmw3iHhjxB5vqc,681
891
891
  lusid/models/property_list.py,sha256=TmlAgUjqeK3RXZnPJ2DzsL3MW_IGUGyITD_IjhgdOU0,6974
892
892
  lusid/models/property_list_compliance_parameter.py,sha256=zju2dFK-MUQX-7wNwf4iQ3s8HqVWeySnCFiC3rYTH48,8884
893
- lusid/models/property_reference_data_value.py,sha256=tH0LcER4HbKk7VjS36b1Yj2yV2aPcesdwNA4quT2eKc,3089
893
+ lusid/models/property_reference_data_value.py,sha256=cxgzTm3bj_UvldwVE7C4vJvNvsJARv9JkzMXTlgw5vY,3075
894
894
  lusid/models/property_schema.py,sha256=jRn0eSkrqVe04crCepPWBTmAz-SgWwpRj_h0nzWt6P0,3846
895
895
  lusid/models/property_type.py,sha256=eo21Rzc7NvOksRW_tld66GXrIjg0UbZJC1XmVQSn6OA,729
896
896
  lusid/models/property_value.py,sha256=1og4VJuxOXpgx3mhHPsFNWbSRKp2gNK2D8rqt4UVb-c,3355
@@ -1297,6 +1297,6 @@ lusid/models/workspace_visibility.py,sha256=VZ-Pvk6dbKY4sapdquKcBPmV2IwmHc5-W_m9
1297
1297
  lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
1298
1298
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1299
1299
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1300
- lusid_sdk-2.1.757.dist-info/METADATA,sha256=KaLsgyFoF7bsNvF3BfT5cBvxpOLvXkbJ48Fkp_8-IIY,217772
1301
- lusid_sdk-2.1.757.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1302
- lusid_sdk-2.1.757.dist-info/RECORD,,
1300
+ lusid_sdk-2.1.759.dist-info/METADATA,sha256=TCSBbK6UOGoken7NRbl8kde9J7IVBwP8wiMdBAw3b0U,217772
1301
+ lusid_sdk-2.1.759.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1302
+ lusid_sdk-2.1.759.dist-info/RECORD,,