Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • App Studio /
avatar image
Question by robert.hardy · Aug 10, 2016 at 07:37 AM · apic#

Can I get bid and ask prices in a single ITimeSeriesDataService.SetupDataRequest?

Based on the code in the `DataApiUsageExampleTimeSeries` I am building a request like this:

            request = timeSeries.SetupDataRequest(ric)
                .WithView("BID")
                .WithAllFields()
                .WithInterval(CommonInterval.Daily)
                .From(from)
                .To(to)
                .OnDataReceived((dc) => { tcs.SetResult(dc); })
                .CreateAndSend();

Is it possible to also get ask prices in the same request and if yes, how do I get them out of the response?

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
REFINITIV
Best Answer
Answer by Zhenya Kovalyov · Aug 10, 2016 at 07:46 AM

@robert.hardy

There is a way to do this, you need to specify a different view in the WithView() function:

      request = timeSeries.SetupDataRequest("EUR=")
                .WithView("NDA_RAW")
                .WithAdjustedPrice(true)
                .WithAllFields()
                .WithInterval(CommonInterval.Daily)
                .WithNumberOfPoints(10)
                .OnDataReceived(DataReceivedCallback)
                .CreateAndSend();

Here is a piece from the tutorials explaining the views:

Every entry has a set of Views, or field definitions, that specify which data points are collected and stored. The views are largely tailored to a specific asset class of the financial instruments, but by default there will be:

  • Common or default view, that will carry a timestamp and the Open-High-Low-Close information for a default field (e.g. Trade for equities, Bid quote for the OTC instruments, etc.);
  • Raw view, containing all of the fields stored in the database for the selected instrument.

Supported intervals can be divided into three groups:

  • Evenly spaced intra-day: 1, 5, 10, 30 and 60 minutes;
  • Unevenly spaced intra-day: Tick, Quotes, Trades, Trades And Quotes;
  • Evenly spaced inter-day: Daily, Weekly, Monthly, Quarterly and Yearly.

You can get more information on this in the tutorial.

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

Related Questions

Eikon API unresponsive

Can I call a dll written in c++ from within a .NET app?

Bug requesting timeseries with DataGrid

retrieve data at a specific snap time (follow up)

DataServicesFactory.Create() - What application should I use to create DataServices?

  • 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
  • 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