question

Upvotes
Accepted
5 1 0 1

No start and end time in the response of HistoricalChainResolution?

Good day experts,

I'm trying the 'get historical chain' operation, the request body is:

{
"Request": {
"ChainRics": [
"0#.SPX"
],
"Range": {
"Start": "2008-01-01T00:00:00.000Z",
"End": "2008-01-01T00:00:00.000Z"
}
}
}


And the response looks like:

...

"Constituents": [
{
"Identifier": ".SPX",
"IdentifierType": "Ric",
"Source": "",
"Key": "VjF8MHgzMDAwMDAwMDAwMDAwMDAwfDB4MzAwMDAwMDAwMDAwMDAwMHx8fHx8fHwuU1BYfA",
"Description": "Historical Instrument",
"InstrumentType": "Unknown",
"Status": "Valid",
"DomainCode": "6"
},
{

...


It missed the 'Start' and 'End' time fields?

e.g., in the ' TICK HISTORY FOR DATASCOPE SELECT 13.2 REST API USER GUIDE''s example:

...

"Constituents": [
{
"Identifier": "HOF0",
"IdentifierType": "Ric",
"Source": "",
"Key": "VjF8MHgzMDAwMDAwMDAwMDAwMDAwfDB4MzAwMDAwMDAwMDAwMDAwMHx8fHx8fHxIT0Ywf
A",
"Description": "Historical Instrument",
"InstrumentType": "Unknown",
"Status": "Valid",
"DomainCode": "6",
"Start": "2008-01-01T00:00:00.000Z",
"End": "2008-01-01T00:00:00.000Z"
},
{

...


Is that true or I miss some settings in the http request?


Best Regards,

Frederic

tick-history-rest-apichain-ric
icon clock
10 |1500

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

1 Answer

Upvote
Accepted
11.3k 25 8 14

Hi @Frederic.Li,

I have verified the returned value of HistoricalChainResolution in the API Reference Tree and Metadata. There is no Start and End time field in response, so it likely is that the example result in the REST API User Guide document is not correct. To get the Valid Start and End time, you can pass the Constituents to HistoricalBulkSearch

I will contact TRTH support to verify the issue.

icon clock
10 |1500

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

Thank you Veerapath, looks like the HistoricalBulkSearch does not touch/display the history chain itself and when a constituent was added into that chain.