lusid-sdk 2.1.198__py3-none-any.whl → 2.1.205__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.

@@ -4616,7 +4616,7 @@ class PortfoliosApi:
4616
4616
  def patch_portfolio(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more check: https://datatracker.ietf.org/doc/html/rfc6902.")], async_req: Optional[bool]=None, **kwargs) -> Union[Portfolio, Awaitable[Portfolio]]: # noqa: E501
4617
4617
  """PatchPortfolio: Patch portfolio. # noqa: E501
4618
4618
 
4619
- Create or update certain fields for a particular portfolio. The behaviour is defined by the JSON Patch specification. Currently supported are: CreationDate, InstrumentScopes. # noqa: E501
4619
+ Create or update certain fields for a particular portfolio. The behaviour is defined by the JSON Patch specification. Currently supported are: Created, InstrumentScopes. # noqa: E501
4620
4620
  This method makes a synchronous HTTP request by default. To make an
4621
4621
  asynchronous HTTP request, please pass async_req=True
4622
4622
 
@@ -4652,7 +4652,7 @@ class PortfoliosApi:
4652
4652
  def patch_portfolio_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the portfolio.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the portfolio. Together with the scope this uniquely identifies the portfolio.")], operation : Annotated[conlist(Operation), Field(..., description="The json patch document. For more check: https://datatracker.ietf.org/doc/html/rfc6902.")], **kwargs) -> ApiResponse: # noqa: E501
4653
4653
  """PatchPortfolio: Patch portfolio. # noqa: E501
4654
4654
 
4655
- Create or update certain fields for a particular portfolio. The behaviour is defined by the JSON Patch specification. Currently supported are: CreationDate, InstrumentScopes. # noqa: E501
4655
+ Create or update certain fields for a particular portfolio. The behaviour is defined by the JSON Patch specification. Currently supported are: Created, InstrumentScopes. # noqa: E501
4656
4656
  This method makes a synchronous HTTP request by default. To make an
4657
4657
  asynchronous HTTP request, please pass async_req=True
4658
4658
 
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.6632\n"\
376
+ "Version of the API: 0.11.6639\n"\
377
377
  "SDK Package Version: {package_version}".\
378
378
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
379
379
 
@@ -19,14 +19,14 @@ import json
19
19
 
20
20
 
21
21
  from typing import Any, Dict, Optional, Union
22
- from pydantic.v1 import BaseModel, StrictFloat, StrictInt, StrictStr
22
+ from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt, StrictStr
23
23
 
24
24
  class CurrencyAndAmount(BaseModel):
25
25
  """
26
26
  An amount of a specific currency, specifying a value and an associated unit # noqa: E501
27
27
  """
28
28
  amount: Optional[Union[StrictFloat, StrictInt]] = None
29
- currency: Optional[StrictStr] = None
29
+ currency: StrictStr = Field(...)
30
30
  __properties = ["amount", "currency"]
31
31
 
32
32
  class Config:
@@ -53,11 +53,6 @@ class CurrencyAndAmount(BaseModel):
53
53
  exclude={
54
54
  },
55
55
  exclude_none=True)
56
- # set to None if currency (nullable) is None
57
- # and __fields_set__ contains the field
58
- if self.currency is None and "currency" in self.__fields_set__:
59
- _dict['currency'] = None
60
-
61
56
  return _dict
62
57
 
63
58
  @classmethod
lusid/models/fee.py CHANGED
@@ -41,8 +41,6 @@ class Fee(BaseModel):
41
41
  treatment: constr(strict=True, min_length=1) = Field(..., description="The accrual period of the Fee; 'Monthly' or 'Daily'.")
42
42
  total_annual_accrual_amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="totalAnnualAccrualAmount", description="The total annual accrued amount for the Fee. (TotalAnnualAccrualAmount and CalculationBase cannot both be present)")
