Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • DSS /

For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

avatar image
Question by mithun.ghosh · Mar 16, 2020 at 03:42 PM · dss-rest-apidssdatascope-selectrequest

How to get decimal value with dots (100.10) instead of comma (100,10) in .Net SDK Solution?

Hi Team,

We are using the ‘.Net SDK Code based: On Demand: large instrument lists’ and we passed the below attributes list

Requested Field Names = { "RIC", "ISIN","CUSIP", "SEDOL" ," Bid Price”, Bid Clean Price”,” Bid Dirty Price”};

In the response file we have received value for “Bid Price” like “100,20” but we want decimal value with dots “100.20”.

Could you please suggest me how we can change the decimal value from comma to dots.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by veerapath.rungruengrayubkul · Mar 17, 2020 at 11:22 AM

Hi @mithun.ghosh,

For On Demand extraction you are using, DSS generally provides numeric data with "." decimal separator. There is no method to change the output data.

However, I have found that the decimal separator in DSS .Net SDK is affected by Windows setting. Could you verify the setting?

You can also verify the raw data sent from the DSS server in the rowValues variable.


1584443787429.png (64.4 KiB)
1584444089023.png (88.1 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by veerapath.rungruengrayubkul · Mar 17, 2020 at 03:50 AM

Hi @mithun.ghosh,

The tutorial uses the Schedule Extraction. You can change number format in the DSS GUI User Preference. If you still find the issue, please provide the snippet code used for creating report template.


1584416987057.png (23.2 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by mithun.ghosh · Mar 17, 2020 at 09:46 AM

Hi @Veerapath,

Thanks for your prompt response.

I have changed number format in the DSS GUI User Preference, but still in the response file we have received value for “Bid Price” like “100,20”.



We have used the below code to get the data from DSS server. Could you please suggest us how we can change the decimal value from comma to dots through .net code.


public RawExtractionResult CreateAndRunEodPricingRawExtraction (

InstrumentIdentifier[] instrumentIdentifiers, string[] contentFieldNames)

{

//Create an on demand extraction, of type EndOfDayPricingExtractionRequest:

EndOfDayPricingExtractionRequest extractionEod = new EndOfDayPricingExtractionRequest

{

IdentifierList = InstrumentIdentifierList.Create(instrumentIdentifiers),

ContentFieldNames = contentFieldNames

};

//Run the extraction.

//This call is blocking, it returns when the extraction is completed:

return extractionsContext.ExtractRaw(extractionEod);

}


Thanks,

Mithun


1584438302278.png (67.0 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
12 People are following this question.

Related Questions

TRTH / DSS Timeseries Extraction 10-Year Bond 'Close Yield' Column is Empty

Get available field list for End of Day - HTTP response

Is there a way to query requested RICS? Example: my quota is X securities, and i already requested Y of them. Can I get whose RIC's were requested?

Retrieving Tick History Time and Sales & Raw data DSS reports via API

DSS Webinar Dec 7: Christaan metioned embargo handling. Is that handled for at hoc requests as well? Does it mean that data is just available after the longest embargo time of the requested list?

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges