lusid-sdk 2.1.590__py3-none-any.whl → 2.1.637__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/__init__.py +42 -0
- lusid/api/__init__.py +2 -0
- lusid/api/chart_of_accounts_api.py +6 -6
- lusid/api/corporate_action_sources_api.py +6 -6
- lusid/api/entities_api.py +24 -24
- lusid/api/funds_api.py +438 -1
- lusid/api/order_management_api.py +16 -8
- lusid/api/staged_modifications_api.py +12 -12
- lusid/api/timelines_api.py +1094 -0
- lusid/api/transaction_portfolios_api.py +189 -6
- lusid/api/workspace_api.py +96 -48
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +40 -0
- lusid/models/accounted_transaction.py +88 -0
- lusid/models/accumulation_event.py +3 -3
- lusid/models/adjust_global_commitment_event.py +93 -0
- lusid/models/amortisation_event.py +3 -3
- lusid/models/basket.py +3 -3
- lusid/models/bond.py +11 -5
- lusid/models/bond_coupon_event.py +3 -3
- lusid/models/bond_default_event.py +3 -3
- lusid/models/bond_principal_event.py +3 -3
- lusid/models/bonus_issue_event.py +3 -3
- lusid/models/call_on_intermediate_securities_event.py +3 -3
- lusid/models/cancel_single_holding_adjustment_request.py +96 -0
- lusid/models/cap_floor.py +22 -7
- lusid/models/capital_distribution_event.py +3 -3
- lusid/models/cash.py +3 -3
- lusid/models/cash_dividend_event.py +3 -3
- lusid/models/cash_flow_event.py +3 -3
- lusid/models/cash_perpetual.py +3 -3
- lusid/models/cds_credit_event.py +3 -3
- lusid/models/cds_index.py +3 -3
- lusid/models/cdx_credit_event.py +3 -3
- lusid/models/close_event.py +3 -3
- lusid/models/closed_period.py +128 -0
- lusid/models/complete_portfolio.py +3 -3
- lusid/models/complex_bond.py +20 -7
- lusid/models/contract_details.py +101 -0
- lusid/models/contract_for_difference.py +3 -3
- lusid/models/contract_initialisation_event.py +99 -0
- lusid/models/create_closed_period_request.py +96 -0
- lusid/models/create_derived_property_definition_request.py +8 -6
- lusid/models/create_derived_transaction_portfolio_request.py +8 -2
- lusid/models/create_property_definition_request.py +3 -3
- lusid/models/create_timeline_request.py +102 -0
- lusid/models/credit_default_swap.py +3 -3
- lusid/models/credit_premium_cash_flow_event.py +3 -3
- lusid/models/dependency_source_filter.py +19 -4
- lusid/models/dividend_option_event.py +3 -3
- lusid/models/dividend_reinvestment_event.py +3 -3
- lusid/models/drawdown_event.py +99 -0
- lusid/models/early_redemption_event.py +3 -3
- lusid/models/eligibility_calculation.py +6 -4
- lusid/models/equity.py +3 -3
- lusid/models/equity_option.py +29 -8
- lusid/models/equity_swap.py +3 -3
- lusid/models/exchange_traded_option.py +12 -6
- lusid/models/exercise_event.py +3 -3
- lusid/models/exotic_instrument.py +3 -3
- lusid/models/expiry_event.py +3 -3
- lusid/models/fee_accrual.py +3 -1
- lusid/models/fixed_leg.py +3 -3
- lusid/models/flexible_deposit.py +105 -0
- lusid/models/flexible_loan.py +3 -3
- lusid/models/floating_leg.py +3 -3
- lusid/models/forward_rate_agreement.py +3 -3
- lusid/models/fund_share_class.py +3 -3
- lusid/models/funding_leg.py +3 -3
- lusid/models/future.py +19 -7
- lusid/models/future_expiry_event.py +3 -3
- lusid/models/future_mark_to_market_event.py +100 -0
- lusid/models/fx_forward.py +3 -3
- lusid/models/fx_forward_settlement_event.py +3 -3
- lusid/models/fx_option.py +3 -3
- lusid/models/fx_swap.py +3 -3
- lusid/models/group_reconciliation_summary.py +2 -2
- lusid/models/inflation_leg.py +3 -3
- lusid/models/inflation_linked_bond.py +11 -5
- lusid/models/inflation_swap.py +3 -3
- lusid/models/informational_error_event.py +3 -3
- lusid/models/informational_event.py +3 -3
- lusid/models/instrument_event.py +10 -5
- lusid/models/instrument_event_instruction.py +9 -2
- lusid/models/instrument_event_instruction_request.py +10 -3
- lusid/models/instrument_event_type.py +5 -0
- lusid/models/instrument_leg.py +3 -3
- lusid/models/instrument_type.py +1 -0
- lusid/models/interest_rate_swap.py +3 -3
- lusid/models/interest_rate_swaption.py +4 -4
- lusid/models/intermediate_securities_distribution_event.py +3 -3
- lusid/models/loan_facility.py +3 -3
- lusid/models/loan_interest_repayment_event.py +97 -0
- lusid/models/lusid_instrument.py +6 -5
- lusid/models/mark_to_market_conventions.py +74 -0
- lusid/models/market_data_key_rule.py +1 -1
- lusid/models/market_data_specific_rule.py +1 -1
- lusid/models/mastered_instrument.py +3 -3
- lusid/models/maturity_event.py +3 -3
- lusid/models/mbs_coupon_event.py +3 -3
- lusid/models/mbs_interest_deferral_event.py +3 -3
- lusid/models/mbs_interest_shortfall_event.py +3 -3
- lusid/models/mbs_principal_event.py +3 -3
- lusid/models/mbs_principal_write_off_event.py +3 -3
- lusid/models/merger_event.py +3 -3
- lusid/models/open_event.py +3 -3
- lusid/models/option_exercise_cash_event.py +3 -3
- lusid/models/option_exercise_physical_event.py +3 -3
- lusid/models/output_transaction.py +7 -1
- lusid/models/pnl_journal_entry_line.py +95 -0
- lusid/models/portfolio.py +3 -3
- lusid/models/portfolio_id.py +80 -0
- lusid/models/portfolio_search_result.py +3 -3
- lusid/models/portfolio_type.py +1 -0
- lusid/models/portfolio_without_href.py +3 -3
- lusid/models/property_definition.py +6 -4
- lusid/models/property_definition_search_result.py +6 -4
- lusid/models/property_domain.py +1 -0
- lusid/models/protection_payout_cash_flow_event.py +3 -3
- lusid/models/raw_vendor_event.py +3 -3
- lusid/models/reference_instrument.py +3 -3
- lusid/models/repo.py +3 -3
- lusid/models/reset_event.py +3 -3
- lusid/models/reverse_stock_split_event.py +3 -3
- lusid/models/scrip_dividend_event.py +3 -3
- lusid/models/side_definition.py +8 -1
- lusid/models/side_definition_request.py +9 -2
- lusid/models/simple_cash_flow_loan.py +3 -3
- lusid/models/simple_instrument.py +3 -3
- lusid/models/spin_off_event.py +3 -3
- lusid/models/stock_dividend_event.py +3 -3
- lusid/models/stock_split_event.py +3 -3
- lusid/models/swap_cash_flow_event.py +3 -3
- lusid/models/swap_principal_event.py +3 -3
- lusid/models/tender_event.py +3 -3
- lusid/models/term_deposit.py +3 -3
- lusid/models/term_deposit_interest_event.py +3 -3
- lusid/models/term_deposit_principal_event.py +3 -3
- lusid/models/timeline.py +135 -0
- lusid/models/total_return_swap.py +3 -3
- lusid/models/trading_conventions.py +73 -0
- lusid/models/transition_event.py +3 -3
- lusid/models/trigger_event.py +3 -3
- lusid/models/update_derived_property_definition_request.py +5 -3
- lusid/models/update_timeline_request.py +96 -0
- lusid/models/valuation_point_resource_list_of_accounted_transaction.py +125 -0
- lusid/models/valuation_point_resource_list_of_pnl_journal_entry_line.py +125 -0
- lusid/models/workspace.py +1 -1
- lusid/models/workspace_creation_request.py +1 -1
- lusid/models/workspace_item.py +4 -2
- lusid/models/workspace_item_creation_request.py +11 -2
- {lusid_sdk-2.1.590.dist-info → lusid_sdk-2.1.637.dist-info}/METADATA +40 -10
- {lusid_sdk-2.1.590.dist-info → lusid_sdk-2.1.637.dist-info}/RECORD +154 -133
- {lusid_sdk-2.1.590.dist-info → lusid_sdk-2.1.637.dist-info}/WHEEL +1 -1
lusid/models/__init__.py
CHANGED
@@ -31,6 +31,7 @@ from lusid.models.access_metadata_operation import AccessMetadataOperation
|
|
31
31
|
from lusid.models.access_metadata_value import AccessMetadataValue
|
32
32
|
from lusid.models.account import Account
|
33
33
|
from lusid.models.account_properties import AccountProperties
|
34
|
+
from lusid.models.accounted_transaction import AccountedTransaction
|
34
35
|
from lusid.models.accounting_method import AccountingMethod
|
35
36
|
from lusid.models.accounts_upsert_response import AccountsUpsertResponse
|
36
37
|
from lusid.models.accumulation_event import AccumulationEvent
|
@@ -45,6 +46,7 @@ from lusid.models.address_key_filter import AddressKeyFilter
|
|
45
46
|
from lusid.models.address_key_list import AddressKeyList
|
46
47
|
from lusid.models.address_key_list_compliance_parameter import AddressKeyListComplianceParameter
|
47
48
|
from lusid.models.address_key_option_definition import AddressKeyOptionDefinition
|
49
|
+
from lusid.models.adjust_global_commitment_event import AdjustGlobalCommitmentEvent
|
48
50
|
from lusid.models.adjust_holding import AdjustHolding
|
49
51
|
from lusid.models.adjust_holding_for_date_request import AdjustHoldingForDateRequest
|
50
52
|
from lusid.models.adjust_holding_request import AdjustHoldingRequest
|
@@ -122,6 +124,7 @@ from lusid.models.cancel_orders_and_move_remaining_request import CancelOrdersAn
|
|
122
124
|
from lusid.models.cancel_orders_and_move_remaining_response import CancelOrdersAndMoveRemainingResponse
|
123
125
|
from lusid.models.cancel_orders_response import CancelOrdersResponse
|
124
126
|
from lusid.models.cancel_placements_response import CancelPlacementsResponse
|
127
|
+
from lusid.models.cancel_single_holding_adjustment_request import CancelSingleHoldingAdjustmentRequest
|
125
128
|
from lusid.models.cancelled_order_result import CancelledOrderResult
|
126
129
|
from lusid.models.cancelled_placement_result import CancelledPlacementResult
|
127
130
|
from lusid.models.cap_floor import CapFloor
|
@@ -162,6 +165,7 @@ from lusid.models.cleardown_module_rules_updated_response import CleardownModule
|
|
162
165
|
from lusid.models.client import Client
|
163
166
|
from lusid.models.close_event import CloseEvent
|
164
167
|
from lusid.models.close_period_diary_entry_request import ClosePeriodDiaryEntryRequest
|
168
|
+
from lusid.models.closed_period import ClosedPeriod
|
165
169
|
from lusid.models.comparison_attribute_value_pair import ComparisonAttributeValuePair
|
166
170
|
from lusid.models.complete_portfolio import CompletePortfolio
|
167
171
|
from lusid.models.complete_relation import CompleteRelation
|
@@ -208,7 +212,9 @@ from lusid.models.compounding import Compounding
|
|
208
212
|
from lusid.models.configuration_recipe import ConfigurationRecipe
|
209
213
|
from lusid.models.constant_volatility_surface import ConstantVolatilitySurface
|
210
214
|
from lusid.models.constituents_adjustment_header import ConstituentsAdjustmentHeader
|
215
|
+
from lusid.models.contract_details import ContractDetails
|
211
216
|
from lusid.models.contract_for_difference import ContractForDifference
|
217
|
+
from lusid.models.contract_initialisation_event import ContractInitialisationEvent
|
212
218
|
from lusid.models.contribution_to_non_passing_rule_detail import ContributionToNonPassingRuleDetail
|
213
219
|
from lusid.models.corporate_action import CorporateAction
|
214
220
|
from lusid.models.corporate_action_source import CorporateActionSource
|
@@ -222,6 +228,7 @@ from lusid.models.counterparty_signatory import CounterpartySignatory
|
|
222
228
|
from lusid.models.create_address_key_definition_request import CreateAddressKeyDefinitionRequest
|
223
229
|
from lusid.models.create_amortisation_rule_set_request import CreateAmortisationRuleSetRequest
|
224
230
|
from lusid.models.create_calendar_request import CreateCalendarRequest
|
231
|
+
from lusid.models.create_closed_period_request import CreateClosedPeriodRequest
|
225
232
|
from lusid.models.create_compliance_template_request import CreateComplianceTemplateRequest
|
226
233
|
from lusid.models.create_corporate_action_source_request import CreateCorporateActionSourceRequest
|
227
234
|
from lusid.models.create_custom_entity_type_request import CreateCustomEntityTypeRequest
|
@@ -246,6 +253,7 @@ from lusid.models.create_relationship_request import CreateRelationshipRequest
|
|
246
253
|
from lusid.models.create_sequence_request import CreateSequenceRequest
|
247
254
|
from lusid.models.create_staging_rule_set_request import CreateStagingRuleSetRequest
|
248
255
|
from lusid.models.create_tax_rule_set_request import CreateTaxRuleSetRequest
|
256
|
+
from lusid.models.create_timeline_request import CreateTimelineRequest
|
249
257
|
from lusid.models.create_trade_tickets_response import CreateTradeTicketsResponse
|
250
258
|
from lusid.models.create_transaction_portfolio_request import CreateTransactionPortfolioRequest
|
251
259
|
from lusid.models.create_unit_definition import CreateUnitDefinition
|
@@ -313,6 +321,7 @@ from lusid.models.discounting_dependency import DiscountingDependency
|
|
313
321
|
from lusid.models.discounting_method import DiscountingMethod
|
314
322
|
from lusid.models.dividend_option_event import DividendOptionEvent
|
315
323
|
from lusid.models.dividend_reinvestment_event import DividendReinvestmentEvent
|
324
|
+
from lusid.models.drawdown_event import DrawdownEvent
|
316
325
|
from lusid.models.early_redemption_election import EarlyRedemptionElection
|
317
326
|
from lusid.models.early_redemption_event import EarlyRedemptionEvent
|
318
327
|
from lusid.models.economic_dependency import EconomicDependency
|
@@ -366,6 +375,7 @@ from lusid.models.filter_step_request import FilterStepRequest
|
|
366
375
|
from lusid.models.fixed_leg import FixedLeg
|
367
376
|
from lusid.models.fixed_leg_all_of_overrides import FixedLegAllOfOverrides
|
368
377
|
from lusid.models.fixed_schedule import FixedSchedule
|
378
|
+
from lusid.models.flexible_deposit import FlexibleDeposit
|
369
379
|
from lusid.models.flexible_loan import FlexibleLoan
|
370
380
|
from lusid.models.float_schedule import FloatSchedule
|
371
381
|
from lusid.models.floating_leg import FloatingLeg
|
@@ -390,6 +400,7 @@ from lusid.models.funding_leg import FundingLeg
|
|
390
400
|
from lusid.models.funding_leg_options import FundingLegOptions
|
391
401
|
from lusid.models.future import Future
|
392
402
|
from lusid.models.future_expiry_event import FutureExpiryEvent
|
403
|
+
from lusid.models.future_mark_to_market_event import FutureMarkToMarketEvent
|
393
404
|
from lusid.models.futures_contract_details import FuturesContractDetails
|
394
405
|
from lusid.models.fx_conventions import FxConventions
|
395
406
|
from lusid.models.fx_dependency import FxDependency
|
@@ -543,6 +554,7 @@ from lusid.models.list_aggregation_reconciliation import ListAggregationReconcil
|
|
543
554
|
from lusid.models.list_aggregation_response import ListAggregationResponse
|
544
555
|
from lusid.models.list_complex_market_data_with_meta_data_response import ListComplexMarketDataWithMetaDataResponse
|
545
556
|
from lusid.models.loan_facility import LoanFacility
|
557
|
+
from lusid.models.loan_interest_repayment_event import LoanInterestRepaymentEvent
|
546
558
|
from lusid.models.loan_period import LoanPeriod
|
547
559
|
from lusid.models.lock_period_diary_entry_request import LockPeriodDiaryEntryRequest
|
548
560
|
from lusid.models.lusid_instrument import LusidInstrument
|
@@ -553,6 +565,7 @@ from lusid.models.lusid_validation_problem_details import LusidValidationProblem
|
|
553
565
|
from lusid.models.mapped_string import MappedString
|
554
566
|
from lusid.models.mapping import Mapping
|
555
567
|
from lusid.models.mapping_rule import MappingRule
|
568
|
+
from lusid.models.mark_to_market_conventions import MarkToMarketConventions
|
556
569
|
from lusid.models.market_context import MarketContext
|
557
570
|
from lusid.models.market_context_suppliers import MarketContextSuppliers
|
558
571
|
from lusid.models.market_data_key_rule import MarketDataKeyRule
|
@@ -716,6 +729,7 @@ from lusid.models.placement import Placement
|
|
716
729
|
from lusid.models.placement_request import PlacementRequest
|
717
730
|
from lusid.models.placement_set_request import PlacementSetRequest
|
718
731
|
from lusid.models.placement_update_request import PlacementUpdateRequest
|
732
|
+
from lusid.models.pnl_journal_entry_line import PnlJournalEntryLine
|
719
733
|
from lusid.models.portfolio import Portfolio
|
720
734
|
from lusid.models.portfolio_cash_flow import PortfolioCashFlow
|
721
735
|
from lusid.models.portfolio_cash_ladder import PortfolioCashLadder
|
@@ -729,6 +743,7 @@ from lusid.models.portfolio_group_id_list_compliance_parameter import PortfolioG
|
|
729
743
|
from lusid.models.portfolio_group_properties import PortfolioGroupProperties
|
730
744
|
from lusid.models.portfolio_group_search_result import PortfolioGroupSearchResult
|
731
745
|
from lusid.models.portfolio_holding import PortfolioHolding
|
746
|
+
from lusid.models.portfolio_id import PortfolioId
|
732
747
|
from lusid.models.portfolio_id_compliance_parameter import PortfolioIdComplianceParameter
|
733
748
|
from lusid.models.portfolio_id_list import PortfolioIdList
|
734
749
|
from lusid.models.portfolio_id_list_compliance_parameter import PortfolioIdListComplianceParameter
|
@@ -989,10 +1004,12 @@ from lusid.models.tender_event import TenderEvent
|
|
989
1004
|
from lusid.models.term_deposit import TermDeposit
|
990
1005
|
from lusid.models.term_deposit_interest_event import TermDepositInterestEvent
|
991
1006
|
from lusid.models.term_deposit_principal_event import TermDepositPrincipalEvent
|
1007
|
+
from lusid.models.timeline import Timeline
|
992
1008
|
from lusid.models.total_return_swap import TotalReturnSwap
|
993
1009
|
from lusid.models.touch import Touch
|
994
1010
|
from lusid.models.trade_ticket import TradeTicket
|
995
1011
|
from lusid.models.trade_ticket_type import TradeTicketType
|
1012
|
+
from lusid.models.trading_conventions import TradingConventions
|
996
1013
|
from lusid.models.transaction import Transaction
|
997
1014
|
from lusid.models.transaction_configuration_data import TransactionConfigurationData
|
998
1015
|
from lusid.models.transaction_configuration_data_request import TransactionConfigurationDataRequest
|
@@ -1072,6 +1089,7 @@ from lusid.models.update_reference_data_request import UpdateReferenceDataReques
|
|
1072
1089
|
from lusid.models.update_relationship_definition_request import UpdateRelationshipDefinitionRequest
|
1073
1090
|
from lusid.models.update_staging_rule_set_request import UpdateStagingRuleSetRequest
|
1074
1091
|
from lusid.models.update_tax_rule_set_request import UpdateTaxRuleSetRequest
|
1092
|
+
from lusid.models.update_timeline_request import UpdateTimelineRequest
|
1075
1093
|
from lusid.models.update_unit_request import UpdateUnitRequest
|
1076
1094
|
from lusid.models.upsert_cds_flow_conventions_request import UpsertCdsFlowConventionsRequest
|
1077
1095
|
from lusid.models.upsert_complex_market_data_request import UpsertComplexMarketDataRequest
|
@@ -1123,7 +1141,9 @@ from lusid.models.valuation_point_data_query_parameters import ValuationPointDat
|
|
1123
1141
|
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
1124
1142
|
from lusid.models.valuation_point_data_response import ValuationPointDataResponse
|
1125
1143
|
from lusid.models.valuation_point_overview import ValuationPointOverview
|
1144
|
+
from lusid.models.valuation_point_resource_list_of_accounted_transaction import ValuationPointResourceListOfAccountedTransaction
|
1126
1145
|
from lusid.models.valuation_point_resource_list_of_journal_entry_line import ValuationPointResourceListOfJournalEntryLine
|
1146
|
+
from lusid.models.valuation_point_resource_list_of_pnl_journal_entry_line import ValuationPointResourceListOfPnlJournalEntryLine
|
1127
1147
|
from lusid.models.valuation_point_resource_list_of_trial_balance import ValuationPointResourceListOfTrialBalance
|
1128
1148
|
from lusid.models.valuation_request import ValuationRequest
|
1129
1149
|
from lusid.models.valuation_schedule import ValuationSchedule
|
@@ -1178,6 +1198,7 @@ __all__ = [
|
|
1178
1198
|
"AccessMetadataValue",
|
1179
1199
|
"Account",
|
1180
1200
|
"AccountProperties",
|
1201
|
+
"AccountedTransaction",
|
1181
1202
|
"AccountingMethod",
|
1182
1203
|
"AccountsUpsertResponse",
|
1183
1204
|
"AccumulationEvent",
|
@@ -1192,6 +1213,7 @@ __all__ = [
|
|
1192
1213
|
"AddressKeyList",
|
1193
1214
|
"AddressKeyListComplianceParameter",
|
1194
1215
|
"AddressKeyOptionDefinition",
|
1216
|
+
"AdjustGlobalCommitmentEvent",
|
1195
1217
|
"AdjustHolding",
|
1196
1218
|
"AdjustHoldingForDateRequest",
|
1197
1219
|
"AdjustHoldingRequest",
|
@@ -1269,6 +1291,7 @@ __all__ = [
|
|
1269
1291
|
"CancelOrdersAndMoveRemainingResponse",
|
1270
1292
|
"CancelOrdersResponse",
|
1271
1293
|
"CancelPlacementsResponse",
|
1294
|
+
"CancelSingleHoldingAdjustmentRequest",
|
1272
1295
|
"CancelledOrderResult",
|
1273
1296
|
"CancelledPlacementResult",
|
1274
1297
|
"CapFloor",
|
@@ -1309,6 +1332,7 @@ __all__ = [
|
|
1309
1332
|
"Client",
|
1310
1333
|
"CloseEvent",
|
1311
1334
|
"ClosePeriodDiaryEntryRequest",
|
1335
|
+
"ClosedPeriod",
|
1312
1336
|
"ComparisonAttributeValuePair",
|
1313
1337
|
"CompletePortfolio",
|
1314
1338
|
"CompleteRelation",
|
@@ -1355,7 +1379,9 @@ __all__ = [
|
|
1355
1379
|
"ConfigurationRecipe",
|
1356
1380
|
"ConstantVolatilitySurface",
|
1357
1381
|
"ConstituentsAdjustmentHeader",
|
1382
|
+
"ContractDetails",
|
1358
1383
|
"ContractForDifference",
|
1384
|
+
"ContractInitialisationEvent",
|
1359
1385
|
"ContributionToNonPassingRuleDetail",
|
1360
1386
|
"CorporateAction",
|
1361
1387
|
"CorporateActionSource",
|
@@ -1369,6 +1395,7 @@ __all__ = [
|
|
1369
1395
|
"CreateAddressKeyDefinitionRequest",
|
1370
1396
|
"CreateAmortisationRuleSetRequest",
|
1371
1397
|
"CreateCalendarRequest",
|
1398
|
+
"CreateClosedPeriodRequest",
|
1372
1399
|
"CreateComplianceTemplateRequest",
|
1373
1400
|
"CreateCorporateActionSourceRequest",
|
1374
1401
|
"CreateCustomEntityTypeRequest",
|
@@ -1393,6 +1420,7 @@ __all__ = [
|
|
1393
1420
|
"CreateSequenceRequest",
|
1394
1421
|
"CreateStagingRuleSetRequest",
|
1395
1422
|
"CreateTaxRuleSetRequest",
|
1423
|
+
"CreateTimelineRequest",
|
1396
1424
|
"CreateTradeTicketsResponse",
|
1397
1425
|
"CreateTransactionPortfolioRequest",
|
1398
1426
|
"CreateUnitDefinition",
|
@@ -1460,6 +1488,7 @@ __all__ = [
|
|
1460
1488
|
"DiscountingMethod",
|
1461
1489
|
"DividendOptionEvent",
|
1462
1490
|
"DividendReinvestmentEvent",
|
1491
|
+
"DrawdownEvent",
|
1463
1492
|
"EarlyRedemptionElection",
|
1464
1493
|
"EarlyRedemptionEvent",
|
1465
1494
|
"EconomicDependency",
|
@@ -1513,6 +1542,7 @@ __all__ = [
|
|
1513
1542
|
"FixedLeg",
|
1514
1543
|
"FixedLegAllOfOverrides",
|
1515
1544
|
"FixedSchedule",
|
1545
|
+
"FlexibleDeposit",
|
1516
1546
|
"FlexibleLoan",
|
1517
1547
|
"FloatSchedule",
|
1518
1548
|
"FloatingLeg",
|
@@ -1537,6 +1567,7 @@ __all__ = [
|
|
1537
1567
|
"FundingLegOptions",
|
1538
1568
|
"Future",
|
1539
1569
|
"FutureExpiryEvent",
|
1570
|
+
"FutureMarkToMarketEvent",
|
1540
1571
|
"FuturesContractDetails",
|
1541
1572
|
"FxConventions",
|
1542
1573
|
"FxDependency",
|
@@ -1690,6 +1721,7 @@ __all__ = [
|
|
1690
1721
|
"ListAggregationResponse",
|
1691
1722
|
"ListComplexMarketDataWithMetaDataResponse",
|
1692
1723
|
"LoanFacility",
|
1724
|
+
"LoanInterestRepaymentEvent",
|
1693
1725
|
"LoanPeriod",
|
1694
1726
|
"LockPeriodDiaryEntryRequest",
|
1695
1727
|
"LusidInstrument",
|
@@ -1700,6 +1732,7 @@ __all__ = [
|
|
1700
1732
|
"MappedString",
|
1701
1733
|
"Mapping",
|
1702
1734
|
"MappingRule",
|
1735
|
+
"MarkToMarketConventions",
|
1703
1736
|
"MarketContext",
|
1704
1737
|
"MarketContextSuppliers",
|
1705
1738
|
"MarketDataKeyRule",
|
@@ -1863,6 +1896,7 @@ __all__ = [
|
|
1863
1896
|
"PlacementRequest",
|
1864
1897
|
"PlacementSetRequest",
|
1865
1898
|
"PlacementUpdateRequest",
|
1899
|
+
"PnlJournalEntryLine",
|
1866
1900
|
"Portfolio",
|
1867
1901
|
"PortfolioCashFlow",
|
1868
1902
|
"PortfolioCashLadder",
|
@@ -1876,6 +1910,7 @@ __all__ = [
|
|
1876
1910
|
"PortfolioGroupProperties",
|
1877
1911
|
"PortfolioGroupSearchResult",
|
1878
1912
|
"PortfolioHolding",
|
1913
|
+
"PortfolioId",
|
1879
1914
|
"PortfolioIdComplianceParameter",
|
1880
1915
|
"PortfolioIdList",
|
1881
1916
|
"PortfolioIdListComplianceParameter",
|
@@ -2136,10 +2171,12 @@ __all__ = [
|
|
2136
2171
|
"TermDeposit",
|
2137
2172
|
"TermDepositInterestEvent",
|
2138
2173
|
"TermDepositPrincipalEvent",
|
2174
|
+
"Timeline",
|
2139
2175
|
"TotalReturnSwap",
|
2140
2176
|
"Touch",
|
2141
2177
|
"TradeTicket",
|
2142
2178
|
"TradeTicketType",
|
2179
|
+
"TradingConventions",
|
2143
2180
|
"Transaction",
|
2144
2181
|
"TransactionConfigurationData",
|
2145
2182
|
"TransactionConfigurationDataRequest",
|
@@ -2219,6 +2256,7 @@ __all__ = [
|
|
2219
2256
|
"UpdateRelationshipDefinitionRequest",
|
2220
2257
|
"UpdateStagingRuleSetRequest",
|
2221
2258
|
"UpdateTaxRuleSetRequest",
|
2259
|
+
"UpdateTimelineRequest",
|
2222
2260
|
"UpdateUnitRequest",
|
2223
2261
|
"UpsertCdsFlowConventionsRequest",
|
2224
2262
|
"UpsertComplexMarketDataRequest",
|
@@ -2270,7 +2308,9 @@ __all__ = [
|
|
2270
2308
|
"ValuationPointDataRequest",
|
2271
2309
|
"ValuationPointDataResponse",
|
2272
2310
|
"ValuationPointOverview",
|
2311
|
+
"ValuationPointResourceListOfAccountedTransaction",
|
2273
2312
|
"ValuationPointResourceListOfJournalEntryLine",
|
2313
|
+
"ValuationPointResourceListOfPnlJournalEntryLine",
|
2274
2314
|
"ValuationPointResourceListOfTrialBalance",
|
2275
2315
|
"ValuationRequest",
|
2276
2316
|
"ValuationSchedule",
|
@@ -0,0 +1,88 @@
|
|
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
|
22
|
+
from pydantic.v1 import BaseModel, Field, StrictStr
|
23
|
+
from lusid.models.output_transaction import OutputTransaction
|
24
|
+
from lusid.models.portfolio_id import PortfolioId
|
25
|
+
|
26
|
+
class AccountedTransaction(BaseModel):
|
27
|
+
"""
|
28
|
+
The Valuation Point Data Response for the Fund and specified date. # noqa: E501
|
29
|
+
"""
|
30
|
+
accounting_date: Optional[datetime] = Field(None, alias="accountingDate", description="The transaction's accounting date.")
|
31
|
+
journal_entry_action: Optional[StrictStr] = Field(None, alias="journalEntryAction", description="The journal entry line action associated with this transaction.")
|
32
|
+
transaction: Optional[OutputTransaction] = None
|
33
|
+
portfolio_id: Optional[PortfolioId] = Field(None, alias="portfolioId")
|
34
|
+
__properties = ["accountingDate", "journalEntryAction", "transaction", "portfolioId"]
|
35
|
+
|
36
|
+
class Config:
|
37
|
+
"""Pydantic configuration"""
|
38
|
+
allow_population_by_field_name = True
|
39
|
+
validate_assignment = True
|
40
|
+
|
41
|
+
def to_str(self) -> str:
|
42
|
+
"""Returns the string representation of the model using alias"""
|
43
|
+
return pprint.pformat(self.dict(by_alias=True))
|
44
|
+
|
45
|
+
def to_json(self) -> str:
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
47
|
+
return json.dumps(self.to_dict())
|
48
|
+
|
49
|
+
@classmethod
|
50
|
+
def from_json(cls, json_str: str) -> AccountedTransaction:
|
51
|
+
"""Create an instance of AccountedTransaction from a JSON string"""
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
53
|
+
|
54
|
+
def to_dict(self):
|
55
|
+
"""Returns the dictionary representation of the model using alias"""
|
56
|
+
_dict = self.dict(by_alias=True,
|
57
|
+
exclude={
|
58
|
+
},
|
59
|
+
exclude_none=True)
|
60
|
+
# override the default output from pydantic by calling `to_dict()` of transaction
|
61
|
+
if self.transaction:
|
62
|
+
_dict['transaction'] = self.transaction.to_dict()
|
63
|
+
# override the default output from pydantic by calling `to_dict()` of portfolio_id
|
64
|
+
if self.portfolio_id:
|
65
|
+
_dict['portfolioId'] = self.portfolio_id.to_dict()
|
66
|
+
# set to None if journal_entry_action (nullable) is None
|
67
|
+
# and __fields_set__ contains the field
|
68
|
+
if self.journal_entry_action is None and "journal_entry_action" in self.__fields_set__:
|
69
|
+
_dict['journalEntryAction'] = None
|
70
|
+
|
71
|
+
return _dict
|
72
|
+
|
73
|
+
@classmethod
|
74
|
+
def from_dict(cls, obj: dict) -> AccountedTransaction:
|
75
|
+
"""Create an instance of AccountedTransaction from a dict"""
|
76
|
+
if obj is None:
|
77
|
+
return None
|
78
|
+
|
79
|
+
if not isinstance(obj, dict):
|
80
|
+
return AccountedTransaction.parse_obj(obj)
|
81
|
+
|
82
|
+
_obj = AccountedTransaction.parse_obj({
|
83
|
+
"accounting_date": obj.get("accountingDate"),
|
84
|
+
"journal_entry_action": obj.get("journalEntryAction"),
|
85
|
+
"transaction": OutputTransaction.from_dict(obj.get("transaction")) if obj.get("transaction") is not None else None,
|
86
|
+
"portfolio_id": PortfolioId.from_dict(obj.get("portfolioId")) if obj.get("portfolioId") is not None else None
|
87
|
+
})
|
88
|
+
return _obj
|
@@ -31,15 +31,15 @@ class AccumulationEvent(InstrumentEvent):
|
|
31
31
|
dividend_rate: Union[StrictFloat, StrictInt] = Field(..., alias="dividendRate", description="Dividend rate or payment rate as a percentage. i.e. 5% is written as 0.05")
|
32
32
|
ex_date: datetime = Field(..., alias="exDate", description="The first business day on which the dividend is not owed to the buying party. Typically this is T-1 from the RecordDate.")
|
33
33
|
payment_date: datetime = Field(..., alias="paymentDate", description="The date the company pays out dividends to shareholders.")
|
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, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent")
|
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, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent, FutureMarkToMarketEvent, AdjustGlobalCommitmentEvent, ContractInitialisationEvent, DrawdownEvent, LoanInterestRepaymentEvent")
|
35
35
|
additional_properties: Dict[str, Any] = {}
|
36
36
|
__properties = ["instrumentEventType", "announcementDate", "dividendCurrency", "dividendRate", "exDate", "paymentDate"]
|
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', 'FutureExpiryEvent', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent'):
|
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', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent')")
|
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', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent'):
|
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', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent')")
|
43
43
|
return value
|
44
44
|
|
45
45
|
class Config:
|
@@ -0,0 +1,93 @@
|
|
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, Union
|
22
|
+
from pydantic.v1 import Field, StrictFloat, StrictInt, StrictStr, validator
|
23
|
+
from lusid.models.instrument_event import InstrumentEvent
|
24
|
+
|
25
|
+
class AdjustGlobalCommitmentEvent(InstrumentEvent):
|
26
|
+
"""
|
27
|
+
Event to adjust the limit/balance of a LoanFacility. Used to initially set up the facility, but also used to increase/reduce the associated limit and balance. # noqa: E501
|
28
|
+
"""
|
29
|
+
amount: Union[StrictFloat, StrictInt] = Field(..., description="Amount that the limit and balance are changed by. A positive number signifies an increase, and a negative number here signifies a decrease.")
|
30
|
+
var_date: datetime = Field(..., alias="date", description="Date of the adjustment. Signifies when the facility begins to accrue interest.")
|
31
|
+
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, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent, FutureMarkToMarketEvent, AdjustGlobalCommitmentEvent, ContractInitialisationEvent, DrawdownEvent, LoanInterestRepaymentEvent")
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
33
|
+
__properties = ["instrumentEventType", "amount", "date"]
|
34
|
+
|
35
|
+
@validator('instrument_event_type')
|
36
|
+
def instrument_event_type_validate_enum(cls, value):
|
37
|
+
"""Validates the enum"""
|
38
|
+
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', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent'):
|
39
|
+
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', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent')")
|
40
|
+
return value
|
41
|
+
|
42
|
+
class Config:
|
43
|
+
"""Pydantic configuration"""
|
44
|
+
allow_population_by_field_name = True
|
45
|
+
validate_assignment = True
|
46
|
+
|
47
|
+
def to_str(self) -> str:
|
48
|
+
"""Returns the string representation of the model using alias"""
|
49
|
+
return pprint.pformat(self.dict(by_alias=True))
|
50
|
+
|
51
|
+
def to_json(self) -> str:
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
53
|
+
return json.dumps(self.to_dict())
|
54
|
+
|
55
|
+
@classmethod
|
56
|
+
def from_json(cls, json_str: str) -> AdjustGlobalCommitmentEvent:
|
57
|
+
"""Create an instance of AdjustGlobalCommitmentEvent from a JSON string"""
|
58
|
+
return cls.from_dict(json.loads(json_str))
|
59
|
+
|
60
|
+
def to_dict(self):
|
61
|
+
"""Returns the dictionary representation of the model using alias"""
|
62
|
+
_dict = self.dict(by_alias=True,
|
63
|
+
exclude={
|
64
|
+
"additional_properties"
|
65
|
+
},
|
66
|
+
exclude_none=True)
|
67
|
+
# puts key-value pairs in additional_properties in the top level
|
68
|
+
if self.additional_properties is not None:
|
69
|
+
for _key, _value in self.additional_properties.items():
|
70
|
+
_dict[_key] = _value
|
71
|
+
|
72
|
+
return _dict
|
73
|
+
|
74
|
+
@classmethod
|
75
|
+
def from_dict(cls, obj: dict) -> AdjustGlobalCommitmentEvent:
|
76
|
+
"""Create an instance of AdjustGlobalCommitmentEvent from a dict"""
|
77
|
+
if obj is None:
|
78
|
+
return None
|
79
|
+
|
80
|
+
if not isinstance(obj, dict):
|
81
|
+
return AdjustGlobalCommitmentEvent.parse_obj(obj)
|
82
|
+
|
83
|
+
_obj = AdjustGlobalCommitmentEvent.parse_obj({
|
84
|
+
"instrument_event_type": obj.get("instrumentEventType"),
|
85
|
+
"amount": obj.get("amount"),
|
86
|
+
"var_date": obj.get("date")
|
87
|
+
})
|
88
|
+
# store additional fields in additional_properties
|
89
|
+
for _key in obj.keys():
|
90
|
+
if _key not in cls.__properties:
|
91
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
92
|
+
|
93
|
+
return _obj
|
@@ -30,15 +30,15 @@ class AmortisationEvent(InstrumentEvent):
|
|
30
30
|
dom_ccy: StrictStr = Field(..., alias="domCcy", description="Domestic currency of the originating instrument")
|
31
31
|
pay_receive: constr(strict=True, min_length=1) = Field(..., alias="payReceive", description="Is this event in relation to the Pay or Receive leg")
|
32
32
|
payment_date: datetime = Field(..., alias="paymentDate", description="The date the principal payment is to be made.")
|
33
|
-
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, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent")
|
33
|
+
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, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent, FutureMarkToMarketEvent, AdjustGlobalCommitmentEvent, ContractInitialisationEvent, DrawdownEvent, LoanInterestRepaymentEvent")
|
34
34
|
additional_properties: Dict[str, Any] = {}
|
35
35
|
__properties = ["instrumentEventType", "amountReduced", "domCcy", "payReceive", "paymentDate"]
|
36
36
|
|
37
37
|
@validator('instrument_event_type')
|
38
38
|
def instrument_event_type_validate_enum(cls, value):
|
39
39
|
"""Validates the enum"""
|
40
|
-
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', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent'):
|
41
|
-
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', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent')")
|
40
|
+
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', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent'):
|
41
|
+
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', 'SwapCashFlowEvent', 'SwapPrincipalEvent', 'CreditPremiumCashFlowEvent', 'CdsCreditEvent', 'CdxCreditEvent', 'MbsCouponEvent', 'MbsPrincipalEvent', 'BonusIssueEvent', 'MbsPrincipalWriteOffEvent', 'MbsInterestDeferralEvent', 'MbsInterestShortfallEvent', 'TenderEvent', 'CallOnIntermediateSecuritiesEvent', 'IntermediateSecuritiesDistributionEvent', 'OptionExercisePhysicalEvent', 'OptionExerciseCashEvent', 'ProtectionPayoutCashFlowEvent', 'TermDepositInterestEvent', 'TermDepositPrincipalEvent', 'EarlyRedemptionEvent', 'FutureMarkToMarketEvent', 'AdjustGlobalCommitmentEvent', 'ContractInitialisationEvent', 'DrawdownEvent', 'LoanInterestRepaymentEvent')")
|
42
42
|
return value
|
43
43
|
|
44
44
|
class Config:
|
lusid/models/basket.py
CHANGED
@@ -31,15 +31,15 @@ class Basket(LusidInstrument):
|
|
31
31
|
basket_name: BasketIdentifier = Field(..., alias="basketName")
|
32
32
|
basket_type: constr(strict=True, min_length=1) = Field(..., alias="basketType", description="What contents does the basket have. The validation will check that the instrument types contained match those expected. Supported string (enumeration) values are: [Bonds, Credits, Equities, EquitySwap].")
|
33
33
|
weighted_instruments: WeightedInstruments = Field(..., alias="weightedInstruments")
|
34
|
-
instrument_type: StrictStr = Field(..., alias="instrumentType", description="The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass, FlexibleLoan, UnsettledCash, Cash, MasteredInstrument, LoanFacility")
|
34
|
+
instrument_type: StrictStr = Field(..., alias="instrumentType", description="The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass, FlexibleLoan, UnsettledCash, Cash, MasteredInstrument, LoanFacility, FlexibleDeposit")
|
35
35
|
additional_properties: Dict[str, Any] = {}
|
36
36
|
__properties = ["instrumentType", "basketName", "basketType", "weightedInstruments"]
|
37
37
|
|
38
38
|
@validator('instrument_type')
|
39
39
|
def instrument_type_validate_enum(cls, value):
|
40
40
|
"""Validates the enum"""
|
41
|
-
if value not in ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash', 'MasteredInstrument', 'LoanFacility'):
|
42
|
-
raise ValueError("must be one of enum values ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash', 'MasteredInstrument', 'LoanFacility')")
|
41
|
+
if value not in ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash', 'MasteredInstrument', 'LoanFacility', 'FlexibleDeposit'):
|
42
|
+
raise ValueError("must be one of enum values ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash', 'MasteredInstrument', 'LoanFacility', 'FlexibleDeposit')")
|
43
43
|
return value
|
44
44
|
|
45
45
|
class Config:
|
lusid/models/bond.py
CHANGED
@@ -24,6 +24,7 @@ from lusid.models.ex_dividend_configuration import ExDividendConfiguration
|
|
24
24
|
from lusid.models.flow_conventions import FlowConventions
|
25
25
|
from lusid.models.lusid_instrument import LusidInstrument
|
26
26
|
from lusid.models.rounding_convention import RoundingConvention
|
27
|
+
from lusid.models.trading_conventions import TradingConventions
|
27
28
|
|
28
29
|
class Bond(LusidInstrument):
|
29
30
|
"""
|
@@ -43,15 +44,16 @@ class Bond(LusidInstrument):
|
|
43
44
|
rounding_conventions: Optional[conlist(RoundingConvention)] = Field(None, alias="roundingConventions", description="Rounding conventions for analytics, if any.")
|
44
45
|
ex_dividend_configuration: Optional[ExDividendConfiguration] = Field(None, alias="exDividendConfiguration")
|
45
46
|
original_issue_price: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="originalIssuePrice", description="The price the bond was issued at. This is to be entered as a percentage of par, for example a value of 98.5 would represent 98.5%.")
|
46
|
-
|
47
|
+
trading_conventions: Optional[TradingConventions] = Field(None, alias="tradingConventions")
|
48
|
+
instrument_type: StrictStr = Field(..., alias="instrumentType", description="The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass, FlexibleLoan, UnsettledCash, Cash, MasteredInstrument, LoanFacility, FlexibleDeposit")
|
47
49
|
additional_properties: Dict[str, Any] = {}
|
48
|
-
__properties = ["instrumentType", "startDate", "maturityDate", "domCcy", "flowConventions", "principal", "couponRate", "identifiers", "exDividendDays", "initialCouponDate", "firstCouponPayDate", "calculationType", "roundingConventions", "exDividendConfiguration", "originalIssuePrice"]
|
50
|
+
__properties = ["instrumentType", "startDate", "maturityDate", "domCcy", "flowConventions", "principal", "couponRate", "identifiers", "exDividendDays", "initialCouponDate", "firstCouponPayDate", "calculationType", "roundingConventions", "exDividendConfiguration", "originalIssuePrice", "tradingConventions"]
|
49
51
|
|
50
52
|
@validator('instrument_type')
|
51
53
|
def instrument_type_validate_enum(cls, value):
|
52
54
|
"""Validates the enum"""
|
53
|
-
if value not in ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash', 'MasteredInstrument', 'LoanFacility'):
|
54
|
-
raise ValueError("must be one of enum values ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash', 'MasteredInstrument', 'LoanFacility')")
|
55
|
+
if value not in ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash', 'MasteredInstrument', 'LoanFacility', 'FlexibleDeposit'):
|
56
|
+
raise ValueError("must be one of enum values ('QuotedSecurity', 'InterestRateSwap', 'FxForward', 'Future', 'ExoticInstrument', 'FxOption', 'CreditDefaultSwap', 'InterestRateSwaption', 'Bond', 'EquityOption', 'FixedLeg', 'FloatingLeg', 'BespokeCashFlowsLeg', 'Unknown', 'TermDeposit', 'ContractForDifference', 'EquitySwap', 'CashPerpetual', 'CapFloor', 'CashSettled', 'CdsIndex', 'Basket', 'FundingLeg', 'FxSwap', 'ForwardRateAgreement', 'SimpleInstrument', 'Repo', 'Equity', 'ExchangeTradedOption', 'ReferenceInstrument', 'ComplexBond', 'InflationLinkedBond', 'InflationSwap', 'SimpleCashFlowLoan', 'TotalReturnSwap', 'InflationLeg', 'FundShareClass', 'FlexibleLoan', 'UnsettledCash', 'Cash', 'MasteredInstrument', 'LoanFacility', 'FlexibleDeposit')")
|
55
57
|
return value
|
56
58
|
|
57
59
|
class Config:
|
@@ -92,6 +94,9 @@ class Bond(LusidInstrument):
|
|
92
94
|
# override the default output from pydantic by calling `to_dict()` of ex_dividend_configuration
|
93
95
|
if self.ex_dividend_configuration:
|
94
96
|
_dict['exDividendConfiguration'] = self.ex_dividend_configuration.to_dict()
|
97
|
+
# override the default output from pydantic by calling `to_dict()` of trading_conventions
|
98
|
+
if self.trading_conventions:
|
99
|
+
_dict['tradingConventions'] = self.trading_conventions.to_dict()
|
95
100
|
# puts key-value pairs in additional_properties in the top level
|
96
101
|
if self.additional_properties is not None:
|
97
102
|
for _key, _value in self.additional_properties.items():
|
@@ -158,7 +163,8 @@ class Bond(LusidInstrument):
|
|
158
163
|
"calculation_type": obj.get("calculationType"),
|
159
164
|
"rounding_conventions": [RoundingConvention.from_dict(_item) for _item in obj.get("roundingConventions")] if obj.get("roundingConventions") is not None else None,
|
160
165
|
"ex_dividend_configuration": ExDividendConfiguration.from_dict(obj.get("exDividendConfiguration")) if obj.get("exDividendConfiguration") is not None else None,
|
161
|
-
"original_issue_price": obj.get("originalIssuePrice")
|
166
|
+
"original_issue_price": obj.get("originalIssuePrice"),
|
167
|
+
"trading_conventions": TradingConventions.from_dict(obj.get("tradingConventions")) if obj.get("tradingConventions") is not None else None
|
162
168
|
})
|
163
169
|
# store additional fields in additional_properties
|
164
170
|
for _key in obj.keys():
|