Download multiple extracted files simultaneously
Hello, I have established scheduled extractions via DSS GUI and would like to download multiple files simultaneously using the REST API. It appears that the URL below can recall data from one file. I would like to recall the data on around 100 files.
eg, a monthly download of data comprising 4 data files per business day.
Can someone please provide some guidance on the best way to achieve this. FYI - I have about 4 hours of coding experience.
I am using Postman
Best Answer
-
Hello @WDS Team,
Glad to suggest how to get up to speed on DSS REST API and to design a programmatic integration that is robust. Probably we can not encompass everything in one answer, so consider this a starting point.
DSS Quickstart Guide is built around DSS .NET SDK. If you are looking to integrate using .NET this is an excellent starting point.
If you are looking to integrate using another language, for example Python or Java, I suggest to get started with out targeted introductory tutorials:
Refinitiv DataScope Select - REST API -> Tutorials Introduction
and
Programming without SDK Tutorial
My understanding from your question is, that you are not looking to pursue a very popular On Demand integration approach that is described at high level in intros, that you are interested in GUI emulation, and specifically, in extracted file retrieval with this approach.
My understanding also is that you have downloaded, imported into your Postman and are looking at our DSS REST Tutorials Postman collection.
If this is the case, next suggest to review REST API Tutorial 10: GUI control calls: immediate extract, especially the second half with checking the status of the extractions and retrieving extracted files should be what you are looking to do, described in brief.
Going back to your specific question.
In a typical scenario, multiple separate scheduled extractions would complete at different times, asynchronously, we check the status shortly after the expected time, and once the specific extraction is complete, we retrieve the result.
If in your case all 100 results should be ready at the same time, the simplest approach is to sequentially go over the list of the extraction Ids, check the status, and if complete- get the data, the result files per extraction IDs.
To design the integration efficiently to your requirement, you may also wish to review REST API Reference Tree -> Report Extraction section of the spec. The methods described in this section, GetByScheduleID, GetCompleted and GetCompletedByDateRange can be of help with rounding up the specific extraction results that you require.
Let us know if this information is of help, or you are looking for something different?
0
Answers
-
You can also refer to the DSS REST API: Downloading Completed Extraction Files by a Schedule Name article which explains the steps to use the DSS REST API to download extraction files created by scheduled extractions. There are several samples in Postman, Python, C#, and Dotnet core. However, the examples download the latest file from the scheduled extraction.
I have created a new Python example that can load multiple files simultaneously by using the method mentioned on StackOverflow. The example is on GitHub. You can run it with these parameters
[-u dss_username] [-p dss_password] [-s schedule_name] [-n number of files (1)]
You can specify the number of downloaded files in the -n parameter. It will download files in the order that appears in the response of the Extractions/ReportExtractionGetCompletedByScheduleId(ScheduleId='<ScheduleId>') endpoint.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 616 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 654 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 229 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