Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Transactions /
  • REDI API /
avatar image
Question by ichernyavskiy · Jan 24, 2019 at 03:04 PM · rediredi_api

REDIApi RediLib market data

I create an instance of CacheControl.

I believe saying something like CacheControl.Submit("L1", "True", errorMsg) begins listening.

To get a value for a symbol I do something like this: CacheControl.GetL1Value("SPY", "Bid", L1_BidPx)

That gets me a bid of SPY at the moment.

Is there an event which gets fired with a given field is updated? For instance Bid changed from 234.56 to 234.57

is there an example of it being used?

What is the use for CacheControl.CacheEvent? How is it used?

People who like this

0 Show 1
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.

avatar image
REFINITIV
wasin.waeosri ♦♦ · Feb 04, 2019 at 01:40 AM 0
Share

Hello @ichernyavskiy

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by zoya.farberov · Jan 25, 2019 at 12:06 PM

Hello @ichernyavskiy,

Yes, one is able to either retrieve the data once, or to register a custom event handler to be called on the events.

The callback should fire, it should be getting the updates.

Please verify if the project includes the required references, to the latest REDI Addin and REDI tlb. If you are not 100% sure, would recommend following the quick tutorial Getting Started in C#.

If they are included, I would suggest learning about REDI Cache Control and events by following one of our tutorials, I would go with Monitor Orders In C#.

Alternatively, the REDI API Spec includes all the details as well. The tutorial, in general, is a quicker way to absorb the approach, and to get the L1 updates.

... note, REDIPlus should be running on the box and logged in, to be able to interact with the CacheControl. The logged in user should be permissioned for API access to L1 market data in order to access it via API.

Hope this helps?

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 zoya.farberov · Jan 24, 2019 at 05:44 PM

Hello @ichernyavskiy,

Yes, you can use the CacheControl to subscribe to the updates via REDI C#, and to set an event handler to process them asynchronously.

Please look at the example REDIConsoleL1 on github.

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
ichernyavskiy · Jan 25, 2019 at 11:24 AM 0
Share

Hi zoya, please see my comment below.

avatar image
Answer by ichernyavskiy · Jan 25, 2019 at 11:15 AM

Thank you, Zoya.

In your example, when I subscribe, I add an eventHandler. However, it doesn't fire when prices change. Also even if I don't addwatch or submit, I can still pull data using GetL1Value. What is the point for AddWatch and Submit? redilibsubscribe.png

How do I get the event to fire when prices change?


redilibsubscribe.png (22.4 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 >
7 People are following this question.

Related Questions

Not able to create order?

Redi C# Samples on github are not working

Update event in REDI API

Getting the Name of Exchange from a RediLib.CacheControl object.

REDI C# Stage VWAP Order Not Honoring StartTime/EndTime Variable

  • 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