Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by yutaro.yashima · Jun 07, 2018 at 03:51 AM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikontime-seriestrade

Is ITradeData.PriceTick always null?

Hi.

I changed the sample code "Usage Example Time series API" in the following manner:

    public class TimeSeriesRequestExample
    {
        private readonly ITimeSeriesDataService timeSeries;
        private ITimeSeriesDataRequest request;


        public TimeSeriesRequestExample(ITimeSeriesDataService timeSeries)
        {
            this.timeSeries = timeSeries;
        }


        public void Launch()
        {
            Console.WriteLine("[2] Time series request example");
            Console.WriteLine("");
            
            request = timeSeries.SetupDataRequest("TFXDAX")
                .WithView("TRDPRC_1")
                .WithAllFields()
                .WithTimeZone(TimezoneType.Instrument)
                .WithInterval(CommonInterval.Trades)
                .From(new DateTime(2018, 6, 6, 15, 0, 0))
                .To(new DateTime(2018, 6, 7, 5, 0, 0))
                .OnDataReceived(DataReceivedCallback)
                .CreateAndSend();
        }


        private void DataReceivedCallback(DataChunk chunk)
        {
            foreach (ITradeData bar in chunk.Records.ToTradeRecords())
            {
                int priceTick = -1;
                if (bar.PriceTick != null) priceTick = (int)bar.PriceTick.Value;
                Console.WriteLine(
                        "{0} {1} {2} {3} {4} {5} {6} {7} {8} {9}",
                        bar.Timestamp.Value.ToString("yyyy/MM/dd HH:mm"),
                        bar.Last.Value.ToString("##.0"),
                        bar.TradePrice.Value.ToString("##.0"),
                        bar.TradeVolume.Value.ToString("N0"),
                        bar.BestBid.Value.ToString("##.0"),
                        bar.BidSize.Value.ToString("N0"),
                        bar.BestAsk.Value.ToString("##.0"),
                        bar.AskSize.Value.ToString("N0"),
                        priceTick,
                        bar.Vwap.Value.ToString("##.0")
                    );
            }

            if (!chunk.IsLast) return;


            request = null;
            Program.StopMessagePump();
        }
    }

But, it seems that PriceTick of ITradeData always returns null value.

Is there any configuration that I am missing?

What I am trying to do is what we can get using the RHistory() function in Excel.

Specifying in the second parameter of this function "TRDPRC_1.Timestamp;TRDPRC_1.Value;TRDPRC_1.Trdprc_1;TRDPRC_1.Count;TRDPRC_1.Bid;TRDPRC_1.Bidsize;TRDPRC_1.Ask;TRDPRC_1.Asksize;TRDPRC_1.Prctck_1;TRDPRC_1.Vwap"

I have confirmed that all values, except of TRDPRC_1.Prctck_1, are equal to that I get using the C# code above. And TRDPRC_1.Prctck_1 return values 1 or 2 (and not blank or null).

So, the question is "what is the equivalent of TRDPRC_1.Prctck_1 in the time series API?"

Regards

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 Alex Putkov.1 · Jun 07, 2018 at 12:02 PM

@yutaro.yashima
I reproduced the issue on my end and it looks like a bug in Eikon .NET SDK. I logged the issue on your behalf with Thomson Reuters Support. For your reference the case number is 06648347. You will be contacted by Thomson Reuters Support to keep you informed on the progress of the case. As an immediate workaround you can calculate the value of the price tick in your code by comparing the last trade price with the previous trade price for each trade returned in the timeseries.

Comment
yutaro.yashima

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
Answer by yutaro.yashima · Jun 07, 2018 at 08:02 PM

@Alex Putkov.

Thank you very much.

We will proceed using the workaround described.

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

I am using TimeSeries.SetupDataRequest and getting incomplete data

Unable to retrieve stock prices before 2008 with get_time_series

get_timeseries throws if cannot get info for 1 ticker

Eikon Data Api. Timeseries request failed

How can I get bid and ask prices in a 1-min intervale from Python API for LCOc1 and LCOTc1?

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