API Support Forum
User Profile

Viewing User Profile for: OVasylenko564


About

Apr 06, 2017 12:03 PM

May 30, 2017 02:55 PM

May 30, 2017 02:55 PM



Post Statistics
OVasylenko564 has contributed to 2 posts out of 5677 total posts (0.04%) in 2785 days (0.00 posts per day).

20 most recent posts:

API Support » DataErrrorresponce with no vivid reason May 30, 2017 @ 02:55 PM (Total replies: 2)

I've found my problem and solution. My methods with Accounts class were implemented incorrectly. After correction everything works fine. Thanks for your reply!

API Support » DataErrrorresponce with no vivid reason May 29, 2017 @ 09:58 AM (Total replies: 2)

Hi there, i get a weard reaction on simple code. Can't get what's wrong. Any ideas?

public static void ConnectOEC()
{
string login = "DevUserName";
string password = "DevAPIPass";
OECClient oecapi = new OECClient();
oecapi.UUID = "9e61a8bc-0a31-4542-ad85-33ebab0e4e86";
oecapi.Connect("api.gainfutures.com", 9200, login, password, true);
Console.WriteLine("Connecting...");
oecapi.OnLoginComplete += new OnLoginCompleteEvent(oecapi_OnLoginComplete);
oecapi.OnLoginFailed += new OnLoginFailedEvent(oecapi_OnLoginFailed);

Console.WriteLine("OnLoginComplete: CompleteConnected={0}", oecapi.CompleteConnected);
Console.WriteLine("\tAccounts: {0}, orders: {1}, base contracts: {2}", oecapi.Accounts.Count, oecapi.Orders.Count, oecapi.BaseContracts.Count);
System.Windows.Forms.Application.Run();
}


The response is OnLoginComplete: CompleteConnected=False
OnLoginfailed: DattaError

Edited by OVasylenko564 on May 29, 2017 10:02 AM