question

Upvotes
Accepted
7 1 1 3

TickHistory Stored & Scheduled workflow: how to schedule delta / relative query date range

This question is from an existing TIckHistory user, Nikko Fund Wrap.

They would like to use TickHistory Stored & Scheduled workflow.

Please advise how they can set date range condition as delta/relative queries.

We checked API user guide, but can only found date range query settings for the workflow on page 69 of the API user guide. Please advise which condition should be used to retrieve scheduled workflow.


Regards,


Hiroko

#technologytick-history-rest-api
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.

Upvotes
Accepted
80.2k 259 52 75

@hiroko.goto

Other conditions depend on report templates. For example, the following is the valid conditions of the TickHistoryTimeAndSalesExtractionRequest report template.

1706681136249.png

You can check the REST API Reference Tree for more information.

1706681200080.png


1706681136249.png (56.1 KiB)
1706681200080.png (58.4 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.

@Jirapongse

Noted, thanks a lot!


Hiroko

Upvotes
80.2k 259 52 75

@hiroko.goto

Thank you for reaching out to us.

If it is about the ReportDateRangeType property, please refer to the answers on this discussion.

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.

@Jirapongse Thank you! I could find Relative query sample in the previous discussion, but not Delta.

Can I check with you if below condition is correct (selecting today's data by delta)?


1. "Condition" {

2. "MessageTimeStampIn": "GmtUtc"

3. "ApplyCorrectionsAndCancellations": false,

4. "ReportDateRageType": "Delta",

5. "DaysAgo": TODAY,

6. "DisplaySourceRIC": true


Regards,


Hiroko

@hiroko.goto

The DaysAgo property accepts an integer. You can try 0 (zero).

@Jirapongse , Thank you very much.

I have corrected date integer part as below. Are other conditions OK for delta query below?


1. "Condition" {

2. "MessageTimeStampIn": "GmtUtc"

3. "ApplyCorrectionsAndCancellations": false,

4. ReportDateRangeType": "Delta"

5. "DaysAgo": 0

6. "DisplaySourceRIC": true


Regards,


Hiroko

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.