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

Files changed (82) hide show
  1. lusid/__init__.py +44 -0
  2. lusid/api/__init__.py +2 -0
  3. lusid/api/fund_configurations_api.py +944 -0
  4. lusid/api/funds_api.py +1 -1
  5. lusid/api/order_management_api.py +161 -2
  6. lusid/configuration.py +1 -1
  7. lusid/models/__init__.py +42 -0
  8. lusid/models/accounting_method.py +3 -0
  9. lusid/models/accumulation_event.py +3 -3
  10. lusid/models/amortisation_event.py +3 -3
  11. lusid/models/bond_coupon_event.py +3 -3
  12. lusid/models/bond_default_event.py +3 -3
  13. lusid/models/bond_principal_event.py +3 -3
  14. lusid/models/cancel_placements_response.py +153 -0
  15. lusid/models/cancelled_placement_result.py +83 -0
  16. lusid/models/capital_distribution_event.py +3 -3
  17. lusid/models/cash.py +93 -0
  18. lusid/models/cash_dividend_event.py +3 -3
  19. lusid/models/cash_flow_event.py +3 -3
  20. lusid/models/close_event.py +3 -3
  21. lusid/models/component_filter.py +85 -0
  22. lusid/models/component_rule.py +77 -0
  23. lusid/models/contract_for_difference.py +4 -2
  24. lusid/models/create_derived_transaction_portfolio_request.py +3 -3
  25. lusid/models/create_transaction_portfolio_request.py +3 -3
  26. lusid/models/dividend_option_event.py +3 -3
  27. lusid/models/dividend_reinvestment_event.py +3 -3
  28. lusid/models/exercise_event.py +3 -3
  29. lusid/models/expiry_event.py +3 -3
  30. lusid/models/fund.py +6 -1
  31. lusid/models/fund_amount.py +69 -0
  32. lusid/models/fund_configuration.py +151 -0
  33. lusid/models/fund_configuration_properties.py +115 -0
  34. lusid/models/fund_configuration_request.py +136 -0
  35. lusid/models/fund_previous_nav.py +69 -0
  36. lusid/models/fund_request.py +6 -1
  37. lusid/models/fund_valuation_point_data.py +160 -0
  38. lusid/models/future_expiry_event.py +100 -0
  39. lusid/models/futures_contract_details.py +9 -2
  40. lusid/models/fx_forward_settlement_event.py +3 -3
  41. lusid/models/informational_error_event.py +3 -3
  42. lusid/models/informational_event.py +3 -3
  43. lusid/models/instrument_event.py +6 -5
  44. lusid/models/instrument_event_type.py +1 -0
  45. lusid/models/lusid_instrument.py +3 -2
  46. lusid/models/market_data_key_rule.py +3 -3
  47. lusid/models/market_data_specific_rule.py +3 -3
  48. lusid/models/market_quote.py +3 -3
  49. lusid/models/maturity_event.py +3 -3
  50. lusid/models/merger_event.py +3 -3
  51. lusid/models/model_selection.py +3 -3
  52. lusid/models/open_event.py +3 -3
  53. lusid/models/paged_resource_list_of_fund_configuration.py +113 -0
  54. lusid/models/portfolio.py +3 -3
  55. lusid/models/portfolio_details.py +3 -3
  56. lusid/models/portfolio_without_href.py +3 -3
  57. lusid/models/previous_fund_valuation_point_data.py +79 -0
  58. lusid/models/previous_nav.py +73 -0
  59. lusid/models/previous_share_class_breakdown.py +81 -0
  60. lusid/models/pricing_model.py +1 -0
  61. lusid/models/property_definition.py +7 -1
  62. lusid/models/quote_series_id.py +4 -20
  63. lusid/models/quote_type.py +3 -0
  64. lusid/models/raw_vendor_event.py +3 -3
  65. lusid/models/reset_event.py +3 -3
  66. lusid/models/reverse_stock_split_event.py +3 -3
  67. lusid/models/scrip_dividend_event.py +3 -3
  68. lusid/models/share_class_amount.py +73 -0
  69. lusid/models/share_class_breakdown.py +171 -0
  70. lusid/models/share_class_data.py +79 -0
  71. lusid/models/share_class_details.py +108 -0
  72. lusid/models/spin_off_event.py +3 -3
  73. lusid/models/stock_dividend_event.py +3 -3
  74. lusid/models/stock_split_event.py +3 -3
  75. lusid/models/transaction_field_map.py +8 -3
  76. lusid/models/transition_event.py +3 -3
  77. lusid/models/trigger_event.py +3 -3
  78. lusid/models/unitisation_data.py +73 -0
  79. lusid/models/valuation_point_data_response.py +30 -9
  80. {lusid_sdk-2.1.254.dist-info → lusid_sdk-2.1.286.dist-info}/METADATA +31 -4
  81. {lusid_sdk-2.1.254.dist-info → lusid_sdk-2.1.286.dist-info}/RECORD +82 -60
  82. {lusid_sdk-2.1.254.dist-info → lusid_sdk-2.1.286.dist-info}/WHEEL +0 -0
