Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TRTH /
avatar image
REFINITIV
Question by vinod.amarnath · Apr 21, 2020 at 04:52 PM · python apitrthv2rest apitrthv2 rest api

TRTH REST API - Could you please provide python API code to retrieve extraction ID and also Python code to download extracted file.

@vinod.amarnath

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.

4 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Gurpreet · Apr 21, 2020 at 05:37 PM

Hi @vinod.amarnathm

Please take a look at Python samples in the downloads tab of TRTH API. You can also look at Refinitiv API samples github site, and search for TRTH and filter by Python.

If you are still unable to find what you need, ask here again, and we will put something together.

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
vinod.amarnath · Apr 21, 2020 at 06:14 PM 0
Share

Hi @Gurpreet. Thank You. I did checked on all searches and posted here. All I got was Scheduling or using specific report templates with python.

I am looking specifically to

python API code to retrieve extraction ID and also Python code to download extracted file.

avatar image
REFINITIV
Answer by Gurpreet · Apr 21, 2020 at 06:20 PM

Which extraction endpoint are you trying to invoke, and what are the parameters.

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
REFINITIV
Answer by zoya.farberov · Apr 21, 2020 at 06:25 PM

Hello @vinod.amarnath,

Does Python Code Examples in TRTH Downloads Section, example TRTH OnDemand Intraday look to be what you are looking for? Request and retrieve IntradayBars in python?

jobId = Extraction ID.

Please find the explanation of the approach to asynchronous request processing in this tutorial.

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
REFINITIV
Answer by veerapath.rungruengrayubkul · Apr 22, 2020 at 04:36 AM

Hi @vinod.amarnath,

The TRTH Python Code Samples in the download tab contains the TRTH_Get_Latest_Schedule_Files example. The example demonstrates how to retrieve last extraction id and download the extraction files for a given schedule name. Below are the list of provided functions:

  • Get authentication token
  • Get the schedule ID from the schedule name
  • Get the report extraction ID for the last extraction of a schedule
  • Get the extracted file list, with for each file its ID, type, name and size
  • Download and save a file to disk (the file is referenced by its file ID)
  • Download and display the extraction notes file, without saving them to disk
  • Read and display a text file (from hard disk)
  • Read, decompress and display a zipped text file
  • Read, decompress and display a gzipped text file
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.

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 >
14 People are following this question.

Related Questions

TRTHv2 REST API

Python Asynchronous Alternative to Polling in Tick History?

Trying to get fields list of the ElektronTimeSeries using GET Action on TRTHV2 REST API

How to Label field for the Content Fields of Market Depth and Time/Sales report template of TRTHv2 via REST API JAVA

Intraday Summaries extraction on TRTHv2 using Python language resulting '{"error":{"message":"Malformed request payload: \'@odata.type\' is either missing or misplaced for type ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.ExtractionRequest"}}'

  • 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
  • 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