question

Upvotes
Accepted
322 5 12 16

A few TRTH API Questions

Hi, I have a several questions regarding the API TRTH. 1) Is it possible to add a filter when quering TRTH through API. as example how can you do to retrieve only the reference data for for RIC GRLS.D where field "Place of Listing" is set to 'Y' ? 2) Is it mandatory is precise the security type( Equity, Warrant ..) when quering reference data through API as it is required when using web site ( GUI) ?
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
401 15 18 33

1: If you are asking whether it's possible to submit a request for reference data with a filter applied ("Place of Listing" = "Y"). Then, this is not possible with our request API (SubmitRequest & SubmitFTPRequest). You will need to apply the filter on their end.

2: This would depend on the operation. In the SearchRICs operation, fields can be defined without specifying the message type. In contrast the SubmitRequest operation requires that the messageType be defined for each set of fields. Each messageType will have their specific fields. Refer to <GetMessageTypes> for a full field list. MessageType and fieldList elements are all containers.

Under the "Reference Data" field tree, there are categories for "Equities" and "Warrants". In the API methods for SubmitRequest and SubmitFTPRequest, these are specified in the "MessageTypeList" parameter. Multiple messages types may be included in a single request. Under each MessageType, a list of fields can be specified that are specific to that message type.

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