@@ -0,0 +1,136 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+
21
+ from typing import Any, Dict, Optional
22
+ from pydantic.v1 import BaseModel, Field, constr, validator
23
+ from lusid.models.component_rule import ComponentRule
24
+ from lusid.models.model_property import ModelProperty
25
+
26
+ class FundConfigurationRequest(BaseModel):
27
+ """
28
+ FundConfigurationRequest
29
+ """
30
+ code: constr(strict=True, max_length=64, min_length=1) = Field(...)
31
+ display_name: Optional[constr(strict=True, max_length=256, min_length=1)] = Field(None, alias="displayName", description="The name of the Fund.")
32
+ description: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, description="A description for the Fund.")
33
+ dealing_rule: ComponentRule = Field(..., alias="dealingRule")
34
+ fund_pnl_exclusion_rule: Optional[ComponentRule] = Field(None, alias="fundPnlExclusionRule")
35
+ back_out_rule: ComponentRule = Field(..., alias="backOutRule")
36
+ properties: Optional[Dict[str, ModelProperty]] = Field(None, description="A set of properties for the Fund Configuration.")
37
+ __properties = ["code", "displayName", "description", "dealingRule", "fundPnlExclusionRule", "backOutRule", "properties"]
38
+
39
+ @validator('code')
40
+ def code_validate_regular_expression(cls, value):
41
+ """Validates the regular expression"""
42
+ if not re.match(r"^[a-zA-Z0-9\-_]+$", value):
43
+ raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9\-_]+$/")
44
+ return value
45
+
46
+ @validator('description')
47
+ def description_validate_regular_expression(cls, value):
48
+ """Validates the regular expression"""
49
+ if value is None:
50
+ return value
51
+
52
+ if not re.match(r"^[\s\S]*$", value):
53
+ raise ValueError(r"must validate the regular expression /^[\s\S]*$/")
54
+ return value
55
+
56
+ class Config:
57
+ """Pydantic configuration"""
58
+ allow_population_by_field_name = True
59
+ validate_assignment = True
60
+
61
+ def to_str(self) -> str:
62
+ """Returns the string representation of the model using alias"""
63
+ return pprint.pformat(self.dict(by_alias=True))
64
+
65
+ def to_json(self) -> str:
66
+ """Returns the JSON representation of the model using alias"""
67
+ return json.dumps(self.to_dict())
68
+
69
+ @classmethod
70
+ def from_json(cls, json_str: str) -> FundConfigurationRequest:
71
+ """Create an instance of FundConfigurationRequest from a JSON string"""
72
+ return cls.from_dict(json.loads(json_str))
73
+
74
+ def to_dict(self):
75
+ """Returns the dictionary representation of the model using alias"""
76
+ _dict = self.dict(by_alias=True,
77
+ exclude={
78
+ },
79
+ exclude_none=True)
80
+ # override the default output from pydantic by calling `to_dict()` of dealing_rule
81
+ if self.dealing_rule:
82
+ _dict['dealingRule'] = self.dealing_rule.to_dict()
83
+ # override the default output from pydantic by calling `to_dict()` of fund_pnl_exclusion_rule
84
+ if self.fund_pnl_exclusion_rule:
85
+ _dict['fundPnlExclusionRule'] = self.fund_pnl_exclusion_rule.to_dict()
86
+ # override the default output from pydantic by calling `to_dict()` of back_out_rule
87
+ if self.back_out_rule:
88
+ _dict['backOutRule'] = self.back_out_rule.to_dict()
89
+ # override the default output from pydantic by calling `to_dict()` of each value in properties (dict)
90
+ _field_dict = {}
91
+ if self.properties:
92
+ for _key in self.properties:
93
+ if self.properties[_key]:
94
+ _field_dict[_key] = self.properties[_key].to_dict()
95
+ _dict['properties'] = _field_dict
96
+ # set to None if display_name (nullable) is None
97
+ # and __fields_set__ contains the field
98
+ if self.display_name is None and "display_name" in self.__fields_set__:
99
+ _dict['displayName'] = None
100
+
101
+ # set to None if description (nullable) is None
102
+ # and __fields_set__ contains the field
103
+ if self.description is None and "description" in self.__fields_set__:
104
+ _dict['description'] = None
105
+
106
+ # set to None if properties (nullable) is None
107
+ # and __fields_set__ contains the field
108
+ if self.properties is None and "properties" in self.__fields_set__:
109
+ _dict['properties'] = None
110
+
111
+ return _dict
112
+
113
+ @classmethod
114
+ def from_dict(cls, obj: dict) -> FundConfigurationRequest:
115
+ """Create an instance of FundConfigurationRequest from a dict"""
116
+ if obj is None:
117
+ return None
118
+
119
+ if not isinstance(obj, dict):
120
+ return FundConfigurationRequest.parse_obj(obj)
121
+
122
+ _obj = FundConfigurationRequest.parse_obj({
123
+ "code": obj.get("code"),
124
+ "display_name": obj.get("displayName"),
125
+ "description": obj.get("description"),
126
+ "dealing_rule": ComponentRule.from_dict(obj.get("dealingRule")) if obj.get("dealingRule") is not None else None,
127
+ "fund_pnl_exclusion_rule": ComponentRule.from_dict(obj.get("fundPnlExclusionRule")) if obj.get("fundPnlExclusionRule") is not None else None,
128
+ "back_out_rule": ComponentRule.from_dict(obj.get("backOutRule")) if obj.get("backOutRule") is not None else None,
129
+ "properties": dict(
130
+ (_k, ModelProperty.from_dict(_v))
131
+ for _k, _v in obj.get("properties").items()
132
+ )
133
+ if obj.get("properties") is not None
134
+ else None
135
+ })
136
+ return _obj
@@ -0,0 +1,69 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+
21
+ from typing import Any, Dict, Optional, Union
22
+ from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt
23
+
24
+ class FundPreviousNAV(BaseModel):
25
+ """
26
+ FundPreviousNAV
27
+ """
28
+ amount: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="The amount of the previous NAV.")
29
+ __properties = ["amount"]
30
+
31
+ class Config:
32
+ """Pydantic configuration"""
33
+ allow_population_by_field_name = True
34
+ validate_assignment = True
35
+
36
+ def to_str(self) -> str:
37
+ """Returns the string representation of the model using alias"""
38
+ return pprint.pformat(self.dict(by_alias=True))
39
+
40
+ def to_json(self) -> str:
41
+ """Returns the JSON representation of the model using alias"""
42
+ return json.dumps(self.to_dict())
43
+
44
+ @classmethod
45
+ def from_json(cls, json_str: str) -> FundPreviousNAV:
46
+ """Create an instance of FundPreviousNAV from a JSON string"""
47
+ return cls.from_dict(json.loads(json_str))
48
+
49
+ def to_dict(self):
50
+ """Returns the dictionary representation of the model using alias"""
51
+ _dict = self.dict(by_alias=True,
52
+ exclude={
53
+ },
54
+ exclude_none=True)
55
+ return _dict
56
+
57
+ @classmethod
58
+ def from_dict(cls, obj: dict) -> FundPreviousNAV:
59
+ """Create an instance of FundPreviousNAV from a dict"""
60
+ if obj is None:
61
+ return None
62
+
63
+ if not isinstance(obj, dict):
64
+ return FundPreviousNAV.parse_obj(obj)
65
+
66
+ _obj = FundPreviousNAV.parse_obj({
67
+ "amount": obj.get("amount")
68
+ })
69
+ return _obj
@@ -32,6 +32,7 @@ class FundRequest(BaseModel):
32
32
  code: constr(strict=True, max_length=64, min_length=1) = Field(..., description="The code given for the Fund.")
