Genesis API Login

Discussion in 'Automated Trading' started by nbraid, Aug 20, 2010.

  1. nbraid



    I am trying to write a C++ program to trade with Genesis, but I can't successfully log on. The Login() function is working correctly, but IsLoggedIn() continually returns "false" I am trying to use OnExecConnected, OnExecLoggedIn, etc. etc. to determine where the login process is failing, but I'm not sure if I'm using them right. I currently have functions such as
    void MySession::ShowExecConnected(){
    		cout <<"OnExecConnected:"<<GTSession::OnExecConnected()<<endl;}
    to show what values the respective functions are returning. However I am noticing that they all return 0, saying they are successful, even if I print the values without even attempting to login. This makes me think that I am not using the functions correctly, or am interpreting their return values incorrectly. I really am quite desperate. Does anyone have any suggestions? Or anything I might try to get the login to work?
  2. nbraid


    Sorry, code got chopped off. should continue debug.OnExecConnected(); after the last <<

    Again, would appreciate any help.
  3. nbraid


    Sorry, the code was chopped off. Should read
    after the last <<.
  4. SAFIN



    The API will only connect when Laser is not currently connected.

    If you have Laser open, you should close it. Also there are several demos which one are you using? Im using c#