question

Upvotes
Accepted
3 1 2 5

Error in post ExtractRawRequest for RIC

Hi,

I used thth v2 rest api for expanding root FB10mv, The expanded RICs are

['FB10mvH8', 'FB10mvM8', 'FB10mvU8']

However when I tried to download the intraday report for these three RICs for date range

('QueryStartDate', '2017-12-26T00:00:00.000-05:00'), ('QueryEndDate', '2017-12-26T23:59:59.999-05:00'), It gave me error saying -

Instrument <RIC,FB10mvH8> expanded to 0 RICS.\nInstrument <RIC,FB10mvM8> expanded to 0 RICS.\nInstrument <RIC,FB10mvU8> expanded to 0 RICS.

Since its already an expanded RIC, why does the note says expanded to 0 RICS

tick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
11.3k 25 8 13

I have found the same error. I understand that the server will internally expand instruments to RICs before extracting data. The "expanded to 0 RICS" error should imply that the RIC is not available for the query range. If I modify the query range to Dec 27, data can be extracted properly.

The following result from Historical Search indicates that the RICs were available only on MarketByPrice domain ( domainCode: 8 ) on Dec 26, while the intraday report normally is on the MarketPrice domain.

For this issue, please kindly contact TRTH V2 support team via Contact Us for further investigation. In the product field, please select "Thomson Reuters Tick History v2".

Historical Search result for 'FB10mvH8' RIC:

Request:
POST https://hosted.datascopeapi.reuters.com/RestApi/v1/
{
"Request": {
"Identifier": "FB10mvH8",
"IdentifierType": "Ric",
"Range": {
"Start": "2017-12-26T00:00:00.000Z",
"End": "2017-12-26T23:59:59.999Z"
}
}
}

Response:
{
"@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#Collection(ThomsonReuters.Dss.Api.Search.HistoricalSearchResult)",
"value": [
{
"Identifier": "FB10mvH8",
"IdentifierType": "Ric",
"Source": "",
"Key": "VjF8MHgzMDAwMDAwMDAwMDAwMDAwfDB4MzAwMDAwMDAwMDAwMDAwMHx8fHx8fHxGQjEwbXZIOHw",
"Description": "Historical Instrument",
"InstrumentType": "Unknown",
"Status": "Valid",
"DomainCode": "8",
"FirstDate": "2017-06-09T00:00:00.000Z",
"LastDate": "2017-12-28T00:00:00.000Z",
"History": []
}
]
}

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea