Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
Question by 1069772808 · Sep 24, 2017 at 08:42 AM · rfa java

when i deal with a response of item, can i get the bid/ask and datetime as String?

when i decode the OMMMsg i want to get the bid/ask as the format of String, if i use the api :toString(), can i get it as "10.22" or the tostring() method will return in a different way? and it is the similar question about "VALUE_DATE" field, if i use tostring() method, can i get the expected string as "02 SEP 2017"?

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.

1 Reply

  • Sort: 
avatar image
Best Answer
Answer by Lars-at-Addicticks · Sep 24, 2017 at 09:52 AM

BID and ASK fields are of type REAL. For these types, the toString() method returns a value which is suitable for presentation in the English language. The value is not suitable for parsing other than with RFA itself as it may contain such values ""Inf", "-Inf", "NaN", fractions and what not. The decimal separator will always be dot (.) (regardless of your locale) and there will never be a thousands separator in the value. Example value: "-235373599.44". So judging from your question, the toString() method will suit your need, except that fractions will never be translated to decimals but will be presented in their exact form namely as fractions. But the use of fractional values is rare. I think parts of the US Treasury Bond market still use them, but other than that ?? They kind of went out of fashion in the financial markets 10-15 years ago.

VALUE_DATE is of type DATE. For this type, the toString() method returns a value which is suitable for presentation in the English language, namely the form "DD MON YYYY", where 'MON' is a capitalized 3-letter month abbreviation in the English language. (regardless of your locale). The day-of-month is always prefixed with zero to the length of 2. The year is always 4 digits. Example value: "02 OCT 2017". So judging from your question, the toString() method will suit your need.

For both types an empty string - rather than null - is returned if the value is blank.

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 >
8 People are following this question.

Related Questions

TibMsg missing in RFA 8 Java api

Service name alias for RFA

How to identify which update is for which RIC ?

Support for Java v11 and AZUL Java v8

FID 1010 Format

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • 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
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges