Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • DSS /
avatar image
Question by satish.shioshankar.gaidhane · Jul 10, 2017 at 01:11 AM · dssTRTHdss rest apitrthv2

how to use API for downloading data generated by schedules created by GUI.

Hi All,

we looking for one example of downloading data which is available by schedules created by GUI.

what endpoint and parameters we need to use for GUI created schedules to download.

Basically we want to use api only for downloading part. Please help.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

7 Replies

  • Sort: 
avatar image
Best Answer
Answer by satish.shioshankar.gaidhane · Jul 12, 2017 at 02:08 AM

Hi,

I tried below endpoint but I am getting error.

Endpoint:

https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ScheduleGetByName('EC_GMT_TIC')

Error:

syntax error near unexpected token `('

What could be the reason. I used endpoint as per documents.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
veerapath.rungruengrayubkul ♦♦ · Jul 12, 2017 at 02:32 AM 0
Share

The ScheduleGetByName can be used with the following endpoint:

GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ScheduleGetByName(ScheduleName='<Schedule Name>')

Could you please try? If the issue still persist, please share the perl code you are using?

avatar image
REFINITIV
Answer by Christiaan Meihsl · Jul 10, 2017 at 10:53 AM

@satish.shioshankar.gaidhane, this can be done in several steps:

1) Retrieve the Report Extraction ID(s)

You can use the following method to find the schedule IDs and report extraction IDs for recently completed extractions:

Send a GET request to this endpoint:

https://hosted.datascopeapi.reuters.com/restapi/v1/Extractions/ReportExtractionGetCompleted()

Results extract:

{
    "@odata.context": "https://hosted.datascopeapi.reuters.com/restapi/v1/$metadata#ReportExtractions",
    "value": [        {
            "ReportExtractionId": "2000000001094891",
            "ScheduleId": "0x05c876cdb03b2fd6",
            "Status": "Completed",
            "DetailedStatus": "Done",
            "ExtractionDateUtc": "2017-07-05T15:24:11.106Z",
            "ScheduleName": "Test2_ElektronTS_EoD_ISN",
            "IsTriggered": false
        },
        {
            "ReportExtractionId": "264698982",
            "ScheduleId": "0x05c876beb0bb2fd6",
            "Status": "Completed",
            "DetailedStatus": "Done",
            "ExtractionDateUtc": "2017-07-05T15:23:09.676Z",
            "ScheduleName": "Test_TandC_ISN",
            "IsTriggered": false,
            "ExtractionStartUtc": "2017-07-05T15:23:10.000Z",
            "ExtractionEndUtc": "2017-07-05T15:23:11.000Z"
        },...

If required you can search for specific schedules in the results, by ID or name.

Save the ReportExtractionId for the schedules of interest.

From here on, it is similar to the REST API Tutorial 10, starting from this step. In a nutshell, you first retrieve the extraction report, then the files:

2) Retrieve the Extraction Report(s)

For each schedule of interest, send a GET request to this endpoint (note that we pass the ReportExtractionId (retrieved in the previous step) as a parameter, directly in the URL):

https://hosted.datascopeapi.reuters.com/restapi/v1/Extractions/ReportExtractions('2000000001094891')/Files

Typical results:

{
    "@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#ExtractedFiles",
    "value": [
        {
            "ExtractedFileId": "VjF8fDMwMzUzMDIwOQ",
            "ReportExtractionId": "2000000001094891",
            "FileType": "RicMaintenanceNote",
            "ExtractedFileName": "Test2_ElektronTS_EoD_ISN.ric.csv",
            "LastWriteTimeUtc": "2017-07-05T15:24:23.338Z",
            "ContentsExists": true,
            "Size": 90,
            "ReceivedDateUtc": "2017-07-05T15:24:23.338Z"
        },
        {
            "ExtractedFileId": "VjF8fDMwMzUzMDIwOA",
            "ReportExtractionId": "2000000001094891",
            "FileType": "Full",
            "ExtractedFileName": "Test2_ElektronTS_EoD_ISN.csv",
            "LastWriteTimeUtc": "2017-07-05T15:24:23.333Z",
            "ContentsExists": true,
            "Size": 143,
            "ReceivedDateUtc": "2017-07-05T15:24:23.333Z"
        },
        {
            "ExtractedFileId": "VjF8fDMwMzUzMDIwNw",
            "ReportExtractionId": "2000000001094891",
            "FileType": "Note",
            "ExtractedFileName": "Test2_ElektronTS_EoD_ISN.csv.notes.txt",
            "LastWriteTimeUtc": "2017-07-05T15:24:23.340Z",
            "ContentsExists": true,
            "Size": 2064,
            "ReceivedDateUtc": "2017-07-05T15:24:23.340Z"
        }
    ]
}

Save the ExtractedFileId for the files of interest.

3) Retrieve the Extraction Report(s)

Retrieve each file of interest, by sending a GET request to this endpoint (note that we pass the ReportExtractionId (retrieved in the previous step) as a parameter, directly in the URL):

https://hosted.datascopeapi.reuters.com/restapi/v1/Extractions/ExtractedFiles('VjF8fDMwMzUzMDIwOA')/$value

Comment
Mohammed Ashraf.Ali

People who like this

1 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Christiaan Meihsl ♦♦ · Jul 10, 2017 at 11:14 AM 0
Share

Please note that there are other ways to do this, see the REST API User Guide pages 111 and following (note this guide if for TRTH, not DSS, but what is described in this section applies to DSS and TRTH).

avatar image
Answer by satish.shioshankar.gaidhane · Jul 11, 2017 at 02:28 AM

Thank you. Anyone working on this type of requests using perl. any examples code.?

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by satish.shioshankar.gaidhane · Jul 12, 2017 at 02:35 AM

thanks..working fine

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by satish.shioshankar.gaidhane · Jul 12, 2017 at 02:37 AM

one question, if we change schedule name using GUI, does it change schedule id as well?

or once we create schedule first time, id remains same until we delete that schedule?

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Christiaan Meihsl ♦♦ · Jul 12, 2017 at 03:18 AM 0
Share

@satish.shioshankar.gaidhane, changing the name will not change the ID.

avatar image
Answer by satish.shioshankar.gaidhane · Jul 12, 2017 at 02:50 AM

Also, one more doubt. I tried below end point. but its not downloading file instead print information about metadata.

https://hosted.datascopeapi.reuters.com/restapi/v1/Extractions/ExtractedFiles('VjF8fDMwMzUzMDIwOA')/$value

O/P like similar.:

{"@odata.context":"https://hosted.datascopeapi.reuters.com/restapi/v1/$metadata#ExtractedFiles/$entity",
"ExtractedFileId":"VjFwNWNhNdfgdfDdiNzEyZWIzMDI2fA",
"ReportExtractionId":"2000000002",
"ScheduleId":"0x05c90c3bgfdfdgd3096",
"FileType":"Full",
"ExtractedFileName":"MarketData_20170711.csv.gz",
"LastWriteTimeUtc":"2017-07-11T06:49:04.000Z",
"ContentsExists":true,
"Size":11921802}

Comment

People who like this

0 Show 5 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Christiaan Meihsl ♦♦ · Jul 12, 2017 at 02:59 AM 0
Share

@satish.shioshankar.gaidhane, this is normal, there could be several files. There is an additional step to retrieve the files, using the ExtractedFileId, with a GET to:

https://hosted.datascopeapi.reuters.com/restapi/v1/Extractions/ExtractedFiles('ExtractedFileId')/$value

File type indicates what the file is: Full is the data file, Note is the extraction notes.

More details in REST API Tutorial 10. This particular step is explained here.

Edit: no, this is not normal. GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ReportExtractions('214446154')/Files should deliver that O/P.

avatar image
REFINITIV
Christiaan Meihsl ♦♦ Christiaan Meihsl ♦♦ · Jul 12, 2017 at 04:46 AM 0
Share

@satish.shioshankar.gaidhane, I am not able to reproduce what you mention. I see what is described in REST API Tutorial 10:

GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ReportExtractions('<reportExtractionId>')/Files delivers the list of files.

GET https://hosted.datascopeapi.reuters.com/restapi/v1/Extractions/ExtractedFiles('<ExtractedFileId>')/$value delivers the data.

If you still have this issue, could you please tell us the exact list of steps you followed till you observed this issue ?

avatar image
satish.shioshankar.gaidhane Christiaan Meihsl ♦♦ · Jul 12, 2017 at 05:32 AM 0
Share

Yes. I followed above steps.. using report extractioid I get ExtractedFieldId. and using extracted fielded, I tried to get file.. but we getting almost same o/p in both steps. Only difference is in step1 we get o/p for 2 files (notes and actual file) and in step2 we get o/p for the file for which I selected extractedfieldid.

step1:

"https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ReportExtractions('200000009442')/Files"

step2 :

"https://hosted.datascopeapi.reuters.com/restapi/v1/Extractions/ExtractedFiles('VjF8MHgwNWNhNDdiNzEIzMDI2fA')/$value"

could you please try as well.

avatar image
Answer by satish.shioshankar.gaidhane · Jul 12, 2017 at 03:01 AM

Hi. I used ExtractedFileId and I am getting above mentioned o/p

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Christiaan Meihsl ♦♦ · Jul 12, 2017 at 03:26 AM 0
Share

That is strange, a GET to https://hosted.datascopeapi.reuters.com/restapi/v1/Extractions/ExtractedFiles('VjFwNWNhNdfgdfDdiNzEyZWIzMDI2fA')/$value should retrieve the file. Let me double check.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
10 People are following this question.

Related Questions

Missing "Current RIC" Column in Intraday Summaries Response

TRTHv2 getRICSymbology Equivalent

Open Access RICs verification via DSS REST API

Hi, is there any c# sample code available for Stored & scheduled extraction. I have created a instrument list and report tamplate on web GUI and i just want to download it.

DSS API issue - response has no data although client is getting 200 OK

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges