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 applicationdevelopment · Dec 19, 2016 at 05:39 PM · trepRFAJADSOMMFieldEntry

How to handle fraction value in the fieldentry

I am trying to get details of itemname 'US30YT=TWEB' with rfa8 java. I can see two field entries -

FIELD_ENTRY 22/BID: 95 56/256
FIELD_ENTRY 25/ASK: 95 64/256

are returning fraction values. How to handle this situation

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.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by steven.peng · Dec 20, 2016 at 03:24 PM
@applicationdevelopment,The notation of REAL values are decided by the Hing value of OMMNumeric object.US30YT=TWEB and US30YWI=TWEB are not exchange RICs. They are created by Tradeweb and Tradeweb provider may have given different hint values to the REAL data of the two RICs. RFA Java developers guide 10.3.2.10 Decoding OMMNumerics has detailed explanations of decoding the OMMNumeric data. If you add the following statements to the decoder process, you will be able to see the native value of REAL:
else if (data.getType() == OMMTypes.REAL) {
	 	 OMMNumeric real64 = ((OMMNumeric) data);
        	 byte _hint = real64.getHint();
        	 long _longVal= real64.getLongValue();        	 
        	 ps.println("[" + _hint+ "]["+longVal+"]");
        }

For instance, just now US30YT=TWEB returned ASK as "[30][24284]" where hint value 30 is "DIVISOR_256" and we can translate the value to 24284/256 and yield the value "94 220/256".

As for US30YTWI=TWEB, the ASK returned "?[10][31280]", hint value 10 is EXPONENT_NEG4. Therefor, the true value should be 31280*(10**(-4)) and hence gives the value "3.1280"

Thanks,

--- Steve

Comment
zoya.farberov

People who like this

1 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 Pimchaya.Wongrukun · Dec 19, 2016 at 10:33 PM

Hello @applicationdevelopment

To convert a REAL field(fraction value) to double, you can use OMMNumeric.toDouble() which returns numeric converted to a double.

The example source code:

double doubleData = ((OMMNumeric) data).toDouble();  
System.out.print(fiddef.getName()+" string is " 
 + data + " and value is " + doubleData);

The example output:

BID string is 95 20/256 and value is 95.078125			
ASK string is 95 32/256 and value is 95.125

For more detail of OMMNumeric's methods, please refer to <RFAJ package>\Docs\refman\rfajava\com\reuters\rfa\omm\OMMNumeric.html

Comment

People who like this

0 Show 1 · 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
applicationdevelopment · Dec 20, 2016 at 09:14 AM 0
Share

Thank you for your quick response. We were comparing the responses for the two instrument codes US30YT=TWEB and US30YTWI=TWEB.

The refresh response for US30YTWI=TWEB comes back with decimal(double) notation for ASK and BID fields by US30YT=TWEB returns fractional notated value (e.g. 95 64/256) for the same ASK and BID fields.

Any reason why the field entry values are returned with different notation between these two instruments ?

thanks

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

Related Questions

How to handle blank data in the field entry

can I request for specific feild_entry in OMM

RFA login fails with unreadable characters.

OMM for TREP

RFA not sending heartbeats to ADS.

  • 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