33
33
  display_name: Optional[constr(strict=True, max_length=256, min_length=1)] = Field(None, alias="displayName", description="The name of the Fund.")
34
34
  description: Optional[constr(strict=True, max_length=1024, min_length=0)] = Field(None, description="A description for the Fund.")
35
+ fund_configuration_id: Optional[ResourceId] = Field(None, alias="fundConfigurationId")
35
36
  abor_id: ResourceId = Field(..., alias="aborId")
36
37
  share_class_instrument_scopes: Optional[conlist(StrictStr, max_items=1)] = Field(None, alias="shareClassInstrumentScopes", description="The scopes in which the instruments lie, currently limited to one.")
37
38
  share_class_instruments: Optional[conlist(InstrumentResolutionDetail)] = Field(None, alias="shareClassInstruments", description="Details the user-provided instrument identifiers and the instrument resolved from them.")
@@ -40,7 +41,7 @@ class FundRequest(BaseModel):
40
41
  decimal_places: Optional[conint(strict=True, le=30, ge=0)] = Field(None, alias="decimalPlaces", description="Number of decimal places for reporting")
41
42
  year_end_date: DayMonth = Field(..., alias="yearEndDate")
42
43
  properties: Optional[Dict[str, ModelProperty]] = Field(None, description="A set of properties for the Fund.")
43
- __properties = ["code", "displayName", "description", "aborId", "shareClassInstrumentScopes", "shareClassInstruments", "type", "inceptionDate", "decimalPlaces", "yearEndDate", "properties"]
44
+ __properties = ["code", "displayName", "description", "fundConfigurationId", "aborId", "shareClassInstrumentScopes", "shareClassInstruments", "type", "inceptionDate", "decimalPlaces", "yearEndDate", "properties"]
44
45
 
45
46
  @validator('code')
46
47
  def code_validate_regular_expression(cls, value):
@@ -83,6 +84,9 @@ class FundRequest(BaseModel):
83
84
  exclude={
84
85
  },
85
86
  exclude_none=True)
87
+ # override the default output from pydantic by calling `to_dict()` of fund_configuration_id
88
+ if self.fund_configuration_id:
89
+ _dict['fundConfigurationId'] = self.fund_configuration_id.to_dict()
86
90
  # override the default output from pydantic by calling `to_dict()` of abor_id
87
91
  if self.abor_id:
88
92
  _dict['aborId'] = self.abor_id.to_dict()
@@ -148,6 +152,7 @@ class FundRequest(BaseModel):
148
152
  "code": obj.get("code"),
149
153
  "display_name": obj.get("displayName"),
150
154
  "description": obj.get("description"),
155
+ "fund_configuration_id": ResourceId.from_dict(obj.get("fundConfigurationId")) if obj.get("fundConfigurationId") is not None else None,
151
156
  "abor_id": ResourceId.from_dict(obj.get("aborId")) if obj.get("aborId") is not None else None,
152
157
  "share_class_instrument_scopes": obj.get("shareClassInstrumentScopes"),
153
158
  "share_class_instruments": [InstrumentResolutionDetail.from_dict(_item) for _item in obj.get("shareClassInstruments")] if obj.get("shareClassInstruments") is not None else None,
@@ -0,0 +1,160 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+
21
+ from typing import Any, Dict, Optional, Union
22
+ from pydantic.v1 import BaseModel, Field, StrictFloat, StrictInt
23
+ from lusid.models.fee_accrual import FeeAccrual
24
+ from lusid.models.fund_amount import FundAmount
25
+ from lusid.models.previous_fund_valuation_point_data import PreviousFundValuationPointData
26
+ from lusid.models.unitisation_data import UnitisationData
27
+
28
+ class FundValuationPointData(BaseModel):
29
+ """
30
+ The Valuation Point Data for a Fund on a specified date. # noqa: E501
31
+ """
32
+ back_out: Dict[str, FundAmount] = Field(..., alias="backOut", description="Bucket of detail for the Valuation Point where data points have been 'backed out'.")
33
+ dealing: Dict[str, FundAmount] = Field(..., description="Bucket of detail for any 'Dealing' that has occured inside the queried period.")
34
+ pn_l: Dict[str, FundAmount] = Field(..., alias="pnL", description="Bucket of detail for 'PnL' that has occured inside the queried period.")
35
+ gav: Union[StrictFloat, StrictInt] = Field(..., description="The Gross Asset Value of the Fund or Share Class at the Valuation Point. This is effectively a summation of all Trial balance entries linked to accounts of types 'Asset' and 'Liabilities'.")
36
+ fees: Dict[str, FeeAccrual] = Field(..., description="Bucket of detail for any 'Fees' that have been charged in the selected period.")
37
+ nav: Union[StrictFloat, StrictInt] = Field(..., description="The Net Asset Value of the Fund or Share Class at the Valuation Point. This represents the GAV with any fees applied in the period.")
38
+ unitisation: Optional[UnitisationData] = None
39
+ miscellaneous: Optional[Dict[str, FundAmount]] = Field(None, description="Not used directly by the LUSID engines but serves as a holding area for any custom derived data points that may be useful in, for example, fee calculations).")
40
+ previous_valuation_point_data: Optional[PreviousFundValuationPointData] = Field(None, alias="previousValuationPointData")
41
+ __properties = ["backOut", "dealing", "pnL", "gav", "fees", "nav", "unitisation", "miscellaneous", "previousValuationPointData"]
42
+
43
+ class Config:
44
+ """Pydantic configuration"""
45
+ allow_population_by_field_name = True
46
+ validate_assignment = True
47
+
48
+ def to_str(self) -> str:
49
+ """Returns the string representation of the model using alias"""
50
+ return pprint.pformat(self.dict(by_alias=True))
51
+
52
+ def to_json(self) -> str:
53
+ """Returns the JSON representation of the model using alias"""
54
+ return json.dumps(self.to_dict())
55
+
56
+ @classmethod
57
+ def from_json(cls, json_str: str) -> FundValuationPointData:
58
+ """Create an instance of FundValuationPointData from a JSON string"""
59
+ return cls.from_dict(json.loads(json_str))
60
+
61
+ def to_dict(self):
62
+ """Returns the dictionary representation of the model using alias"""
63
+ _dict = self.dict(by_alias=True,
64
+ exclude={
65
+ },
66
+ exclude_none=True)
67
+ # override the default output from pydantic by calling `to_dict()` of each value in back_out (dict)
68
+ _field_dict = {}
69
+ if self.back_out:
70
+ for _key in self.back_out:
71
+ if self.back_out[_key]:
72
+ _field_dict[_key] = self.back_out[_key].to_dict()
73
+ _dict['backOut'] = _field_dict
74
+ # override the default output from pydantic by calling `to_dict()` of each value in dealing (dict)
75
+ _field_dict = {}
76
+ if self.dealing:
77
+ for _key in self.dealing:
78
+ if self.dealing[_key]:
79
+ _field_dict[_key] = self.dealing[_key].to_dict()
80
+ _dict['dealing'] = _field_dict
81
+ # override the default output from pydantic by calling `to_dict()` of each value in pn_l (dict)
82
+ _field_dict = {}
83
+ if self.pn_l:
84
+ for _key in self.pn_l:
85
+ if self.pn_l[_key]:
86
+ _field_dict[_key] = self.pn_l[_key].to_dict()
87
+ _dict['pnL'] = _field_dict
88
+ # override the default output from pydantic by calling `to_dict()` of each value in fees (dict)
89
+ _field_dict = {}
90
+ if self.fees:
91
+ for _key in self.fees:
92
+ if self.fees[_key]:
93
+ _field_dict[_key] = self.fees[_key].to_dict()
94
+ _dict['fees'] = _field_dict
95
+ # override the default output from pydantic by calling `to_dict()` of unitisation
96
+ if self.unitisation:
97
+ _dict['unitisation'] = self.unitisation.to_dict()
98
+ # override the default output from pydantic by calling `to_dict()` of each value in miscellaneous (dict)
99
+ _field_dict = {}
100
+ if self.miscellaneous:
101
+ for _key in self.miscellaneous:
102
+ if self.miscellaneous[_key]:
103
+ _field_dict[_key] = self.miscellaneous[_key].to_dict()
104
+ _dict['miscellaneous'] = _field_dict
105
+ # override the default output from pydantic by calling `to_dict()` of previous_valuation_point_data
106
+ if self.previous_valuation_point_data:
107
+ _dict['previousValuationPointData'] = self.previous_valuation_point_data.to_dict()
108
+ # set to None if miscellaneous (nullable) is None
109
+ # and __fields_set__ contains the field
110
+ if self.miscellaneous is None and "miscellaneous" in self.__fields_set__:
111
+ _dict['miscellaneous'] = None
112
+
113
+ return _dict
114
+
115
+ @classmethod
116
+ def from_dict(cls, obj: dict) -> FundValuationPointData:
117
+ """Create an instance of FundValuationPointData from a dict"""
118
+ if obj is None:
119
+ return None
120
+
121
+ if not isinstance(obj, dict):
122
+ return FundValuationPointData.parse_obj(obj)
123
+
124
+ _obj = FundValuationPointData.parse_obj({
125
+ "back_out": dict(
126
+ (_k, FundAmount.from_dict(_v))
127
+ for _k, _v in obj.get("backOut").items()
128
+ )
129
+ if obj.get("backOut") is not None
130
+ else None,
131
+ "dealing": dict(
132
+ (_k, FundAmount.from_dict(_v))
133
+ for _k, _v in obj.get("dealing").items()
134
+ )
135
+ if obj.get("dealing") is not None
136
+ else None,
137
+ "pn_l": dict(
138
+ (_k, FundAmount.from_dict(_v))
139
+ for _k, _v in obj.get("pnL").items()
140
+ )
141
+ if obj.get("pnL") is not None
142
+ else None,
143
+ "gav": obj.get("gav"),
144
+ "fees": dict(
145
+ (_k, FeeAccrual.from_dict(_v))
146
+ for _k, _v in obj.get("fees").items()
147
+ )
148
+ if obj.get("fees") is not None
149
+ else None,
150
+ "nav": obj.get("nav"),
151
+ "unitisation": UnitisationData.from_dict(obj.get("unitisation")) if obj.get("unitisation") is not None else None,
152
+ "miscellaneous": dict(
153
+ (_k, FundAmount.from_dict(_v))
154
+ for _k, _v in obj.get("miscellaneous").items()
155
+ )
156
+ if obj.get("miscellaneous") is not None
157
+ else None,
158
+ "previous_valuation_point_data": PreviousFundValuationPointData.from_dict(obj.get("previousValuationPointData")) if obj.get("previousValuationPointData") is not None else None
159
+ })
160
+ return _obj
@@ -0,0 +1,100 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from datetime import datetime
21
+ from typing import Any, Dict, Optional, Union
22
+ from pydantic.v1 import Field, StrictFloat, StrictInt, StrictStr, validator
23
+ from lusid.models.instrument_event import InstrumentEvent
24
+
25
+ class FutureExpiryEvent(InstrumentEvent):
26
+ """
27
+ Definition of a Future Expiry Event. This is an event that describes the expiry of a Future instrument. # noqa: E501
28
+ """
29
+ expiry_date: datetime = Field(..., alias="expiryDate", description="Expiry date of the Future instrument.")
30
+ settlement_currency: StrictStr = Field(..., alias="settlementCurrency", description="Settlement currency of the Future instrument.")
31
+ notional_amount_per_unit: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="notionalAmountPerUnit", description="The notional amount of each unit in the Future instrument.")
32
+ instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent")
33
+ additional_properties: Dict[str, Any] = {}
34
+ __properties = ["instrumentEventType", "expiryDate", "settlementCurrency", "notionalAmountPerUnit"]
35
+
36
+ @validator('instrument_event_type')
37
+ def instrument_event_type_validate_enum(cls, value):
38
+ """Validates the enum"""
39
+ if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent'):
40
+ raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent')")
41
+ return value
42
+
43
+ class Config:
44
+ """Pydantic configuration"""
45
+ allow_population_by_field_name = True
46
+ validate_assignment = True
47
+
48
+ def to_str(self) -> str:
49
+ """Returns the string representation of the model using alias"""
50
+ return pprint.pformat(self.dict(by_alias=True))
51
+
52
+ def to_json(self) -> str:
53
+ """Returns the JSON representation of the model using alias"""
54
+ return json.dumps(self.to_dict())
55
+
56
+ @classmethod
57
+ def from_json(cls, json_str: str) -> FutureExpiryEvent:
58
+ """Create an instance of FutureExpiryEvent from a JSON string"""
59
+ return cls.from_dict(json.loads(json_str))
60
+
61
+ def to_dict(self):
62
+ """Returns the dictionary representation of the model using alias"""
63
+ _dict = self.dict(by_alias=True,
64
+ exclude={
65
+ "additional_properties"
66
+ },
67
+ exclude_none=True)
68
+ # puts key-value pairs in additional_properties in the top level
69
+ if self.additional_properties is not None:
70
+ for _key, _value in self.additional_properties.items():
71
+ _dict[_key] = _value
72
+
73
+ # set to None if notional_amount_per_unit (nullable) is None
74
+ # and __fields_set__ contains the field
75
+ if self.notional_amount_per_unit is None and "notional_amount_per_unit" in self.__fields_set__:
76
+ _dict['notionalAmountPerUnit'] = None
77
+
78
+ return _dict
79
+
80
+ @classmethod
81
+ def from_dict(cls, obj: dict) -> FutureExpiryEvent:
82
+ """Create an instance of FutureExpiryEvent from a dict"""
83
+ if obj is None:
84
+ return None
85
+
86
+ if not isinstance(obj, dict):
87
+ return FutureExpiryEvent.parse_obj(obj)
88
+
89
+ _obj = FutureExpiryEvent.parse_obj({
90
+ "instrument_event_type": obj.get("instrumentEventType"),
91
+ "expiry_date": obj.get("expiryDate"),
92
+ "settlement_currency": obj.get("settlementCurrency"),
93
+ "notional_amount_per_unit": obj.get("notionalAmountPerUnit")
94
+ })
95
+ # store additional fields in additional_properties
96
+ for _key in obj.keys():
97
+ if _key not in cls.__properties:
98
+ _obj.additional_properties[_key] = obj.get(_key)
99
+
100
+ return _obj
@@ -39,7 +39,8 @@ class FuturesContractDetails(BaseModel):
39
39
  ticker_step: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="tickerStep", description="Minimal step size change in ticker.")
40
40
  unit_value: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="unitValue", description="The value in the currency of a 1 unit change in the contract price.")
41
41
  calendars: Optional[conlist(StrictStr)] = Field(None, description="Holiday calendars that apply to yield-to-price conversions (i.e. for BRL futures).")
42
- __properties = ["domCcy", "fgnCcy", "assetClass", "contractCode", "contractMonth", "contractSize", "convention", "country", "description", "exchangeCode", "exchangeName", "tickerStep", "unitValue", "calendars"]
42
+ delivery_type: Optional[StrictStr] = Field(None, alias="deliveryType", description="Delivery type to be used on settling the contract. Optional: Defaults to DeliveryType.Physical if not provided. Supported string (enumeration) values are: [Cash, Physical].")
43
+ __properties = ["domCcy", "fgnCcy", "assetClass", "contractCode", "contractMonth", "contractSize", "convention", "country", "description", "exchangeCode", "exchangeName", "tickerStep", "unitValue", "calendars", "deliveryType"]
43
44
 
44
45
  class Config:
45
46
  """Pydantic configuration"""
@@ -100,6 +101,11 @@ class FuturesContractDetails(BaseModel):
100
101
  if self.calendars is None and "calendars" in self.__fields_set__:
101
102
  _dict['calendars'] = None
102
103
 
104
+ # set to None if delivery_type (nullable) is None
105
+ # and __fields_set__ contains the field
106
+ if self.delivery_type is None and "delivery_type" in self.__fields_set__:
107
+ _dict['deliveryType'] = None
108
+
103
109
  return _dict
104
110
 
105
111
  @classmethod
@@ -125,6 +131,7 @@ class FuturesContractDetails(BaseModel):
125
131
  "exchange_name": obj.get("exchangeName"),
126
132
  "ticker_step": obj.get("tickerStep"),
127
133
  "unit_value": obj.get("unitValue"),
128
- "calendars": obj.get("calendars")
134
+ "calendars": obj.get("calendars"),
135
+ "delivery_type": obj.get("deliveryType")
129
136
  })
130
137
  return _obj
@@ -37,15 +37,15 @@ class FxForwardSettlementEvent(InstrumentEvent):
37
37
  cash_flow_per_unit: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="cashFlowPerUnit", description="Optional. Required if the event is an NDF (i.e. if IsNdf = true). CashFlow per unit. Paid in the SettlementCcy.")
38
38
  domestic_to_foreign_rate: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="domesticToForeignRate", description="Domestic currency to foreign currency FX rate. Not required, only used to override quotes.")
39
39
  domestic_to_settlement_rate: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="domesticToSettlementRate", description="Domestic currency to settlement currency FX rate Not required, only used to override quotes.")
