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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

query symbol through ELEKTRON_DD service is not stable

when I query symbol through ELEKTRON_DD service in my server, one minute it works, the next it doesn't

the error details as following

#technologyServiceservice-status
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
Accepted
80k 257 52 75

@272094831

Thank you for reaching out to us.

From the call stack, I assume that the application uses the EMA message outside the EMA callback function.

Typically, the EMA messages are only valid within the EMA callback methods, such as AppClient::onRefreshMsg. To use the EMA messages outside the EMA callback methods, the application needs to clone the messages.

For example:

RefreshMsg clonedRefreshMsg 
...   
 public void onRefreshMsg(RefreshMsg refreshMsg, OmmConsumerEvent event)
    {
        clonedRefreshMsg =  EmaFactory.createRefreshMsg(refreshMsg);
        System.out.println(clonedRefreshMsg);   
    }

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 0 0

when I query symbol through ELEKTRON_DD service in my server, one minute it works, the next it doesn't

the error details as following

微信截图-20240428174034.png


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.