Unable to fetch expired contracts data from Data Scope RestAPI

ffiitb
ffiitb Newcomer
edited May 2 in TRTH

Attaching the C# code

Example RIC: LCOH4-J4

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @ffiitb

    Thank you for reaching out to us.

    To verify what the problem is, you need to print the Notes description. For example:

    foreach (String notes in extractionResult.Notes)
    {

    Console.WriteLine(notes); … }

    Moreover, please share the values (QueryStartDate, QueryEndDate, and TimeRangeMode) in the TickHistoryTimeAndSalesCondition that you are using.

     Condition = new TickHistoryTimeAndSalesCondition()
    {
    MessageTimeStampIn = TickHistoryTimeOptions.GmtUtc,
    QueryEndDate = EndTime,
    QueryStartDate = StartTime,
    ReportDateRangeType = ReportDateRangeType.Range,
    ExtractBy = TickHistoryExtractByMode.Ric,
    SortBy = TickHistorySort.SingleByRic,
    ApplyCorrectionsAndCancellations = false,
    DisplaySourceRIC = true,
    TimeRangeMode = TickHistoryTimeRangeMode.Inclusive
    },