Announcements » New GF API coming in Q2 2019 Jul 02, 2020 @ 12:04 PM (Total replies: 8) | |||||
Thanks Chris. When can I connect to the prod server with the GF API? Will I use the same UUID and credentials as the OEC prod server? |
|||||
Announcements » New GF API coming in Q2 2019 Jul 02, 2020 @ 04:01 AM (Total replies: 8) | |||||
When can I connect to the GF API? Are the credentials the same as OEC API? UUID, prod server? I seem to have no problem connecting to the sim server but no luck connecting to the prod server. |
|||||
API Support » Getting Error if application has no internet access Jul 02, 2020 @ 03:41 AM (Total replies: 2) | |||||
I had the same problem and thought it was a bug in my code. I solved it using a simple check if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()) I get this error if I try to connect with no network: ----------------------------- System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=mscorlib StackTrace: at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value) at GF.Api.Impl.Connection.CurrentUserStore.Clear(ServerType serverType) at GF.Api.Impl.Connection.Machine.States.ClosedConnectionState.OnEntry() at GF.Api.Impl.Connection.Machine.ConnectionStateMachine.Transition(Func`1 getNewState) at GF.Api.Impl.Connection.Machine.ConnectionStateMachine.OnDisconnect(DisconnectionContext context) at GF.Api.Impl.Connection.Machine.ConnectionStateMachine.ConnectionDisconnected(Exception exception) at System.Action`1.Invoke(T obj) at GF.Api.Impl.Connection.ApiConnection`2.d__27.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at GF.Api.Impl.Connection.Machine.States.ConnectingConnectionState.d__21.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.c.b__6_1(Object state) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() ------------------------------------------------ |
|||||
API Support » Socket error on subscribe Mar 21, 2020 @ 07:47 AM (Total replies: 2) | |||||
I figured it out |
|||||
API Support » Socket error on subscribe Mar 20, 2020 @ 12:12 PM (Total replies: 2) | |||||
Even the Advanced example App provided by GAIN disconnects whenever I try to subscribe to a contract. This has to be a problem with the sim.gainfutures.com host surely? It worked only a few days ago and I haven't changed any of the code. |
|||||
API Support » Socket error on subscribe Mar 20, 2020 @ 11:19 AM (Total replies: 2) | |||||
My app now disconnects with a socket error whenever I try to subscribe to a contract. This never happened last week. |
|||||
API Support » Auto reconnect? Oct 13, 2019 @ 03:11 AM (Total replies: 3) | |||||
Thanks for the reply Chris. Does the new API support REMOTING? |
|||||
API Support » Auto reconnect? Sep 22, 2019 @ 07:49 AM (Total replies: 3) | |||||
Does the new API support auto-reconnect like the previous version? |