Type | Read/write | Author | Availability |
Read | Finbourne | Provided with LUSID |
The Lusid.Valuation.Recipe
provider enables you to write a Luminesce SQL query that returns the recipes available to orchestrate portfolio valuation operations.
Note: The LUSID user running the query must have sufficient access control permissions to both use the provider and read valuation data stored in LUSID. This should automatically be the case if you are the domain owner.
See also: Lusid.Portfolio.Valuation, Lusid.Portfolio.Valuation.Measure, Lusid.Logs.Valuation.Manifest
Basic usage
select * from Lusid.Valuation.Recipe where <filter-expression>;
Query parameters
Lusid.Valuation.Recipe
has parameters that enable you to filter or refine a query.
To list available parameters, their data types, default values, and an explanation for each, run the following query using a suitable tool:
select FieldName, DataType, ParamDefaultValue, Description from Sys.Field where TableName = 'Lusid.Valuation.Recipe' and FieldType = 'Parameter';
Data fields
By default, Lusid.Valuation.Recipe
returns a table of data populated with particular fields (columns). You can return a subset of these fields.
To list fields available to return, their data types, whether fields are considered 'main', and an explanation for each, run the following query using a suitable tool:
select FieldName, DataType, IsMain, IsPrimaryKey, SampleValues, Description from Sys.Field where TableName = 'Lusid.Valuation.Recipe' and FieldType = 'Column';
Note: Fields marked 'main' are returned by queries that start
select ^ from Lusid.Valuation.Recipe...
Examples
Note: For more example Luminesce SQL queries, visit our Github repo.
Example 1: Retrieve all recipes
select * from Lusid.Valuation.Recipe
Example 2: Retrieve the recipes in a particular scope
select * from Lusid.Valuation.Recipe where Scope = 'Finbourne-Examples'
Example 3: Retrieve a particular recipe
select * from Lusid.Valuation.Recipe where Scope = 'Finbourne-Examples' and Code = 'FinbourneExamplesRecipeLusidFlatFX'