question

Upvotes
Accepted
18 2 3 6

Retrieving data from ATS using EMA API

Is there any sample code to retrieve data from ATS using EMA API

Receiving below error , hoping someone can point out the reason

20/7/2017 13:13:1 : ELEKTRON :Creating Message File[Tempfiles\Elektron-Messages-11056.txt] 20/7/2017 13:13:1 : ELEKTRON :Opening the Instruments file[Tempfiles\Elektron-Instruments-11056.txt] 20/7/2017 13:13:1 : ELEKTRON :Adding record[1] RIC[MRU_SINGASOIL0.5REG1M] 20/7/2017 13:13:1 : ELEKTRON :Adding record[2] RIC[MRU_SINGASOIL0.5REG2M] 20/7/2017 13:13:1 : ELEKTRON :Adding record[3] RIC[MRU_SINGASOIL0.5REG3M] 20/7/2017 13:13:1 : ELEKTRON :Adding record[4] RIC[MRU_SINGJAPFREIGHT] 20/7/2017 13:13:1 : ELEKTRON :Adding record[5] RIC[MRU_USDCRUDUB1M] 20/7/2017 13:13:1 : ELEKTRON :Adding record[6] RIC[MRU_USDCRUDUB2M] 20/7/2017 13:13:1 : ELEKTRON :Adding record[7] RIC[MRU_USDCRUDUB3M] 20/7/2017 13:13:1 : ELEKTRON :Adding record[8] RIC[MRU_USDSINGAKERO1M] 20/7/2017 13:13:1 : ELEKTRON :Adding record[9] RIC[MRU_USDSINGAKERO2M] 20/7/2017 13:13:2 : ELEKTRON :Adding record[10] RIC[MRU_USDSINGAKERO3M] 20/7/2017 13:13:2 : ELEKTRON :Adding record[11] RIC[MRU_XAUSWAP1M] 20/7/2017 13:13:2 : ELEKTRON :Adding record[12] RIC[MRU_XAUSWAP1Y] 20/7/2017 13:13:2 : ELEKTRON :Adding record[13] RIC[MRU_XAUSWAP2M] 20/7/2017 13:13:2 : ELEKTRON :Adding record[14] RIC[MRU_XAUSWAP3M] 20/7/2017 13:13:2 : ELEKTRON :Adding record[15] RIC[MRU_XAUSWAP6M] 20/7/2017 13:13:2 : ELEKTRON :Opening the Prices file[Tempfiles\Elektron-Prices-11056.txt] 20/7/2017 13:13:2 : ELEKTRON :Adding prices record[0] Price[22] 20/7/2017 13:13:2 : ELEKTRON :Adding prices record[1] Price[25] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_XAUSWAP6M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_XAUSWAP6M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_XAUSWAP3M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_XAUSWAP3M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_XAUSWAP2M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_XAUSWAP2M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_XAUSWAP1Y has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_XAUSWAP1Y has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_XAUSWAP1M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_XAUSWAP1M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_USDSINGAKERO3M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_USDSINGAKERO3M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_USDSINGAKERO2M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_USDSINGAKERO2M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_USDSINGAKERO1M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_USDSINGAKERO1M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_USDCRUDUB3M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_USDCRUDUB3M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_USDCRUDUB2M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_USDCRUDUB2M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_USDCRUDUB1M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_USDCRUDUB1M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_SINGJAPFREIGHT has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_SINGJAPFREIGHT has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_SINGASOIL0.5REG3M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_SINGASOIL0.5REG3M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_SINGASOIL0.5REG2M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_SINGASOIL0.5REG2M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :Outputting to message file[MRU_SINGASOIL0.5REG1M has state Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/7/2017 13:13:2 : ELEKTRON :StatusMsg Item Name: MRU_SINGASOIL0.5REG1M has streamstate[1] state[Open / Suspect / None / 'F6: Cannot Preempt Item'] 20/07/2017 12:13:06 PM : REUTERSELEKTRON : Waiting for Elektron to finish[1] of a total of [90] 20/07/2017 12:13:11 PM : REUTERSELEKTRON : Waiting for Elektron to finish[2] of a total of [90] 20/07/2017 12:13:16 PM : REUTERSELEKTRON : Waiting for Elektron to finish[3] of a total of [90] 20/7/2017 13:13:17 : ELEKTRON :Outputting to message file[MRU_SINGASOIL0.5REG1M has state Open / Suspect / Timeout / 'Request timed out.'] 20/7/2017 13:13:17 : ELEKTRON :StatusMsg Item Name: MRU_SINGASOIL0.5REG1M has streamstate[1] state[Open / Suspect / Timeout / 'Request timed out.'] 20/7/2017 13:13:17 : ELEKTRON :Outputting to message file[MRU_SINGASOIL0.5REG2M has state Open / Suspect

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apiATS
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

· Write an Answer
Upvote
Accepted
23.9k 52 17 14

Hi @Asif Khan

The "F6: Cannot Preempt Item" message is generated by the ADH server. ADH server send this it as a status response when a new request cannot be satisfied because the cache is full and an item cannot be preempted. It could happen because the priority of the requested item is less than the priority of any item in the cache.

You may need to configure the ADH maxCache, preemption parameters. I suggest you contact the TREP support team for more detail.

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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