A calculation is an optional component of a transaction type that triggers additional functionality for all transactions belonging to that type.
A calculation:
Must have a
type
that triggers a particular function.Can have a
side
to pass extra information to the function.Can have a
formula
that drives the function.
Note: The result of a calculation can be examined on an output transaction.
Calculation | Requires | Requires | Functionality and syntax example |
| Yes | No | Calculates a tax amount due. Note this is ignored for a particular transaction if no tax rule can be found to apply. More information.
|
| No | No | Looks up an exchange rate from the transaction to the portfolio currency for the transaction date in the LUSID Quote Store. Note this is ignored for a particular transaction if the
|
| No | No | Looks up an exchange rate from the transaction to the settlement currency for the transaction date in the LUSID Quote Store. Note this is ignored for a particular transaction if the
|
| No | No | Calculates gross consideration as total consideration before fees. For transactions in:
Note this is ignored for a particular transaction if the
|
| No | No | Calculates notional amount for transactions in instruments of type
|
| No | Yes | Calculates total consideration according to a formula. Note this is ignored for a particular transaction if the For example, if increasing a position you might want to calculate total consideration as gross consideration plus fees:
If increasing a position you might want to calculate total consideration as gross consideration minus fees:
|