API Support Forum
OEC API > API Support > Connection problem
Author Topic: Connection problem
(2 messages, Page 1 of 1)
Moderators: VPfau
Posts: 4
Joined: Sep 15, 2021

Posted: Sep 17, 2021 @ 02:37 PM             Msg. 1 of 2
Hi, trying to connect to the servers with the code from the documentaion :https://gainfutures.com/GFAPI/
gfClient.Threading.Invoke(() =>
new GF.Api.Connection.ConnectionContextBuilder()


except from the username and password there's anything else that need to be changed? i tried different ports as well but keep getting connection failed.

Thank you!
Posts: 154

Posted: Oct 12, 2021 @ 07:52 AM             Msg. 2 of 2

Examples in documentation cannot works as complete application. They only demonstrate different aspects of discussed topics.

To see examples of API clients you can visit this page https://bitbucket.org/GainFuturesDev/?privacy=public

Thank you
Vitaliy Pfau