I would like to download time and sales data at the end of the day, every day using TRTHv2 REST API. I created a schedule to run at a specific time each day. Initially I specify, say, today;'s date in the range query of Report template. I will be needing to update this range query to tomorrow's date, after the schedule is triggered each day. How do I do this?
You can use "Schedule Relative Query" instead of "Range Query" once you create Tick History Time and Sales Report template. The Schedule Relative Query can be used to retrieve all data for a span of time that is defined relative to the extraction execution time. Each time the extraction executes, data is retrieved for that period of time defined relative to the extraction date. For daily extraction, you can define the start, and the end as Today.