How to specify a time range when making a tick history rest api call for intraday bars? For exam...

How to specify a time range when making a tick history rest api call for intraday bars? For example How to I request data from 06:00 to 18:00? for a Are there other value for this field? "ReportDateRangeType": "Range"

Best Answer

  • zoya faberov
    zoya faberov ✭✭✭✭✭
    Answer ✓

    Hello @Shyamala.K,

    Use Condition with QueryStartDate and QueryEndDate:

    "Condition": {  
    "MessageTimeStampIn": "GmtUtc",
    "ReportDateRangeType": "Range",
    "QueryStartDate": "2016-09-29T00:00:00.000Z",
    "QueryEndDate": "2016-09-30T00:00:00.000Z",
    "SummaryInterval": "OneHour",
    "TimebarPersistence": true,
    "DisplaySourceRIC": true

    }

    For a complete example please refer to

    Tuturial 6 Intraday Bars