40
- instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent")
40
+ instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent")
41
41
  additional_properties: Dict[str, Any] = {}
42
42
  __properties = ["instrumentEventType", "maturityDate", "domAmountPerUnit", "domCcy", "fgnAmountPerUnit", "fgnCcy", "isNdf", "fixingDate", "settlementCcy", "cashFlowPerUnit", "domesticToForeignRate", "domesticToSettlementRate"]
43
43
 
44
44
  @validator('instrument_event_type')
45
45
  def instrument_event_type_validate_enum(cls, value):
46
46
  """Validates the enum"""
47
- if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent'):
48
- raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent')")
47
+ if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent'):
48
+ raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent')")
49
49
  return value
50
50
 
51
51
  class Config:
@@ -29,15 +29,15 @@ class InformationalErrorEvent(InstrumentEvent):
29
29
  error_detail: constr(strict=True, min_length=1) = Field(..., alias="errorDetail", description="The details of the error")
30
30
  error_reason: constr(strict=True, min_length=1) = Field(..., alias="errorReason", description="The error reason")
31
31
  effective_at: datetime = Field(..., alias="effectiveAt", description="The effective date of the evaulation")
32
- instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent")
32
+ instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent")
33
33
  additional_properties: Dict[str, Any] = {}
34
34
  __properties = ["instrumentEventType", "errorDetail", "errorReason", "effectiveAt"]
35
35
 
36
36
  @validator('instrument_event_type')
37
37
  def instrument_event_type_validate_enum(cls, value):
38
38
  """Validates the enum"""
39
- if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent'):
40
- raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent')")
39
+ if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent'):
40
+ raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent')")
41
41
  return value
42
42
 
43
43
  class Config:
@@ -31,15 +31,15 @@ class InformationalEvent(InstrumentEvent):
31
31
  anchor_date: datetime = Field(..., alias="anchorDate", description="In the case of a point event, the single date on which the event occurs. In the case of an event which is spread over a window, e.g. a barrier or American option, the start of that window.")
32
32
  event_window_end: Optional[datetime] = Field(None, alias="eventWindowEnd", description="In the case of a point event this is identical to the anchor date. In the case of an event that is spread over a window, this is the end of that window.")
33
33
  diagnostics: Optional[ResultValueDictionary] = None
34
- instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent")
34
+ instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent")
35
35
  additional_properties: Dict[str, Any] = {}
36
36
  __properties = ["instrumentEventType", "eventType", "anchorDate", "eventWindowEnd", "diagnostics"]
37
37
 
38
38
  @validator('instrument_event_type')
39
39
  def instrument_event_type_validate_enum(cls, value):
40
40
  """Validates the enum"""
41
- if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent'):
42
- raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent')")
41
+ if value not in ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent'):
42
+ raise ValueError("must be one of enum values ('TransitionEvent', 'InformationalEvent', 'OpenEvent', 'CloseEvent', 'StockSplitEvent', 'BondDefaultEvent', 'CashDividendEvent', 'AmortisationEvent', 'CashFlowEvent', 'ExerciseEvent', 'ResetEvent', 'TriggerEvent', 'RawVendorEvent', 'InformationalErrorEvent', 'BondCouponEvent', 'DividendReinvestmentEvent', 'AccumulationEvent', 'BondPrincipalEvent', 'DividendOptionEvent', 'MaturityEvent', 'FxForwardSettlementEvent', 'ExpiryEvent', 'ScripDividendEvent', 'StockDividendEvent', 'ReverseStockSplitEvent', 'CapitalDistributionEvent', 'SpinOffEvent', 'MergerEvent', 'FutureExpiryEvent')")
43
43
  return value
44
44
 
45
45
  class Config: