Daml.Finance.Interface.Util.Common¶
Functions¶
- fetchInterfaceByKey
: (HasInterfaceTypeRep i, HasInterfaceTypeRep i2, HasFetchByKey t k, HasField "cid" t (ContractId i), HasFetch i2) => k -> Update i2
Fetch an interface by key.
- qty
: Decimal -> InstrumentKey -> InstrumentQuantity
Wraps an amount and an instrument key into an instrument quantity.
- scale
: Decimal -> InstrumentQuantity -> InstrumentQuantity
Scale
quantity
by the provided factor.