43
43
  fee_rate_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="feeRatePercentage", description="The fee rate percentage. (Required when CalculationBase is present and not compatible with TotalAnnualAccrualAmount)")
44
- monthly_accrual: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="monthlyAccrual", description="The monthly accrual amount.")
45
- daily_accrual: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="dailyAccrual", description="The daily accrual amount.")
46
44
  payable_frequency: constr(strict=True, min_length=1) = Field(..., alias="payableFrequency", description="The payable frequency for the Fee; 'Annually', 'Quarterly' or 'Monthly'.")
47
45
  business_day_convention: constr(strict=True, min_length=1) = Field(..., alias="businessDayConvention", description="The business day convention to use for Fee calculations on weekends.")
48
46
  start_date: datetime = Field(..., alias="startDate", description="The start date of the Fee.")
@@ -52,7 +50,7 @@ class Fee(BaseModel):
52
50
  version: Optional[Version] = None
53
51
  portfolio_id: Optional[ResourceId] = Field(None, alias="portfolioId")
54
52
  links: Optional[conlist(Link)] = None
55
- __properties = ["href", "feeCode", "feeType", "name", "description", "origin", "calculationBase", "accrualCurrency", "treatment", "totalAnnualAccrualAmount", "feeRatePercentage", "monthlyAccrual", "dailyAccrual", "payableFrequency", "businessDayConvention", "startDate", "endDate", "anchorDate", "properties", "version", "portfolioId", "links"]
53
+ __properties = ["href", "feeCode", "feeType", "name", "description", "origin", "calculationBase", "accrualCurrency", "treatment", "totalAnnualAccrualAmount", "feeRatePercentage", "payableFrequency", "businessDayConvention", "startDate", "endDate", "anchorDate", "properties", "version", "portfolioId", "links"]
56
54
 
57
55
  @validator('fee_code')
58
56
  def fee_code_validate_regular_expression(cls, value):
@@ -159,16 +157,6 @@ class Fee(BaseModel):
159
157
  if self.fee_rate_percentage is None and "fee_rate_percentage" in self.__fields_set__:
160
158
  _dict['feeRatePercentage'] = None
161
159
 
162
- # set to None if monthly_accrual (nullable) is None
163
- # and __fields_set__ contains the field
164
- if self.monthly_accrual is None and "monthly_accrual" in self.__fields_set__:
165
- _dict['monthlyAccrual'] = None
166
-
167
- # set to None if daily_accrual (nullable) is None
168
- # and __fields_set__ contains the field
169
- if self.daily_accrual is None and "daily_accrual" in self.__fields_set__:
170
- _dict['dailyAccrual'] = None
171
-
172
160
  # set to None if properties (nullable) is None
173
161
  # and __fields_set__ contains the field
174
162
  if self.properties is None and "properties" in self.__fields_set__:
@@ -202,8 +190,6 @@ class Fee(BaseModel):
202
190
  "treatment": obj.get("treatment"),
203
191
  "total_annual_accrual_amount": obj.get("totalAnnualAccrualAmount"),
204
192
  "fee_rate_percentage": obj.get("feeRatePercentage"),
205
- "monthly_accrual": obj.get("monthlyAccrual"),
206
- "daily_accrual": obj.get("dailyAccrual"),
207
193
  "payable_frequency": obj.get("payableFrequency"),
208
194
  "business_day_convention": obj.get("businessDayConvention"),
209
195
  "start_date": obj.get("startDate"),
@@ -25,7 +25,7 @@ class OrderFlowConfiguration(BaseModel):
25
25
  """
26
26
  OrderFlowConfiguration
27
27
  """
28
- include_entity_types: constr(strict=True, min_length=1) = Field(..., alias="includeEntityTypes")
28
+ include_entity_types: constr(strict=True, min_length=1) = Field(..., alias="includeEntityTypes", description="Controls whether Orders and Allocations orders are included in the Portfolio valuation. Valid values are None (to account for Transactions only), Allocations (to include Allocations and Transactions) and OrdersAndAllocations (to include Orders, Allocations and Transactions).")
29
29
  __properties = ["includeEntityTypes"]
