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

Best Answer

Answers

  • @hiroko.goto

    Thank you for reaching out to us.

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

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

  • @Jirapongse

    Noted, thanks a lot!


    Hiroko