How to get more decimals

Hi,
I’m using the DSS .Net SDK to make an
IntradayPricingExtractionRequest for these 2 chain rics:
"0#WNDCND0-TERN","0#WNDCND1-TERN". I compared it with some
data we already have and there were cases for example when we had 9.996 but
your api returned 10. Is it possible to get some values like “Primary
Activity” with more than 2 decimals?
Here is the code:
var instrumentIdentifiers = new
List<string>{"0#WNDCND0-TERN","0#WNDCND1-TERN"}.Select(r
=> SubjectIdentifier.CreateInstrumentIdentifier(r, IdentifierType.ChainRIC,
null, null, null));
var extractionRequest = new
IntradayPricingExtractionRequest
{
IdentifierList =
SubjectIdentifierList.CreateInstrumentIdentifierList(new
DssCollection<InstrumentIdentifier>(instrumentIdentifiers), null,
false),
ContentFieldNames =
_extractionsContext.GetValidExtractionFieldNames(ReportTemplateTypes.IntradayPricing).ToArray(),
};
var extraction =
_extractionsContext.ExtractWithNotes(extractionRequest);
return extraction;
Thanks,
Denis
Best Answer
-
Hello Denis (@datateam2017
Our OnDemand extractions do not have the ability to override fields' decimal precision at this moment. Right now, it is required to create a Report Template if you need to specify the number of decimal places for a specific field. This can be done in the GUI or the REST API.
In the GUI, you can modify the field settings by creating or editing a Report Template, selecting the fields tab, and then clicking on the Edit button on the right of an added field. This will open up the Edit Field menu where you can specify decimal precision.
On the REST API, you can specify the format as follows within an Intraday Report Template Creation request (Endpoint: /Extractions/IntradayPricingReportTemplates):
{
"FieldName": "Primary Activity",
"Format": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ReportTemplates.ContentFieldNumberFormat",
"DecimalPlaces": 6
}
}Note that you will need to create an Instrument List and Schedule as well to perform these extractions with a customized Report Template.
Let me know if you have further questions.
Michael
0
Answers
-
Hi @datateam2017,
As mentioned by Michael, number of decimal place cannot be changed for OnDemand extraction at this moment. However, the default number of decimal place should be more than 2 as I can get 4 decimal places from other RIC such as "SAREUR=R".
I understand that the price is provided by real time feed. It is possible that the decimal place is limited by the feed. You may need to contact data content support via the case:06210159 to confirm this assumption.
{
"IdentifierType": "Ric",
"Identifier": "SAREUR=R",
"RIC": "SAREUR=R",
"Primary Activity": 0.2163
}0 -
This will be addressed in the April DSS 12.0 release by increasing the default decimal places for Primary Activity to N/18.14
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
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 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
- 275 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
- 643 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 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
- 46 中文论坛