API Support Forum
OEC API > API Support > Login not completing
Author Topic: Login not completing
(5 messages, Page 1 of 1)
Moderators: VPfau
Posts: 3
Joined: Jul 06, 2022

Posted: Aug 18, 2022 @ 03:04 PM             Msg. 1 of 5
I'm comparing detailed logging from the AdvancedExample with my code, I get a matchup with:

OrderConnection Connecting to api.gainfutures.com:9210
OrderConnection Outgoing:
OrderConnection Connected to Some(
PriceConnection Connecting to api.gainfutures.com:9211
PriceConnection Outgoing:
PriceConnection Connected to Some(
Login to Gain Futures Order Server v4.1.0.0
Login to Gain Futures Price Server v4.1.0.0

But then I don't see Core Loading or Core Loaded, and I don't see an event for OnLoginComplete.

What am I missing?

Posts: 332

Posted: Aug 18, 2022 @ 04:46 PM             Msg. 2 of 5
I'm not seeing any errors on our side. Do you have trouble logging into GAIN Trader Developer?

Download here: https://api.gainfutures.com/WebAPI/api/Files/DownloadClientUpdateLast?brandId=0&clientTypeId=0&branchId=2
Chris M
Posts: 3
Joined: Jul 06, 2022

Posted: Aug 18, 2022 @ 06:00 PM             Msg. 3 of 5
I can logon with the AdvancedExample and Gain Trader Developer to execute trades, but I'm having trouble with my new code. I only get so far in the logon process and the logincompleted message isn't sent. When I look at the client object it's not showing connected. My connection code is very straightfoward and I've inspected all the data going in:

new ConnectionContextBuilder()
Posts: 176

Posted: Sep 07, 2022 @ 02:41 PM             Msg. 4 of 5
Do you have a thread that calls gflicent.Threading.Advance()?
Jason Smith
Posts: 3
Joined: Jul 06, 2022

Posted: Sep 07, 2022 @ 05:56 PM             Msg. 5 of 5
Thanks! That's what I found after reviewing the advanced example code.