question

Upvotes
Accepted
1 0 0 2

StandardExtractions/UserPackageDeliveryGetUserPackageDeliveryByDateRange return smaller number of files output

In Datascope GUI available files, i could download files back to June, however when i use rest API

https://hosted.datascopeapi.reuters.com/RestApi/v1/StandardExtractions/UserPackageDeliveryGetUserPackageDeliveriesByDateRange(SubscriptionId='XXX',FromDate=2017-07-30,ToDate=2017-07-31)

it only return 105 records and earliest record is 21st July 2019. Do you know why there is such difference?

tick-history-rest-api
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.

1 Answer

· Write an Answer
Upvotes
Accepted
76.7k 238 52 72

@yudong

Typically, if there are more files available, you can retrieve the list of those files via the "odata.nextlink".

        {
...
            "Name": "BRA-2019-07-23-REF-Data-CUSIP-1-of-1.csv.gz",
            "ReleaseDateTime": "2019-07-23T20:30:00.000Z",
            "FileSizeBytes": 1526,
            "Frequency": "Daily",
            "ContentMd5": "cec35f54f8ff976cdbc604b0e8241c1f"
        }
    ],
    "@odata.nextlink": "https://hosted.datascopeapi.reuters.com/RestApi/v1/StandardExtractions/UserPackageDeliveryGetUserPackageDeliveriesByDateRange(SubscriptionId='xxx',FromDate=2019-06-01,ToDate=2019-07-24)?$skiptoken='MjAxOS0wNy0yM1QxNzo0NToxMi45OTMwMDAwfDF8MjAxOS0wNy0yM1QxNzo0ODoxNS4xNjYwMDAw'"
}


Therefore, you need to send another request to the URL in the "@odata.nextlink" to retrieve more files.

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.