Downloading MBO, MM data with custonized set of columns
We want to download MBO/MM data for given column names only. Please help.
Best Answer
-
query:
curl -vk -X POST -H "Content-Type: application/json" -H "Prefer: respond-async" -H "Authorization: Token xxxx" 'https://10.192.6.221/RestApi/v1/Extractions/ExtractRaw' -d @AllRICSFile.txt
content of AllRICSFile.txt:
@{ "ExtractionRequest": {"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TickHistoryMarketDepthExtractionRequest","ContentFieldNames": ["TRD_STATUS","BOOK_STATE","CURRENCY","DSPLY_NAME","MNEMONIC","ACTIV_DATE","TIMACT_MS","ORDER_SIZE","ORDER_PRC","ORDER_SIDE","OR_UDT_RSN","ORDER_TONE","PR_TIM_MS","PR_DATE","PR_TIM_MSP","OR_TIM_MS","OR_TIM_MSP","OR_DATE","QUOTIM_MS","ORDER_ID" ], "IdentifierList": {"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList","InstrumentIdentifiers": [ {"@odata.type": "#ThomsonReuters.Dss.Api.Search.HistoricalSearchResult","Identifier": "0001100000C8.HK","IdentifierType": "Ric"}, {"@odata.type": "#ThomsonReuters.Dss.Api.Search.HistoricalSearchResult","Identifier": "0001100000F8.HK","IdentifierType": "Ric"}, {"@odata.type": "#ThomsonReuters.Dss.Api.Search.HistoricalSearchResult","Identifier": "0001100000H7.HK","IdentifierType": "Ric"}, {"@odata.type": "#ThomsonReuters.Dss.Api.Search.HistoricalSearchResult","Identifier": "0001100000I7.HK","IdentifierType": "Ric"}, {"@odata.type": "#ThomsonReuters.Dss.Api.Search.HistoricalSearchResult","Identifier": "0001100000J7.HK","IdentifierType": "Ric"} ],"ValidationOptions":{"AllowHistoricalInstruments":true}},"Condition":{"View": "RawMarketByOrder","MessageTimeStampIn": "GmtUtc","ReportDateRangeType": "Range","QueryStartDate": "2017-08-18T00:00:00.000Z","QueryEndDate": "2017-08-18T23:59:59.000Z","DisplaySourceRIC": true}}}
Response:
HTTP/1.1 400 Bad Request
0
Answers
-
@Ayan, I am guessing you are making an On Demand extraction for a TickHistoryMarketDepthExtractionRequest, like what was discussed in this query, and would like to limit the output to a limited number of fields. If this assumption is wrong, then please correct me and give more details on what you are trying to achieve.
If you select in the condition section a view that is either "RawMarketByOrder" or "RawMarketMaker", then you cannot select the fields (because these are raw views).
If you select a view like NormalizedLL2 then you can select fields using the "ContentFieldNames" section. The chosen fields will be delivered for the number of levels you specify. These are the available fields: "Ask Price",
"Ask Size",
"Bid Price",
"Bid Size",
"Domain",
"History End",
"History Start",
"Instrument ID",
"Instrument ID Type",
"Number of Buyers",
"Number of Sellers",
"Sample Data".0 -
@Ayan, post your query inside Postman to see the error message, it clearly says all content field names are invalid:
{
"error": {
"message": "Validation Error:\r\n\r\nInvalid content FieldName \"TRD_STATUS\"\r\nInvalid content FieldName \"BOOK_STATE\"\r\nInvalid content FieldName \"CURRENCY\"\r\nInvalid content FieldName ...etc...
You cannot use FID names. You can retrieve the list of possible field names using a GET to endpoint:
Extractions/GetValidContentFieldTypes(ReportTemplateType=ThomsonReuters.Dss.Api.Extractions.ReportTemplates.ReportTemplateTypes'TickHistoryMarketDepth')
0 -
I found the below query in TRH website to get all valid column names.
Can you please help me with the replacement of TickHistoryMarketDepth for MBO/MM and Raw files( such as RAWTAS,RAWMD etc)?
0 -
Also, I would like to point out that you cannot choose the fields when you select "RawMarketByOrder" or "RawMarketMaker" view.
0 -
Hi @Ayan
As @Christiaan Meihsl already pointed out, you cannot choose fields of Raw files.
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
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 716 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
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