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 qiang.zhu · Aug 22, 2017 at 06:47 AM · rfa dotnet

how to get full order book (10 buy + 10 sell)

hi,

I'm using "rfanet8.0.1.E1.win" to receive market data from reuters.

have subscribed data for symbols like "DXM8", "GCG8", "HCEIQ7", etc. and received data like "BID/BIDSIZE/ASK/ASKSIZE/TRDPRC_1/TRDVOL_1/etc."

How can I get full order book? like 10 buy + 10 sell, price and size

whats the field should I looking for?

checked log, have NOT received any data like 'BID_1', 'ASK_1',... 'BID_10', 'ASK_10',

is this related to setting/permission of my account??

thanks

Sincerely.

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 umer.nalla · Aug 24, 2017 at 06:40 AM

Hi @qiang.zhu

Details on the various FIDs such as NO_ORD and ACC_SIZE is covered in the RDMUsageGuideNET pdf file in the docs folder and/or the RDMFieldDictionary in the etc folder.

e.g. RMDFieldDictionary describes ACC_SIZE as - In RWF market depth structure, cumulative size of all price points.

Please see my article on Sorting Level 2 data for more information on ordering/ranking the entries. The code snippets are EMA C++ - but the techniques are applicable to RFA too.

With regards content queries - i.e. what data is available / which RIC to use etc, please contact the Data Content helpdesk as mentioned in my previous post.

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 umer.nalla · Aug 22, 2017 at 07:19 AM

Hi @qiang.zhu

To get full Order Book you need to make MarketByPrice domain request - rather than MarketPrice request.

You should refer to RFA C++ Tutorial 8 - Level 2 RDM data - for an explanation. Although the code is C++, the technique is much the same.

You can test this in RFA .NET by using the Consumer example that is in the Examples\Consumer folder.

Change the Consumer.cfg file to request MarketByPrice and see the result

# RFA Session to be used by the Consumer application
\ConsumerClient_10\session	= "Session1"
# Service name to be used to request
\ConsumerClient_10\service	= "ELEKTRON_DD"
# Comma separated RIC List to be used to request
\ConsumerClient_10\itemList	= "DXM8"
# RDM message type
\ConsumerClient_10\msgModelRequestType		= "marketByPrice"
# Switches between domain specific decoding (true) and generic decoding 
\ConsumerClient_10\msgModelDefaultDisplay	= true 

You will see that the OrderBook is delivered in Map structure with each Map Entry representing an Order and using the same field names:

Map Key   ORDER_PRC   ORDER_SIDE  NO_ORD  ACC_SIZE 
97.540A   97.540      ASK         1       3        
90.000B   90.000      BID         1       1        
91.210B   91.210      BID         1       15       
94.100A   94.100      ASK         1       2        
95.545A   95.545      ASK         1       1    
....
and so on....    

So, the above is known as Level 2 Full Order Book - MarketByPrice data.

For some of our data it is also possible to get just Top of Order Book - i.e. only Top 10 orders - by making a 'standard' MarketPrice request - for this type of request you do see fields like 'BID_1', 'ASK_1',... 'BID_10', 'ASK_10'. This type of data requires a different RIC code - you will need to speak to our Data Content team to find out which RIC code (if available) to request. Use the following link to contact the Content team -Contact Us.

Comment

People who like this

0 Show 2 · 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
qiang.zhu · Sep 01, 2017 at 04:30 AM 0
Share

hi

thanks for the response,

here is another issue.

connected to reuters, service : EED_DELAYED , using QA account,

subscribe data by both "MARKET_PRICE" and "MARKET_BY_PRICE"

found that BID/ASK mismatch to order book, e.g.

for RIC : DXU7

time=[2017-09-01 16:17:55.684166], sym=[    DXU7], [Action=Update;Key=92.720A;time=[2017-09-01 16:17:56.119753], sym=[    DXU7], [                 ASK]=[92.755]
time=[2017-09-01 16:17:56.119753], sym=[ DXU7], [ BID]=[92.750]
time=[2017-09-01 16:17:56.416813], sym=[ DXU7], [Action=Update;Key=92.720A;

ask price (in order book) is less than BID price.

avatar image
qiang.zhu · Sep 01, 2017 at 04:33 AM 0
Share

hi

I clicked 'Submit', but cannot submit anything...dont know reason.

regarding to

time=[2017-09-01 16:17:55.684166], sym=[ DXU7], [Action=Update;Key=92.720A;

time=[2017-09-01 16:17:56.119753], sym=[ DXU7], [ ASK]=[92.755]

time=[2017-09-01 16:17:56.119753], sym=[ DXU7], [ BID]=[92.750]

time=[2017-09-01 16:17:56.416813], sym=[ DXU7], [Action=Update;Key=92.720A;

ask price (in order book) is less than BID price.

could you advise??

avatar image
Answer by qiang.zhu · Aug 24, 2017 at 06:17 AM

hi

thanks for the response,

I tried subscribe data using 'ThomsonReuters.RFA.RDM.RDM.MESSAGE_MODEL_TYPES.MMT_MARKET_BY_PRICE',

can get data in map container.

here are more questions:

what does 'NO_ORD', 'ACC_SIZE' mean?

as I searched them in file "RDMFieldDictionary", and "rfanet8.0.1.E1.win\Docs\*.pdf", find no result.

how can I know the order book level??

e.g. regarding to "97.540A", maybe it's of ASK_1, or ASK_2/3/4.

how can I know the level??

regarding to 'only Top 10 orders', are they avail for all futures?? or just for some exchanges?

as we want to start trading with FUTURE in global scope.

thanks

Sincerely.

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

Related Questions

AckMsg Timeout - NackCode NoResponse

RFASimpleInsert Example : Difference between RespTypeEnum.Refresh and RespTypeEnum.Update in PostMsg payload

cannot receive 'PRC_TICK', cannot build order book from L2 data

RFA and our TREP capabilities

PauseAll and ResumeAll has no effect

  • 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