For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
22 4 4 9

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?


dss-rest-apidatascope-selectdss
1615299919463.png (28.1 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @Lukasz Ossowski,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

Upvotes
Accepted
32.2k 40 11 20

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,
                    ...

?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
32.2k 40 11 20

Hello @Lukasz Ossowski<

Please see REST API Reference Tree.

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

Is this what you are looking for?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
22 4 4 9

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?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.