API Support Forum
OEC API > API Support > Server Down Aleart
Author Topic: Server Down Aleart
(5 messages, Page 1 of 1)
Moderators: VPfau
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Sep 03, 2009 @ 12:12 PM             Msg. 1 of 5
Is there any way to get an aleart or message telling me that the server when down, wether it be the price server or quotes, or ordering, etc... ?This would be helpful in letting our clients know that there is somthing wrong.


There are 10 kinds of people in the world; those who understand binary and those who don't.
Edited by RVinicky on Sep 3, 2009 at 12:00 AM
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Sep 03, 2009 @ 12:37 PM             Msg. 2 of 5
OECClient.OnNewsMessage is called in API when an alert is broadcasted to clients.
jlanawalt
Posts: 88
Joined: Feb 12, 2009


Posted: Oct 01, 2009 @ 04:55 PM             Msg. 3 of 5
We have a very simple handler for these events:

void __stdcall apiOEC::OnNewsMessage(BSTR Channel,BSTR Message)
{
CString str(Message);
MessageBox(NULL,str,"News Message",MB_OK);
}

We haven't seen this function called once even though today we've heard OEC Trader has had a few alerts pop up about exchange changes this weekend.

Do news messages get broadcast to demo and real server logins?

Might these alerts be going out as user messages instead of news messages?

Is there a way to get a news and a user message sent on demand to our login? How can we test that we've got these working?

Thank you,
Jacob
jlanawalt
Posts: 88
Joined: Feb 12, 2009


Posted: Oct 02, 2009 @ 11:59 AM             Msg. 4 of 5
Last night or this morning my instance of OEC Trader logged into a real account got this message:

OEC Trader
(i) On Sunday, October 4, 2009, enhancements will be introduced for CME Equity Futures and Future spreads on CME Globex...<snip>


I had a demo login to the API overnight as well with the OnNewsMessage handler and a OnUserMessage handler. Neither were triggered.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Oct 02, 2009 @ 12:11 PM             Msg. 5 of 5
these messages are broadcasted only on the live server (prod.openecry.com) for live accounts.