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

Upvotes
Accepted
20.3k 73 10 20

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

Upvotes
20.3k 73 10 20

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

Click below to post an Idea Post Idea