API Support Forum
OEC API > API Support > API Account Authentication
Author Topic: API Account Authentication
(4 messages, Page 1 of 1)
Moderators: VPfau
Posts: 2
Joined: Aug 29, 2018

Posted: Sep 06, 2018 @ 12:44 PM             Msg. 1 of 4
We are using the .net library to connect to your API. When we authenticate a user we are requested to send their UID/PWD to create a connection to the API. Since we are a web based application this is an issue because every time we need to connect to your service we need to send the users UID/PWD.

The issue is that we are a web based application and doing this is opens up a socket for the duration of the connected session. We have an issue opening a session connection for every account and hold these connections open for the duration of the users session. If we don't keep the session open we will have to re-authenticate and doing so would require us to save the users UID/PWD, which we would not like to do.

Do you have a REST endpoint so that we don't have to have a socket open all the time?

Thank you
Posts: 100
Joined: Oct 26, 2011

Posted: Sep 06, 2018 @ 01:03 PM             Msg. 2 of 4

OECAPI works with persistent connections only.
Currently we do not provide REST endpoints for that
Vitaliy Pfau
Posts: 2
Joined: Aug 29, 2018

Posted: Sep 06, 2018 @ 02:01 PM             Msg. 3 of 4

I just want to make sure I did not miss something in the documentation:

You provide no other connectivity then OECAPI?

Therefore, we will need to open a persistent connection to your service and keep it open for the duration of the users session. And this needs to be done for every Gain user. There are not other workflows?

Thank you.
Posts: 230

Posted: Sep 12, 2018 @ 01:36 PM             Msg. 4 of 4
We offer FIX connection as well. See API docs at https://gainfutures.com/api/index.html and go to OEC FIX and OEC FAST for details.

FIX sample is provided here: https://bitbucket.org/GainFuturesDev/oecfixsample/src/master/
Chris M