How to set time range for Time Series request on Web SDK?

Is it possible to set a time range for the time series request? I saw from the jet-plugin-timeseries.js source code that there are "to" & "from" params in the request, but it is not working.

Is there any corresponding param or a guideline/whitepaper for JET time series plugin? I can't find much details on time series example except "Getting started" on the demo page....

Best Answer

  • Zhenya Kovalyov
    Answer ✓

    You need to set the timeframe using a correct date time format, for instance:

    "from": "2016-02-23T00:00:00.000",

    "to": "2017-01-03T00:00:00.000",

Answers

  • from and to fields use date-time format. The sample request for JET time series is something like

    {
    "ric": "IBM.N",
    "timeZone": "Instrument",
    "intervalType":"Weekly",
    "intervalLength": 1,
    "adjustedPrice": true,
    "from": "2010-01-01T00:00:00Z",
    "to":"2012-01-01T00:00:00Z"
    }

    You can find JET time series request schema in this doc.

    https://thehub.thomsonreuters.com/docs/DOC-1586377

    Hope it answers your question.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.