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 chenchong · Nov 06, 2017 at 10:44 PM · rest apicompressed format

get compressed output data file.

Now I have a template using REST API like below:

How can I add the codes to make the output file compressed, just like xxx.csv.gz?

JSONOrderedObject reportTemplateJSONObject = new JSONOrderedObject() .put("@odata.type", "#ThomsonReuters.Dss.Api.Extractions.ReportTemplates.HistoricalReferenceReportTemplate") .put("ShowColumnHeaders", true)

.put("Name", reportTemplateName )

.put("Headers", new JSONArray() )

.put("Trailers", new JSONArray() )

.put("ContentFields", new JSONArray() .put( new JSONObject() .put("FieldName", "RIC") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "Change Date") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "Strike Price") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "Expiration Date") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "Exercise Style") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "OCC Code") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "Tick Value") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "Method of Delivery") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "Asset Category") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "CFI Code") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "ISIN") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "Place of Listing Flag") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "Market Segment Name") .put( "Format", JSONObject.NULL)) .put( new JSONObject() .put("FieldName", "Start date") .put( "Format", JSONObject.NULL)) ) .put("Condition", new JSONOrderedObject() .put( "StartDate", StartDate + "T00:00:00.000-00:00" ) .put( "EndDate", EndDate + "T00:00:00.000-00:00" ));

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.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by veerapath.rungruengrayubkul · Nov 14, 2017 at 01:55 AM

You can add "CompressionType": "GZip" to get compressed output data file for HistoricalReferenceReportTemplate. The code should be:

JSONOrderedObject reportTemplateJSONObject = new JSONOrderedObject() 
.put("@odata.type", 
"#ThomsonReuters.Dss.Api.Extractions.ReportTemplates.HistoricalReferenceReportTemplate")
 .put("ShowColumnHeaders", true)
 .put("CompressionType", "GZip")

You can find all available properties in the REST API Reference Tree

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

Related Questions

Some Instruments not returning correct data for Composite Extraction

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.

REST API: List creation/amending

We are able to extract daily CDOR rates. But we need to extract CDOR rates for specific date ? is it possible to extract past CDOR rates from datascope using Rest API? Is there any sample code to retrieve old CDOR rates from datascope using rest API ?

Rest API client libraries ThomsonReuters.Dss.RestApi.Client.dll and ThomsonReuters.Dss.Core.RestApi.Common.dll do not have strong names so it's not impossible to register in GAC. Are there available those libraries with strong names?

  • 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