DSS REST API - Legal Entity Detail and Legal Entity Hierarchy - DeltaDays
Hello,
Recently we had a question about the "DeltaDays" condition which relates to 'Legal Entity Detail' and 'Legal Entity Hierarchy' report templates.
DeltaDays appears to relate to the drop down box in the GUI labelled "Include entities that have changed".
I just want to confirm what was shared previously as a resolution:
"The reference tree has the following for the Condition for Delta
Days. It requires an integer. The underlying entity database field
that the report template queries against is the last_chg_dt in the entity
view.
Putting in a very large integer value will work so that ‘any’
last_chg_dt’ can be captured."
The feedback on the resolution is:
"I set DeltaDays to -1
and that seems to work"
That doesn't seem to match with the original resolution, please what would be the expected behaviour of the results using -1 over the advice provide which was based on the assumption:
SELECT
entity.entity_id,
entity.last_chg_dt,
DATEDIFF(DD, entity.last_chg_dt, GETDATE()) as DeltaDays FROM
entity.dbo.entity entity
WHERE
DATEDIFF(DD, entity.last_chg_dt, GETDATE()) >= 0
If there is a reference for more information of using DeltaDays please could I be directed to it please?
Best regards,
Gareth
Best Answer
-
Gareth,
The way DSS is structured is as follows:
-1 => anytime
0 => today
1 => since yesterday
2 => within 2 days
3 => within 3 days
etc...The -1 value basically just executes the extraction without looking at the underlying last_chg_dt in the entity database. 'anytime' means essentially whenever something occurred or basically there is no 'delta' here. In this situation DSS executes SQL that just pulls back the information. In other words it just does the extraction and pulls back the entity.
Putting in a large integer value gets the same result so long as last_chg_dt is populated for the entity as it takes that integer value and constructs a range to look for a value in the last_chg_dt. So long as last_chg_dt is populated you get the same result, but the -1 value and the large integer value is not equivalent in that the underlying SQL performed is different (although you get same results).
To be clear and clean the client should use and pass the -1 value.
thanks...
0
Answers
-
I found a little bit more information in the API reference tree, here for Legal Entity Detail Condition:
LegalEntityDetailCondition:
Specifies the report conditions for the LegalEntityDetail report template.Properties:
- Name: DeltaDays
- Data Type: int
- Description: Option to extract only data that has changed for the specified number of days.
It is similar here for Legal Entity Hierarchy Condition:
LegalEntityHierarchyCondition:
Specifies the report conditions for the LegalEntityHierarchy report template.Properties:
- Name: DeltaDays
- Data Type: int?
- Description: Option to choose how far back to look for changes, in days.
It does not answer your query on the -1 value though.
0 -
We have updated the REST API documentation to include these details. The change should be available in the 10.7 release. I have also put in a change request to make the delta days field nullable where a null value would be the same as -1.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 687 Datastream
- 1.4K DSS
- 621 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 4 Trading API
- 2.9K Elektron
- 1.4K EMA
- 254 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 669 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 229 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