30
30
 
31
31
  class Config:
@@ -29,8 +29,8 @@ class RealisedGainLoss(BaseModel):
29
29
  instrument_scope: Optional[StrictStr] = Field(None, alias="instrumentScope", description="The scope in which the instrument lies.")
30
30
  instrument_uid: constr(strict=True, min_length=1) = Field(..., alias="instrumentUid", description="The unique Lusid Instrument Id (LUID) of the instrument that this gain or loss is associated with.")
31
31
  units: Union[StrictFloat, StrictInt] = Field(..., description="The number of units of the associated instrument against which the gain or loss has been realised.")
32
- purchase_trade_date: Optional[datetime] = Field(None, alias="purchaseTradeDate", description="The effective datetime that the units associated with this gain or loss where originally purchased.")
33
- purchase_settlement_date: Optional[datetime] = Field(None, alias="purchaseSettlementDate", description="The effective datetime that the units associated with this gain or loss where originally settled.")
32
+ purchase_trade_date: Optional[datetime] = Field(None, alias="purchaseTradeDate", description="The effective datetime at which the units associated with this gain or loss were originally purchased.")
33
+ purchase_settlement_date: Optional[datetime] = Field(None, alias="purchaseSettlementDate", description="The effective datetime at which the units associated with this gain or loss were originally settled.")
34
34
  purchase_price: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="purchasePrice", description="The purchase price of each unit associated with this gain or loss.")
35
35
  cost_trade_ccy: CurrencyAndAmount = Field(..., alias="costTradeCcy")
36
36
  cost_portfolio_ccy: CurrencyAndAmount = Field(..., alias="costPortfolioCcy")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.198
3
+ Version: 2.1.205
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.6632
33
- - Package version: 2.1.198
32
+ - API version: 0.11.6639
33
+ - Package version: 2.1.205
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
 
@@ -40,7 +40,7 @@ lusid/api/participations_api.py,sha256=nlVzeyfE33X9Ue9HC9rqCW3WACEPKBvcrEjFEmT8w
40
40
  lusid/api/persons_api.py,sha256=0ZUZykUD46ow8j6sXjqaxCTylzUkssOyimAxCoDMUb4,247306
41
41
  lusid/api/placements_api.py,sha256=bsX7VHZlvnxJiZ3ZPtlJ8md_exerU-Qa_BkHGVRphH8,45797
42
42
  lusid/api/portfolio_groups_api.py,sha256=IueIpi-krYvm5w-I0gkvkYAgxHXfiWejRYcW6DW8400,380452
43
- lusid/api/portfolios_api.py,sha256=azolh8b5KzRMWFPAfRSD-DczqnHjq_Kgpjtgt4qomwg,421241
43
+ lusid/api/portfolios_api.py,sha256=pXwxugbm-zQf901tDlh_zbC4odf384sQKclu1rrIWXk,421231
44
44
  lusid/api/property_definitions_api.py,sha256=I3aISrQ3USeB-Vkx8OVyakx345aEhPATghGmEtL6ApU,140367
45
45
  lusid/api/queryable_keys_api.py,sha256=1HafmN22bU1bV5H5nua8EZ5oL0pe0LZ5xkVDQTDSezg,10281
46
46
  lusid/api/quotes_api.py,sha256=QPSJ6rFAI-hsvei1QA-PoCzpHRJlcvF_SiCxyGyG678,115595
@@ -67,7 +67,7 @@ lusid/api/transaction_portfolios_api.py,sha256=7G5m6iTQXTKCc6ASdxnlVJjvFascHxEgD
67
67
  lusid/api/translation_api.py,sha256=xTAaKEW96JTDIZBXCjxSguCa7Gz4oVd5jdObUE2egwo,20092
68
68
  lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
