question

Upvotes
Accepted
76 5 5 10

sometimes VDB files are not downloaded completely. is this due to network issue ?

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.

@samara

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 reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Hello @samara

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 reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

@samara, please be informed that a reply has been verified as correct in answering the question, and has been marked as such. Thanks, AHS

1 Answer

· Write an Answer
Upvotes
Accepted
11.3k 25 9 14

@samara

According to Best Practices and Limits for Tick History, below is the limitation for file download.

You can have up to four extraction downloads in progress at one time. This total applies to any combination of custom reporting and Venue by Day downloads, via any combination of the REST API and via the GUI.

There is an exception to extraction file download limits: there is no limit on the number of files that you can download directly from Amazon Web Services (AWS) at one time. Downloading directly from Amazon is described in the Tick History REST API Users Guide and the Tick History User Guide.

As there is no limit on the number of files downloaded directly from AWS, please change your CURL script to download files from AWS instead.

Please add the “X-Direct-Download : true” as a header of the VBD file download request. This request will be redirected to AWS via HTTP 302 redirect.

Below are sample commands.

  • -Get redirect URL, and then store it in an environment variable
redirect_url="$(curl -I -Ls -H 'Authorization: Token_xxxxxxxxxxxxxxxxxxxxx' -H 'X-Direct-Download:true' -X GET https://hosted.datascopeapi.reuters.com/RestApi/v1/StandardExtractions/UserPackageDeliveries%28%27<UserPackageDeliveriesID>%27%29/%24value -o /dev/null -w %{url_effective})"
  • Directly download a VBD file from the redirect URL.
curl -k -X GET $redirect_url -o OTC-2019-01-15-NORMALIZEDMP-Data-1-of-1.csv.gz
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.