How to Label field for the Content Fields of Market Depth and Time/Sales report template of TRTHv2 v
I have tried the following:Client is trying to Label content fields
JSONOrderedObject reportTemplateJSONObject = new JSONOrderedObject()
.put("@odata.type", "#ThomsonReuters.Dss.Api.Extractions.ReportTemplates.TickHistoryTimeAndSalesReportTemplate")
.put("ShowColumnHeaders",true)
.put("Name", trthTickReportTemplateName )
.put("Headers", new JSONArray() )
.put("Trailers", new JSONArray() )
.put("ContentFields", new JSONArray()
.put( new JSONObject()
.put("FieldName", "Quote - Ask Price")
.put( "Format", JSONObject.NULL)
.put("Label", "Quote - Ask Price"))
.put( new JSONObject()
.put("FieldName", "Quote - Ask Size")
.put( "Format", JSONObject.NULL)
.put("Label", "Quote - Ask Size"))
.put( new JSONObject()
.put("FieldName", "Quote - Bid Price")
.put( "Format", JSONObject.NULL)
.put("Label", "Quote - Bid Price"))
.put( new JSONObject()
.put("FieldName", "Quote - Bid Size")
.put( "Format", JSONObject.NULL)
.put("Label", "Foo - Bid Size"))
)
.put("Condition", new JSONOrderedObject()
.put("ApplyCorrectionsAndCancellations", false)
.put("MessageTimeStampIn", "LocalExchangeTime") //All rics in this template are for london so extract in london time
.put("QueryStartDate", sdfz.format(c1.getTime()))
.put("QueryEndDate", sdfz.format(c2.getTime()))
.put("ReportDateRangeType", "Range")
.put("SortBy", "SingleByTimestamp")
);
I have done something similar for MarketDepth template as well. I understand the Depth is trickier as you can have multiple levels, but my hope is that if I specify something like the below then I would get “L1-My AskPrice”, “L2-My Ask Price” etc.
.put("ContentFields", new JSONArray()
.put( new JSONObject()
.put("FieldName", "Ask Price")
.put( "Format", JSONObject.NULL)
.put("Label", "My Ask Price"))
to constrain the column headers returned so that she knew what column the
respective data is in.
For example:
-when she specify
FieldName “Quote – Ask Price” for Time and Sales report template the resulting
column is “Ask Price”
-when she specify
FieldName “Ask Price” for Market Depth report template, the resulting column is
“L1-AskPrice"
She is saying "the columns in the csv are also not in the same order
as she put in her JSON object. Basically, when we create interface
adapters we try to avoid hard coding values, plus who’s to say your API
returned column header names does not change in the future, so basically I need
a way of labelling the columns so I know for each FieldName exactly what column
index it will be or failing that what header name it will be.please advise why
the above two code snippets are having no effect on the column headers
returned?"
Best Answer
-
As @Troy-Dalldorf says, it's not currently possible to customize field labels, nor ordering, of Tick History content.
It's certainly something which we could consider for a future release, so I'd be delighted to hear of specific use-cases which make this feature valuable, to allow for appropriate prioritization.
1
Answers
-
It is not possible to customize the field labels for Tick History. We should be returning a validation error (400) when a custom label is attempted.
I will investigate the field ordering issue.
0 -
Hi Troy, when can we expect next update on this so that I will set the expectations to client accordingly.
0 -
I have sent a request to product management and waiting for a response. I CC'd you on the email.
0
Categories
- All Categories
- 6 AHS
- 37 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
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