API Support Forum
OEC API > API Support > Can't connect sim.openecry.com
Author Topic: Can't connect sim.openecry.com
(4 messages, Page 1 of 1)
Moderators: VPfau
AKudryavcev
Posts: 2
Joined: Mar 09, 2011


Posted: Mar 09, 2011 @ 10:35 AM             Msg. 1 of 4
Hello!

Can't connect to sim.openecry.com by this code:

_client = new OECClient();
_client.OnPriceChanged += new OnPriceChangedEvent(_client_OnPriceChanged);
_client.OnPriceTick += new OnPriceChangedEvent(_client_OnPriceTick);
_client.OnLoginFailed += new OnLoginFailedEvent(_client_OnLoginFailed);
_client.OnContractsChanged += new OnContractsChangedEvent(_client_OnContractsChanged);
_client.OnLoginComplete += new OnLoginCompleteEvent(_client_OnLoginComplete);
_client.OnDisconnected += new OnDisconnectedEvent(_client_OnDisconnected);
_client.OnTicksReceived += new OnTicksReceivedEvent(_client_OnTicksReceived);
_client.OnSymbolLookupReceived += new OnSymbolLookupEvent(_client_OnSymbolLookupReceived);
_client.OnError += new OnErrorEvent(_client_OnError);
_client.Connect("sim.openecry.com", 9200, "******", "******", true);

No events raised
What am I doing wrong?

Anton Kudryavcev
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Mar 09, 2011 @ 10:47 AM             Msg. 2 of 4
Hello,

what kind of applications do you use: console or winforms?

Victor Vins
Software Developer
AKudryavcev
Posts: 2
Joined: Mar 09, 2011


Posted: Mar 10, 2011 @ 02:27 AM             Msg. 3 of 4
i'm trying both but get same result

Anton Kudryavcev
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Mar 10, 2011 @ 08:00 AM             Msg. 4 of 4
Hello,

you can use our samples as a template.

Victor Vins
Software Developer