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
- 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 中文论坛