You can model an equity as an instrument of type Equity
in LUSID. See all supported instruments.
Mastering an instrument
There are numerous tools you can use to master an Equity
in the LUSID Security Master.
Some fields are common to all types of instrument, such as an intuitive name
, the requirement to specify a set of identifiers
, and the facility to store extra information as properties
.
Fields in the economic definition
object are specific to Equity
. For more information on these fields, select Equity from the definition dropdown in the UpsertInstruments API reference:
In this tutorial we’ll master BP PLC $0.25 shares traded in London by calling the UpsertInstruments
API as follows:
Note the following:
We’ve chosen to master this instrument in a custom instrument scope (specified as a query parameter in the URL).
The
identifiers
object identifies the instrument using a mixture of unique and non-unique identifiers.In the economic
definition
object:The
instrumentType
must beEquity
.The
domCcy
must be an ISO 4217 currency code, for exampleGBP
.
Providing the request is successful, the response:
Confirms the globally-unique LUID for the instrument.
Generates extra fields that are stored as part of the instrument definition and can be filtered on.
Supplies default values for fields not explicitly specified in the request:
Booking a transaction to establish a position
Once an instrument is mastered, we can book a transaction to record the acquisition of a quantity in a suitable portfolio, for example by calling the BatchUpsertTransactions
API as follows:
Note the following:
The
instrumentIdentifiers
field uses the LUID to resolve the transaction to the correct instrument, but it could use any unique identifier.The
type
field invokes aBuyEquity
transaction type to confer a particular economic impact on the transaction (see below).The
units
field specifies the purchase amount.The
transactionPrice
object records the market price (in pounds not pence). This is used by LUSID to automatically calculate gross consideration (see below).The
totalConsideration
object:Sets the settlement currency to
GBP
.Specifies a settlement cost of
0
to enable LUSID to automatically derive total consideration (see below).
The trade commission is recorded using a custom property.
Note: This example assumes the transaction, settlement and portfolio currencies are all the same. If not, you can specify exchange rates.
We can call the SetTransactionType API to create a BuyEquity
transaction type as follows:
Note the following:
The
Txn:GrossConsideration
calculation automatically calculates gross consideration according to the formulaprice * units
, and stores the result in theTransaction/default/GrossConsideration
system property.The
DeriveTotalConsideration
calculation automatically calculates total consideration according to the given, user-defined formula, which in this case sums gross consideration and total fees; this is stored as thetotalConsideration.amount
of the transaction.The
StockMovement
uses the built-inSide1
side to update a holding in the instrument with the specified number of units at a cost of the total consideration. See how LUSID calculates holding cost.The
CashCommitment
movement uses the built-inSide2
to decrease the instrument currency holding by the total consideration.
Confirming positions
You can generate a holdings report to see the impact of the transaction on security and cash holdings, for example:
Auditing LUSID’s transaction type calculations
You can examine the output transaction automatically generated by LUSID to audit calculated amounts, for example:
Valuing your position
To value your position, work through our valuation checklist.
Note the only pricing model available to an Equity
is SimpleStatic
, which calculates PV as holding units * market price
.
Monitoring the lifecycle of the instrument
An Equity
does not have an expiry or maturity date, so the instrument does not have a lifecycle in the normal sense.
Typically, you close your position at a time when P&L is favourable to you, though real-world change of control events such as mergers or insolvencies may impact the outcome. You can load a stream of corporate actions into a source and trigger LUSID to emit events that you can then handle appropriately.
LUSID does have tools that enable you to monitor portfolio cashflows that derive from a dividend payment or some other corporate action. You can:
Use the Cash Ladder dashboard in the LUSID web app.
Call the LUSID GetPortfolioCashLadder API directly.
Schedule a job to create a regular report.