Announcement

Collapse
No announcement yet.

query of historical data

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • query of historical data

    As far as i understood from testing, RequestHistory returns data for N bars/days up to the current time. Is there a way to query historical data between two points in the past, setting datetime for t1 and t2?

  • #2
    Yes. The last 2 parameters in RequestHistory are StartDate and EndDate, respectively.

    Comment


    • #3
      The API documentation says that the last two parameters are integer representations of TIME, not Date.

      Which one is correct? Is it time or date? If you can request historical data for a range of dates, how would you pass the dates in, since the arguments are int type?

      Comment


      • #4
        Sorry, you are correct. I was mixing it up RequestTimeSales, which is Date, not DateTime. No, there is not a away to obtain the data with that type of filter.

        Comment

        Working...
        X