How to apply delta time for Corporate Actions ISO 15022 template in REST API code?

What should be the code line to apply delta query in the API request message?


image

Best Answer

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

    Hello @Lukasz Ossowski,

    Looking at DSS SDK Example app, for CorporateActionStandard request, as you seem to be working with DSS SDK, it has

    ...
     Condition = new CorporateActionsStandardCondition
                    {
                        PreviousDays = 30,
                        ReportDateRangeType = ReportDateRangeType.Delta,
                        ...
                        QueryStartDate = null,
                        NextDays = null,
                        QueryEndDate = null,
                        PendingEventsHours = null,
                        PendingEventsMinutes = null,
                        ...

    ?

Answers

  • zoya faberov
    zoya faberov ✭✭✭✭✭

    Hello @Lukasz Ossowski<

    Please see REST API Reference Tree.

    ...
    "ReportDateRangeType": "Delta",
    ...

    Is this what you are looking for?

  • Yes, precisely. So, if I want to apply, e.g. "today", will the code line look like this:

    PendingEventsHours = null,

    PendingEventsMinutes = null,

    PendingEventsPreviousDays = 0

    PendingEventsPreviousMonths = null,

    ReportDateRangeType = ReportDateRangeType.Delta,


    And for yesterday, the "PendingEventsPreviousDays" value will be "-1", for two days ago "-2" etc?