question

Upvotes
Accepted
13 2 1 2

How EMA Java leverage View function by subscribing FieldName

In the doc, https://developers.refinitiv.com/article/elektron-messaging-api-java-batch-and-view-features, it describes a sample of using View to subscribe a few of Fields by FIDs. Is it able to subscribe by 'FieldName', e.g. 'TRDPRC_1', 'BID, 'ASK' etc? Thanks.

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-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.

Upvotes
Accepted
9.5k 10 5 7

Hello @tony.zhu

ADS does not support Field Filtering by Field Name; only FIDs are supported. If Field Names are used, all fields are returned with the status text "Unsupported view type" as an example shown below:

Item Name: IBM.N 
Service Name: ELEKTRON_REPLABLINUX1 
Item State: Open / Ok / Unsupported view type / 'OK' 
Fid: 1 Name = PROD_PERM DataType: UInt Value: 62 
Fid: 2 Name = RDNDISPLAY DataType: UInt Value: 64 
Fid: 3 Name = DSPLY_NAME DataType: Rmtes Value: INTL BUS MACHINE 
Fid: 4 Name = RDN_EXCHID DataType: Enum Value: NYS 
Fid: 6 Name = TRDPRC_1 DataType: Real Value: 116.76 
...

For more details, please refer to 7.24 Field Filtering in ADS Software Installation Manual

Anyway, you may consider WebSocket API which allows you to sends Field Names in a View request as the following example:


Note: WebSocket API requires TREP version 3.2.1 and above with the WebSocket connection enable.


view-fieldnames.png (10.3 KiB)
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.

Upvotes
13 2 1 2

Thanks Pimchaya.Wongrukun for the quick and detailed clarification.

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