For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
7 3 2 3

DSS: Tick History Market Depth Report with Query Types = Schedule relative query - Error in API

Hi,

i use .NET DSS REST API.

under DSS i have set up the following 'Tick History Market Depth Report':

When i choose the schedule Relative Query, there is a parse error when i retrieve the report via the API.

ExtractionsContext.ReportTemplateOperations.GetByName("TEST")

the exception is:

It seem the enum ReportDateRangeType does not have the 'Relative' value

Can you check this?

Thanks

Pierre

dss-rest-apidatascope-selectdss
dss.jpg (71.3 KiB)
stack.jpg (134.6 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @PBI,

Just to double-check, you are using C# API to retrieve and your version is the latest?

I just tried to reproduce, created a relative query via GUI and GetByName-ed it via API:

ExtractionsContext.ReportTemplateOperations.GetByName("myTandSTemplateName" 

Did not reproduce this issue, received HTTP Response:

 ...

 "ApplyCorrectionsAndCancellations": false,
        "ReportDateRangeType": "Relative",
        "RelativeStartDaysAgo": 0,
        "RelativeEndDaysAgo": 0,
        "RelativeStartTime": "00:00:00.000",
        "RelativeEndTime": "23:59:59.000",
...
Upvotes
Accepted
79.2k 251 52 74

@PBI

The latest ReportDateRangeType defined in https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/$metadata has Relative enum.

<EnumType Name="ReportDateRangeType">
  <Member Name="NoRange" Value="0"/>
  <Member Name="Init" Value="1"/>
  <Member Name="Range" Value="2"/>
  <Member Name="Delta" Value="3"/>
  <Member Name="Last" Value="4"/>
  <Member Name="Relative" Value="5"/>
</EnumType>

However, ReportDateRangeType defined in .NET SDK 11.1.527.0 doesn't have this Relative enum.

public enum ReportDateRangeType
    {
        NoRange = 0,
        Init = 1,
        Range = 2,
        Delta = 3,
        Last = 4,
    }

Please directly submit the query to TRTH V2 support team via Contact Us. Please select product: Thomson Reuters Tick History v2.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@PBI

You can download the latest version 11.1.558 from REST API Help page.

It contains Relative enum.

    public enum ReportDateRangeType
    {
        NoRange = 0,
        Init = 1,
        Range = 2,
        Delta = 3,
        Last = 4,
        Relative = 5,
    }

resthelp.png (53.9 KiB)

The SDK version in the community has just been updated. It is available under the downloads tab.

Thanks @jirapongse.phuriphanvichai, @Christiaan Meihsl
No error with the version 11.1.558.0

Upvotes
7 3 2 3

Hello @zoya.farberov

i use this version: 11.1.527.0 (is the last version?)

My report type is a TRTH Market Depth report:

Pierre


trth.jpg (14.3 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.