69
69
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
70
- lusid/configuration.py,sha256=UWwHjhH8symwmIp5KRe3j_7-59FpBjOwnmzjb5TPYWc,14404
70
+ lusid/configuration.py,sha256=hfBKEd7k_DNQGD94-0VvovX831vFRFhpov9VxoLoubs,14404
71
71
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
72
72
  lusid/extensions/__init__.py,sha256=L7EF4zKjcq1g2GodEumg1-C9xKs7YrQ0QHGPi8XbpO4,629
73
73
  lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
@@ -293,7 +293,7 @@ lusid/models/credit_rating.py,sha256=3EJjCwgdDT04iclq5OTBWughXAbXc9FkOtz-x7i5rks
293
293
  lusid/models/credit_spread_curve_data.py,sha256=N2gish4RNEdHNRwo8AceZbY5dPUtKy8Lt1WTRxrDHNw,7174
294
294
  lusid/models/credit_support_annex.py,sha256=YFEtXS7mDojadeeJOfvfNVCBHjgkgBFbUMV0YA5bNtI,5420
295
295
  lusid/models/criterion_type.py,sha256=Bd9KQZuS8O0ie_vYJZAvfnKMggoJOiCdcMFpik-m-q8,772
296
- lusid/models/currency_and_amount.py,sha256=izd4FdwwuPPB79pNkbk4tuwB3-JiTUE4B-OhHyboJ9k,2277
296
+ lusid/models/currency_and_amount.py,sha256=0fnwWNfI1_gMhmZBx_dCjujbM0EgwV28c_9u5k5kmlY,2069
297
297
  lusid/models/curve_options.py,sha256=QrYx3ty0D8guh0t5mnxs6makVs3zGlJDO2-6ypIHN_c,5131
298
298
  lusid/models/custodian_account.py,sha256=u12g4jvcWG-ueWSpbBBBfpjmp09ehY3wEXcORQI-hx0,5020
299
299
  lusid/models/custodian_account_properties.py,sha256=733uiIZZOx86tQVcX0zfb6-HqF6DXKy5w4hl-9T7uSU,4363
@@ -378,7 +378,7 @@ lusid/models/exercise_event.py,sha256=EZGXFc8riKkqeCnhDIY6MVtp3RAFlBehvMU4kC_KqJ
378
378
  lusid/models/exotic_instrument.py,sha256=Nfv3cttH2eWGX_aeU6zxmLD5hsNnWC6yBSFeFS6sr80,5705
379
379
  lusid/models/expanded_group.py,sha256=e1fIiusdlI_VtjJlF4g5O_yg6A_5VDOg2LaW94CUyJU,5931
380
380
  lusid/models/expiry_event.py,sha256=o1jn1kCnF2zSL8WJ3TSuJ-E9t-s22esebwaJGrqUGKg,4686
381
- lusid/models/fee.py,sha256=NmBhi0yLXK18pRbL-jiaDlm4SrVv6Ddgm-Lc_IwaEUY,11510
381
+ lusid/models/fee.py,sha256=oMJgUsrJ3IsvK6bZlEtsTA2LF_4yncnzecVgh4w9VpU,10618
382
382
  lusid/models/fee_accrual.py,sha256=A9DaaFrEY1JqMbym_7TIcMMQxSqnQFMxuVZzljnggIk,2862
383
383
  lusid/models/fee_properties.py,sha256=Q92whmRw6aIwyxsgLVF9vntTY5WLwtrDdJMw9sSNoEQ,4232
384
384
  lusid/models/fee_request.py,sha256=aJbg758cpQ9tDD30G9_HLgnOOJcpxBvUDOPNvy7FL4E,8633
@@ -574,7 +574,7 @@ lusid/models/option_entry.py,sha256=KJfFze7xIJxeIJ7hXxJhkUydFhg9KJU4rIAfLdBaT8k,
574
574
  lusid/models/optionality_schedule.py,sha256=lZh9nWhUmmkcfzAjsM8qvTAtXf4Fm97vhIbqD-EIboU,5501
575
575
  lusid/models/order.py,sha256=-47dm6-P-pNB--pBRn6UxGCv7Az7ECBAgoykBdR3agM,9659
576
576
  lusid/models/order_by_spec.py,sha256=9RyLPdTBImMEcjhN2mq-BtMykndyNLZSpJ3xO_biaZk,2319
577
- lusid/models/order_flow_configuration.py,sha256=2Hkp1PwSVqdfawZq07A_nIoPqH-41yEhC_6aIvk3e98,1979
577
+ lusid/models/order_flow_configuration.py,sha256=qtSDRosH6YswgQBadMDy-JG3VbtwBr2Cl07eLokaAdo,2273
578
578
  lusid/models/order_graph_block.py,sha256=NkPRWJSby5JizR6KHiS1v_UxyWDQCk1sXP4e-zz2-sI,5332
579
579
  lusid/models/order_graph_block_allocation_detail.py,sha256=L51Rl6sgG8R7jiwRtSYH6R2AT09M0SaIBB7jO8ykHdc,2178
580
580
  lusid/models/order_graph_block_allocation_synopsis.py,sha256=PTlPTHowUDna144w0yNEESTbK5cZ4BWLDL_jur42Nro,2766
@@ -745,7 +745,7 @@ lusid/models/quote_series_id.py,sha256=C2P5iTb29S36znzVjaiaOFcECkKdlLjCYIgHmWZSa
745
745
  lusid/models/quote_type.py,sha256=dwYbZgzgJticaNVZmTZaYx6VgJtC30GtjDk9bPyseFQ,958
746
746
  lusid/models/raw_vendor_event.py,sha256=lQQMtXytsx4NQeC_dLWT-BVGa7GXcwJ6jKfWhtfXlTE,5529
747
747
  lusid/models/re_open_period_diary_entry_request.py,sha256=CcQqX5ekcLT_XTdWFJGZAmNQ2I5NMpzkwoLvfdoJ4X0,2792
748
- lusid/models/realised_gain_loss.py,sha256=zs9WnDKYfegeKs_QTbR9RNKyYoKCiEq0oZomoQjJg_I,7184
748
+ lusid/models/realised_gain_loss.py,sha256=SqOAkbqLzwVkwmV4V4kFRLB6n55CJJhIfSDVK7xRHvg,7190
749
749
  lusid/models/recipe_block.py,sha256=HDA6kexcMXEZXYEknTdRhyTNXi44WOmE1KtadUkVDC0,2848
750
750
  lusid/models/recipe_composer.py,sha256=p8itR-GLgssfN4fQgjCAEEVuitsEDlK_MXEBclZhvEA,3703
751
751
  lusid/models/recipe_value.py,sha256=oJJICDF14eeMhGg7tHPbA1BhCDAiWWojlRYmc1RDhVQ,3332
@@ -1076,6 +1076,6 @@ lusid/models/weighted_instruments.py,sha256=1y_y_vw4-LPsbkQx4FOzWdZc5fJnzhVkf1D3
1076
1076
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1077
1077
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1078
1078
  lusid/rest.py,sha256=TNUzQ3yLNT2L053EdR7R0vNzQh2J3TlYD1T56Dye0W0,10138
1079
- lusid_sdk-2.1.198.dist-info/METADATA,sha256=NDuxMfk7bwqJl8BkLYYgBSSoQUw7P4NkhR34ehy0urQ,188870
1080
- lusid_sdk-2.1.198.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1081
- lusid_sdk-2.1.198.dist-info/RECORD,,
1079
+ lusid_sdk-2.1.205.dist-info/METADATA,sha256=5pILXwgkJDmPtnA9d4G9bUiy-I-LmSXnaYDVH2hKFJs,188870
1080
+ lusid_sdk-2.1.205.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1081
+ lusid_sdk-2.1.205.dist-info/RECORD,,