For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 0

Websocket return code - Close market

Hi,


We would like to know if the API allows us to know the position of the markets, whether they are open, closed or no data available.


- It does not return anything, we then consider that the market is closed

- Or, it returns a specific value, which indicates the closing of the market

- Or, inform about opening and closing hours.


Is there an error list


Thanks

treprdp-apiwebsocketsrrtopricing
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.

Hello @Rey

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

@Rey

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
25.3k 87 12 25

Hi @Rey

The API itself is not providing the null value. You are using the Websocket API to request data for PEGDA from the Elektron feed. If you are receiving a null value, then it is the Elektron feed that is publishing the null value.

The PEGDA RIC is just one of the millions of RICs that we carry on our Elektron feed and characteristics of the data received for each RIC can vary depending on the instrument type / asset class / exchange etc.

The API will just return whatever the feed publishes - that is why I recommended you contact the Content helpdesk so they can explain how each of the instruments / markets you are interested will behave when the market is closed.

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.

Upvotes
25.3k 87 12 25

Hi @Rey,

The Websocket API can be used to consume data from a source such as Elektron Realtime in Cloud or a TREP server and is content neutral.

It cannot directly communicate the state of a particular market. Even if you request an instrument from a closed market, you canl still get a response which shows the current state of the instrument e.g. closing price etc.

To determine if the market for that instrument is open / closed or any other state e.g. halted, you will need to raise a Content Type ticket for Elektron with our Helpdesk. When you raise the ticket please provide examples of instruments / markets / asset classes you are interested in.

It would be advisable not to mention Websocket API in the query - to ensure your ticket is routed to a content specialist and not API support.

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.

Upvotes
1 0 1 0

Hi Umer,

Thanks for your response. In case this is our request without the token

When the market ix close w have a null value.

Login :

{
   "Domain":"Login",
   "ID":1,
   "Key":{
      "Elements":{
         "ApplicationId":"256",
         "AuthenticationToken":"00000"Position":"1.1.1.1\/myhost"
      },
      "NameType":"AuthnToken"
   }
}

Market message :

{
   "ID":2,
   "Key":{
      "Name":"PEGDA"
   }
}
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.