question

Upvotes
Accepted
18 0 1 4

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-sdkrrtema-apielektron-message-apiATS
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

Upvote
Accepted
11.5k 16 7 10

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea