Genesis' GTAPIB has bugs -- Does anyone actually use this thing?

Discussion in 'Automated Trading' started by fatrat, Nov 20, 2006.

  1. fatrat

    fatrat

    I'm on standby waiting for tech support to respond so I'm posting here. The reason I'm posting here, of course, is because trading day time is limited for software development since they have no test servers. I want other developers to save time and possibly look at this later for reference. (Or, you know, they can assist me. :)

    That being said, I think there is a bug in their library. Their protocol document online says that the client library is supposed to send:

    0x0002, 0x0008, 0x0111, 0x0101, 0x0000, 0x0000

    These are all 16-bit quantities transmitted in little-endian order. However, when you actually inspect the wire, the GTAPIB library is actually sending:

    0x0002, 0x0008, 0x0110, 0x0101, 0x0000, 0x0000

    So either their documentation is broken, or their library is broken. The server then eventually disconnects me. Its second response calls the 'connect event' callback to be called and that's it.

    Are there more issues with the library, and am I wasting my time? I get the feeling GTAPIB is not used very often and is very neglected. Is someone else out there using one of their other APIs with greater success?

    Fortunately, I only intend to use this API for reading data and not placing orders. I'm wondering, however, if there are bugs in their order placement code and whether or not that even works as advertised.
     
  2. jonnyman

    jonnyman

    No one else seems to be responding so I'll come out of the woodwork. A small group of us have developed a system using their API that has been running live for the past few months.

    I can't solve your problem, but at least I can let you know that it does work.
     
  3. fatrat

    fatrat

    Which API? GTAPIB, or their C++ library?

    I'm getting an OnConnect() event twice in a row. The first one says things are ok, then I get a disconnect.
     
  4. fatrat

    fatrat

    Which API? GTAPIB, or their C++ library?

    I'm getting an OnConnect() event twice in a row. The first one says things are ok, then I get a disconnect.
     
  5. fatrat

    fatrat

    I should also mention that if I compile and run their sample, it also doesn't work.

    This is why I want to know if you're using their other API. They claim to have three libraries, and some are less full-featured than others.
     
  6. jonnyman

    jonnyman

    We started with GTAPIB but have since re-written it with the C++ library. Both worked for us.
     
  7. fatrat

    fatrat

    Looks like their C++ library works but their GTAPIB doesn't. What an oddity. At least I have something to work with now.
     
  8. jonnyman

    jonnyman

    Good luck.
     
  9. Reload

    Reload

    I dug this thread out just because now I'm suffering with the same problem, by using GTAPIB.

    any expert has any comments about it?

    look at the login log of my system pls:

    > 15:29:38 Initialized GTAPIB.... Successed !
    > 15:29:38 Created GTB session.... Successed !
    > 15:29:38 Set server addresses.....Successed !
    >
    > 15:29:42 Genisis Server Login....
    > 15:29:42 Connect_Executor @32769 is Connected
    > 15:29:42 Unknown Server @115 is Connected
    > 15:29:42 Unknown Server @115 is Connected
    > 15:29:42 Unknown Server @115 is Connected
    > 15:29:42 Unknown Server @115 is Connected
    > 15:29:42 Unknown Server @115 is Connected
    > 15:29:42 Unknown Server @115 is Connected
    > 15:29:42 Unknown Server @115 is Connected
    > 15:29:42 Unknown Server @115 is Connected
    > 15:29:42 Unknown Server @113 is Connected
    > 15:29:42 Unknown Server @114 is Disconnect
    > 15:29:42 Unknown Server @112 is Connected
    > 15:29:42 Unknown Server @105 is Connected
    > 15:29:42 Unknown Server @104 is Connected
    > 15:29:42 Unknown Server @103 is Connected
    > 15:29:42 Unknown Server @102 is Connected
    > 15:30:01 Connect_Executor @32769 is Disconnect

    :confused: :confused:
     
  10. Two things:
    1) what is the difference between the two libraries anyway ?
    IOW why use the GTAPIB in the first place ?

    2) has anyone gotten STOP orders to work inconjunction with placing bracket orders via their API ?
    Last I heard was that it doesn't work...it returns an error message.
     
    #10     Aug 4, 2008