API Support Forum
OEC API > API Support > basic connection error
Author Topic: basic connection error
(2 messages, Page 1 of 1)
Moderators: VPfau
DMarshall9356
Posts: 1
Joined: Jan 04, 2021


Posted: Jan 08, 2021 @ 02:34 PM             Msg. 1 of 2
This is likely a newbie question.
I'm trying to pilot as-is the C# basicexample from https://bitbucket.org/GainFuturesDev/
I am able to run the code and via the GUI I attempt to login with my OneLink API Account credentials.
The dialog info says it is attempting to connect to the default (and I believe correct) api.gainfutures.com port 9210.
After a moment, a dialog box pops up with "ConnectionError"
This is likely a basic issue. Could someone please suggest how I can debug or likely causes?
Thanks
Dave
ETrifonov
Posts: 63
Joined:


Posted: Jan 17, 2021 @ 10:56 PM             Msg. 2 of 2
Hello Dave,

Yes, api.gainfutures.com port 9210 is a correct address.
There are few error handlers in basic example code:

Client.Logging.ErrorOccurred += OnError;
Connection.LoginFailed += OnLoginFailed;
Connection.Disconnected += OnDisconnected;

You can try to get additional information from that handlers.
But, looks like application cannot reach our servers and I'm not sure why at that point.
Are you able to browse https://api.gainfutures.api site?
Also, it is depend on what day you are trying to connect.
Usually we have maintenace period on weekends.
Evgeny