How do you handle asynchronous nature of IB API?

Discussion in 'Automated Trading' started by Chronos.Phenomena, Oct 5, 2010.

  1. Heech,

    What languages ninja api supports?
     
    #21     Oct 7, 2010
  2. MAESTRO

    MAESTRO

    There are two types of connections that IB supports: A standard FIX and their API. The API (especially the activeX based one) has a lot of problems and will never provide you with reliable info about your open orders and positions. There are many flaws in it. However the FIX protocol based connection has a direct channel to their back office providing you with all the necessary fields according to the FIX specs. If you are not familiar with FIX you should GOOGLE it.
     
    #22     Oct 7, 2010
  3. heech

    heech

    Well, it's .NET, so technically anything that .NET supports. (Which is just about anything, really.)

    In practice, the out of the box samples are C#... and that's what I use.
     
    #23     Oct 7, 2010
  4. Thanks Maestro...

    I know about FIX...never used it thou... but it's still not clear to me why it is superior... a simple comparison from the one with experience would be great help... thanks
     
    #24     Oct 7, 2010
  5. is it faster? more reliable? on the higher/lower level than native API?
    easier to work with?

    any other experiences?
     
    #25     Oct 7, 2010
  6. MAESTRO

    MAESTRO

    It is synchronous and stable
     
    #26     Oct 8, 2010
  7. FIX is just a protocol. How can it be stable or unstable? The implementation defines that.

    I would also appreciate it if you could explain to me why you think it is synchronous.

    Thanks
     
    #27     Oct 8, 2010
  8. Maestro,

    You puzzled me big time! Is it really synchronous ? What do you mean by this
     
    #28     Oct 8, 2010
  9. As ScoobyStoo already mentioned FIX is ‚only‘ a protocol definition – nothing less, but also nothing more. It is not dedicated to a programming-language, not to a threading model and also not to synchronous or a synchronous. It is just a protocol. To get more information on FIX have a look at this page: http://www.fixprotocol.org/
     
    #29     Oct 8, 2010
  10. In looking at the FIX implementation, it appears that trading was never it's primary consideration. In other words, it was made to be so abstract as to be able to handle trading, but I think a much better protocol that was trading-specific could have been developed.
    IOW: TIP = Trading Information Protocol.
    Less abstract, more specific for orders, fills, cancellations, PnL, etc., etc.
    Am I wrong on this line of thinking ?
     
    #30     Oct 8, 2010