VBD data file download
I am trying to download data files as per the information given in the page#125 of ThomsonReutersTickHistory11.0RESTAPIUserGuidev1.0.pdf document. But I am not able to download the files. It is showning the details of the file only.I am using below query.
Query:
curl -k -X GET -H "Authorization: Token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" https://10.xxx.xxx.xxx/RestApi/v1/StandardExtractions/UserPackageDeliveries('0x05cd6940a5eb3016')/$value
Output:
@{ "@odata.context": "https://10.xxx.xxx.xxx/RestApi/v1/$metadata#UserPackageDeliveries/$entity", "ContentMd5": "435a1e4ba9b1ca6bfcf2e86bc4a8589a", "FileSizeBytes": 1412, "Frequency": "Daily", "Name": "ASQ-2017-07-20-REF-Report-1-of-1.csv.gz", "PackageDeliveryId": "0x05cd6940a5eb3016", "ReleaseDateTime": "2017-07-21T04:00:00.000Z", "SubscriptionId": "0x0400dc1d24a00cb4", "UserPackageId": "0x04f21a8d14859cb1" }
Best Answer
-
I have found the same result. It seems that the "$value" in the uri is treated as an variable, so it will be interpreted to blank. As result, the end point has been changed to just "/RestApi/v1/StandardExtractions/UserPackageDeliveries('VALID_PACKAGE_DELIVERY_ID')".
You may need to change the "$" character to "%24".
Also, the result normally is in gzip format. You may need to add the "-o <output file>" in the command to write the result to file.
curl -k -X GET -H "Authorization: Token
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
https://10.xxx.xxx.xxx/RestApi/v1/StandardExtractions/UserPackageDeliveries('0x05cd6940a5eb3016')/$value -o <gzip output file>0
Answers
-
Hello @Ayan,
Have you requested the list of valid packageDeliveryIds as described in TRTH REST API User Guide as per request
curl -k -X GET -H "Authorization: Token YOUR_TOKEN_HERE" https://HOSTED_URL/RestApi/v1/StandardExtractions/UserPackageDeliveryGetUserPackageDeliveriesByPackageId(PackageId='YOUR_PACKAGE_ID')
Then if it's a valid PackageDeliveryId you should be able to substitute like so
curl -k -X GET -H "Authorization: Token YOUR_TOKEN_HERE" https://HOSTED_URL/RestApi/v1/StandardExtractions/UserPackageDeliveries('VALID_PACKAGE_DELIVERY_ID')/$value
You should back a gz file.
Once you know the request is working, have received the response you expect, you wish to process this file with an app, not curl.
Hope this helps clarify
0 -
Facing issue while downloading MARKETPRICE and NORMALIZEDLL2 file type.
curl -vk -X GET -H 'Content-Type: application/json' -H 'Prefer: respond-async' -H 'Authorization: Token xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' -o TYO-2017-08-07-MARKETPRICE-Data-1-of-1.csv.gz https://10.192.6.221/RestApi/v1/StandardExtractions/UserPackageDeliveries('0x05d305c76d5b2f76')/$value
* About to connect() to 10.192.6.221 port 443 (#0) * Trying 10.192.6.221... connected * Connected to 10.192.6.221 (10.192.6.221) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * warning: ignoring value of ssl.verifyhost * skipping SSL peer certificate verification * SSL connection using TLS_RSA_WITH_AES_128_CBC_SHA256 * Server certificate: * subject: CN=hosted.datascopeapi.reuters.com,O=Thomson Reuters,L=New York,ST=New York,C=US * start date: Nov 14 00:00:00 2015 GMT * expire date: Nov 14 23:59:59 2017 GMT * common name: hosted.datascopeapi.reuters.com * issuer: CN=Symantec Class 3 Secure Server CA - G4,OU=Symantec Trust Network,O=Symantec Corporation,C=US > GET /RestApi/v1/StandardExtractions/UserPackageDeliveries%28%270x05d305c76d5b2f76%27%29/%24value HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: 10.192.6.221 > Accept: */* > Content-Type: application/json > Prefer: respond-async > Authorization: Token xxxxxxxxxxxxxxxxxxxxxxxxxxxxx > % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0< HTTP/1.1 404 Not Found < Set-Cookie: DSSAPI-COOKIE=R2485808843; path=/ < Cache-Control: no-cache < Pragma: no-cache < Content-Type: application/json; charset=utf-8 < Expires: -1 < Server: Microsoft-IIS/7.5 < X-Request-Execution-Correlation-Id: d9ce692e-9f92-4508-8123-fc0f6f974dd9 < X-App-Id: Custom.RestApi < X-App-Version: 11.1.534.64 < Date: Thu, 10 Aug 2017 18:51:01 GMT < Content-Length: 64 < { [data not shown] 0 64 0 64 0 0 41 0 --:--:-- 0:00:01 --:--:-- 68 0 64 0 64 0 0 41 0 --:--:-- 0:00:01 --:--:-- 68* Connection #0 to host 10.192.6.221 left intact * Closing connection #0
Please help.
0 -
I am also unable to download these files via GUI.
- TYO-2017-08-07-MARKETPRICE-Data-1-of-1.csv.gz
- TYO-2017-08-07-NORMALIZEDLL2-Data-1-of-1.csv.gz
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