Module Daml.Finance.Interface.Instrument.Equity.Instrument¶
Interfaces¶
interface Instrument
An interface for a generic equity instrument.
Choice Archive
(no fields)
Choice DeclareDividend
Declare a dividend distribution to shareholders.
Field Type Description id Id Event identifier of the dividend distribution. description Text Description of the dividend event. effectiveTime Time Time at which the dividend is distributed. newInstrument InstrumentKey Instrument held after the dividend distribution (i.e. "ex-dividend" stock). perUnitDistribution [InstrumentQuantity] Distributed quantities per unit held. Choice DeclareReplacement
Declare a replacement event, where units of the instrument are replaced by a basket of other instruments.
Field Type Description id Id Distribution Id. description Text Description of the replacement event. effectiveTime Time Time the replacement is to be executed. perUnitReplacement [InstrumentQuantity] Payout offered to shareholders per held share. Choice DeclareStockSplit
Declare a stock split.
Field Type Description id Id Event identifier of the stock split. description Text Description of the stock split event. effectiveTime Time Time at which the stock split is effective. newInstrument InstrumentKey Instrument to be held after the stock split is executed. adjustmentFactor Decimal Adjustment factor for the stock split. Choice GetView
Retrieves the interface view.
Field Type Description viewer Party The party retrieving the view. Method asBaseInstrument : I
Conversion to base
Instrument
interface.Method declareDividend : DeclareDividend -> Update (ContractId I)
Implementation fo the
DeclareDividend
choice.Method declareReplacement : DeclareReplacement -> Update (ContractId I)
Implementation fo the
DeclareReplacement
choice.Method declareStockSplit : DeclareStockSplit -> Update (ContractId I)
Implementation fo the
DeclareStockSplit
choice.
Typeclasses¶
class Implementation t => HasImplementation t where
Data Types¶
- type I
-
Type synonym for
Instrument
.
- type Implementation t
= (HasToInterface t I, Implementation t)
Type constraint requiring templates to implement
Instrument
along withBaseInstrument
andDisclosure
.
- type V
= View
Type synonym for
View
.instance HasFromAnyView Instrument V
data View
Functions¶
- declareDividend
- : Instrument -> DeclareDividend -> Update (ContractId I)
- declareStockSplit
- : Instrument -> DeclareStockSplit -> Update (ContractId I)
- declareReplacement
- : Instrument -> DeclareReplacement -> Update (ContractId I)