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

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.6625\n"\
376
+ "Version of the API: 0.11.6634\n"\
377
377
  "SDK Package Version: {package_version}".\
378
378
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
379
379
 
@@ -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:
@@ -23,6 +23,7 @@ from pydantic.v1 import BaseModel, Field, StrictStr, conlist, validator
23
23
  from lusid.models.instrument_event_configuration import InstrumentEventConfiguration
24
24
  from lusid.models.link import Link
25
25
  from lusid.models.resource_id import ResourceId
26
+ from lusid.models.staged_modifications_info import StagedModificationsInfo
26
27
  from lusid.models.version import Version
27
28
 
28
29
  class PortfolioDetails(BaseModel):
@@ -42,8 +43,9 @@ class PortfolioDetails(BaseModel):
42
43
  cash_gain_loss_calculation_date: Optional[StrictStr] = Field(None, alias="cashGainLossCalculationDate", description="The option when the Cash Gain Loss to be calulated, TransactionDate/SettlementDate. Defaults to SettlementDate.")
43
44
  instrument_event_configuration: Optional[InstrumentEventConfiguration] = Field(None, alias="instrumentEventConfiguration")
44
45
  amortisation_rule_set_id: Optional[ResourceId] = Field(None, alias="amortisationRuleSetId")
46
+ staged_modifications: Optional[StagedModificationsInfo] = Field(None, alias="stagedModifications")
45
47
  links: Optional[conlist(Link)] = None
46
- __properties = ["href", "originPortfolioId", "version", "baseCurrency", "corporateActionSourceId", "subHoldingKeys", "instrumentScopes", "accountingMethod", "amortisationMethod", "transactionTypeScope", "cashGainLossCalculationDate", "instrumentEventConfiguration", "amortisationRuleSetId", "links"]
48
+ __properties = ["href", "originPortfolioId", "version", "baseCurrency", "corporateActionSourceId", "subHoldingKeys", "instrumentScopes", "accountingMethod", "amortisationMethod", "transactionTypeScope", "cashGainLossCalculationDate", "instrumentEventConfiguration", "amortisationRuleSetId", "stagedModifications", "links"]
47
49
 
48
50
  @validator('accounting_method')
49
51
  def accounting_method_validate_enum(cls, value):
@@ -94,6 +96,9 @@ class PortfolioDetails(BaseModel):
94
96
  # override the default output from pydantic by calling `to_dict()` of amortisation_rule_set_id
95
97
  if self.amortisation_rule_set_id:
96
98
  _dict['amortisationRuleSetId'] = self.amortisation_rule_set_id.to_dict()
99
+ # override the default output from pydantic by calling `to_dict()` of staged_modifications
100
+ if self.staged_modifications:
101
+ _dict['stagedModifications'] = self.staged_modifications.to_dict()
97
102
  # override the default output from pydantic by calling `to_dict()` of each item in links (list)
98
103
  _items = []
99
104
  if self.links:
@@ -161,6 +166,7 @@ class PortfolioDetails(BaseModel):
161
166
  "cash_gain_loss_calculation_date": obj.get("cashGainLossCalculationDate"),
162
167
  "instrument_event_configuration": InstrumentEventConfiguration.from_dict(obj.get("instrumentEventConfiguration")) if obj.get("instrumentEventConfiguration") is not None else None,
163
168
  "amortisation_rule_set_id": ResourceId.from_dict(obj.get("amortisationRuleSetId")) if obj.get("amortisationRuleSetId") is not None else None,
169
+ "staged_modifications": StagedModificationsInfo.from_dict(obj.get("stagedModifications")) if obj.get("stagedModifications") is not None else None,
164
170
  "links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
165
171
  })
166
172
  return _obj
@@ -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.191
3
+ Version: 2.1.200
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.6625
33
- - Package version: 2.1.191
32
+ - API version: 0.11.6634
33
+ - Package version: 2.1.200
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
 
@@ -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=jpn11zzg2Cz-4QPzS9YK5k-nQaIe47Pd3-z0Ty6Nfo8,14404
70
+ lusid/configuration.py,sha256=fjW1v8zsfYKegXXJLey8FCykKPStGruwzt_F1bsUAEE,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
@@ -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
@@ -681,7 +681,7 @@ lusid/models/placement_set_request.py,sha256=hkljmDDqllEbAjb7J0QAp_fyDKsizX8T9x4
681
681
  lusid/models/portfolio.py,sha256=vLgosL-OAM9RIFkS84augDeHUkDNuidFAsy4PrB0J4k,12718
682
682
  lusid/models/portfolio_cash_flow.py,sha256=Apnb2tfP3bJrBjhH69OLwiAOvn7lApH791owxr1wC8A,8997
683
683
  lusid/models/portfolio_cash_ladder.py,sha256=cZHdUI-PZuLYXlQDxcA9zCTRPX_cHZy0-qHng9bRggU,5462
684
- lusid/models/portfolio_details.py,sha256=NABbe06Xp0cl54_HwYeUsko51op7oFVlMqCENEaQVWs,9198
684
+ lusid/models/portfolio_details.py,sha256=dKMe60EfatUgw8K5LY09maNIFU-y1SH6RIxzJsz8EVE,9774
685
685
  lusid/models/portfolio_entity.py,sha256=2jIOdWYdtm43qhRCYWl-OLrCNIRwrk4laazBJ8h-JIU,7532
686
686
  lusid/models/portfolio_entity_id.py,sha256=TSfvLVYKSXiNH4RrHmnfT6RTWMblK-Ls2g8BbFYXup0,3421
687
687
  lusid/models/portfolio_group.py,sha256=pt4ZLAFaXINyx9d8BQ9zZAlj9lIWAzVVWsQpty2PgZA,7106
@@ -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.191.dist-info/METADATA,sha256=JPX8mqqG2ZL_zPkuHDegftu_cuuEaP50NLwDrRSgS0A,188870
1080
- lusid_sdk-2.1.191.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1081
- lusid_sdk-2.1.191.dist-info/RECORD,,
1079
+ lusid_sdk-2.1.200.dist-info/METADATA,sha256=ua2t8068LgNtHBMUU25alt0q49vmKAyMXG2dJKQMKPg,188870
1080
+ lusid_sdk-2.1.200.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1081
+ lusid_sdk-2.1.200.dist-info/RECORD,,