Views:

This is a way of storing information where each piece of data is captured with two datetime values:

  • effectiveAt: the datetime the piece of data is considered ‘valid’, in a business context.
  • asAt: the datetime the data was physically recorded in LUSID.

The general principle is explained in this Wikipedia article, this FINBOURNE blog post, and also by this third-party blogger.

Consider a live price quote for a stock, for example:

Vodafone Group PLC (VOD) @ 20 Aug 2018 10:02 UTC = 176.14 GBX

The effectiveAt for this quote is 2018-08-20 10:02:00 UTC. UTC is Universal Time Coordinated, and represents time at longitude 0°.

The asAt would be the datetime the quote was actually saved into the system. This datetime may be slightly later than the effectiveAt, as there may have been a delay in the quote being published or uploaded into LUSID.

Whenever any data is retrieved from LUSID, the user must supply datetimes for both effectiveAt and asAt (if omitted, the default is 'now', or latest). These datetimes are then used to filter the universe of data, to locate the most appropriate value.

The primary benefit of storing data bitemporally is that it allows all data changes to be recorded and audited. Consider if this quote had been saved with the wrong value. Using the bitemporal model, we are able to correct the value retrospectively. The corrected piece of data would have the same effectiveAt as before, but the asAt datetime on the updated record would correspond to the datetime the correction was made in LUSID. Since LUSID stores both versions of the piece of data, you are able to retrieve the latest (i.e. corrected) value using an asAt of 'now', or retrieve the original value using the asAt from the original record.

Understanding perpetual and time-variant data items

In LUSID:

  • A perpetual data item has a value that is considered permanent, for example a person's place of birth. It's still possible to correct wrongly-entered data and roll back the asAt timeline to see a history of values, but it's not meaningful to roll back the effectiveAt timeline; for a given asAt datetime, the value is the same from the beginning to the end of time. Perpetual data items are considered monotemporal in LUSID.
  • A time-variant data item has a value that can vary over time, for example a person's address. When you enter such a value, you specify an effectiveFrom datetime; you can either specify an explicit effectiveUntil datetime, or LUSID can apply one for you if/when you supersede the value (that is, enter one with a later datetime). For a time-variant data item, it's possible to both:
    • Correct wrongly-entered data and roll back the asAt timeline to see a history of values.
    • Roll back the effectiveAt timeline and see a history of a time-series of values.

    Time-variant data items are considered fully bitemporal in LUSID. For an examination of perpetual vs time-variant properties, see this article.

Entity type (see a full list)Entity (core)Identifier(s)Data fieldsPropertiesExplanation
Portfolios and related
Portfolios (transaction, reference and derived)Time-variantTime-variantTime-variantPerpetual, Time-variant 
Transactions (sub-entity of portfolio)Time-variantTime-variantPerpetualPerpetualA transaction represents an effective-dated portfolio event.
Holdings (sub-entity of portfolio)Time-variantN/APerpetualPerpetualA holding is a point-in-time concept. Its fields and properties evolve with the effective date upon which portfolio holdings are built.
Portfolio groupsTime-variantTime-variantTime-variantPerpetual, Time-variant 
Corporate action sourcesPerpetualPerpetualPerpetualN/AA corporate action source is a container for (effective-dated) instrument events.
Instrument events (corporate actions)PerpetualPerpetualPerpetualPerpetualAn instrument event is an effective-dated concept. Other parts of LUSID can process them in effective date order.
Tax rule setsTime-variantTime-variantTime-variantN/A 
Instruments and related
InstrumentsPerpetualPerpetual, Time-variantPerpetualPerpetual, Time-variantInstrument economic definition describes, among other things, the effective dated instrument lifecycle events.
ConventionsPerpetualPerpetualPerpetualN/A 
Counterparty agreementsPerpetualPerpetualPerpetualN/A 
Credit support annexesPerpetualPerpetualPerpetualN/A 
CalendarsPerpetualPerpetualPerpetualPerpetual, Time-variantA calendar is a container for effective dates.
Order lifecycle
AllocationsPerpetualPerpetualPerpetualPerpetualThe entity represents a concept with a single (effective) date.  Other parts of LUSID can process this entity in effective date order.
BlocksPerpetualPerpetualPerpetualPerpetualThe entity represents a container for orders, each of which has an effective date.
ExecutionsPerpetualPerpetualPerpetualPerpetualThe entity represents a concept with an effective date range. Other parts of LUSID can process this entity in effective date order.
OrdersPerpetualPerpetualPerpetualPerpetualThe entity represents a concept with a single (effective) date.  Other parts of LUSID can process this entity in effective date order.
Order instructionsPerpetualPerpetualPerpetualPerpetual 
PackagesPerpetualPerpetualPerpetualPerpetual 
ParticipationsPerpetualPerpetualPerpetualPerpetual 
PlacementsPerpetualPerpetualPerpetualPerpetualThe entity represents a concept with an effective date range. Other parts of LUSID can process this entity in effective date order.
Others
Legal entitiesPerpetualPerpetualPerpetualPerpetual, Time-variant 
PersonsPerpetualPerpetualPerpetualPerpetual, Time-variant 
Custom entitiesPerpetualPerpetualPerpetual, Time-variantN/AYou can choose which fields are perpetual and which are time-variant when defining the custom entity
RelationshipsTime-variantN/AN/AN/A 
Market and related data
Complex Market DataTime-variantTime-variantPerpetualN/AEach piece of complex market data represents a point in effective datetime.  The effective date forms part of the data's identifier.
QuotesTime-variantTime-variantPerpetualN/AEach quote represents a point in effective datetime. The effective date forms part of the quote's identifier.
Structured Result DataTime-variantTime-variantPerpetualN/AEach piece of structured result data represents a point in effective datetime.  The effective date forms part of the data's identifier.
Types and configuration
Transaction typesPerpetualPerpetualPerpetualPerpetual 
RecipesPerpetualPerpetualPerpetualN/A 
Cut labelsPerpetualPerpetualPerpetualN/A 
Custom entity typesPerpetualPerpetualPerpetualN/A 
Data typesPerpetualPerpetualPerpetualN/A 
Property TypesPerpetualPerpetualPerpetualN/A 
RelationshipsPerpetualPerpetualPerpetualN/A 
SequencesPerpetualPerpetualPerpetualN/A