Writing a GUI to TWS in C# part 3

Discussion in 'Trading' started by Fredrik99, May 12, 2006.

  1. Noooo, I am sorry. You are right. 127, not 172. It works !
    Thank you. It is very much Monday morning over here :)
    Thanks and thanks again!!

    Fredrik
     
    #11     May 15, 2006
  2. lastick

    lastick

    127, not 172.
    Ipconfig don't show you the local host.
    Edit the file \windows\system32\drivers\etc\hosts.
    look for or add "127.0.0.1 localhost" and rboot.
     
    #12     May 15, 2006
  3. lastick

    lastick

    Ok, good...
     
    #13     May 15, 2006
  4. Thanks!
     
    #14     May 15, 2006
  5. Sorry I hadn't subscribed to this thread...doh! So I missed your questions....

    Also try joining the twsapi yahoo group. There's quite a bit of code posted there in Java (which in many cases easily translates to c#) which is useful.

    SSB
     
    #15     May 15, 2006
  6. Oh,no need to apologize. I think I´ve never seen such a high quota of useful answers in any other forum on the web. It is really great here!
     
    #16     May 15, 2006
  7. By the way, is there any time stamping in the TWS?
     
    #17     May 15, 2006
  8. TWS will fire an event with the server time upon connection. You need to store the offset from your own PC's time (or set your PC to match it) -- TWS won't send times with events.

    SSB
     
    #18     May 15, 2006
  9. OK, no timestamps...
    actually I am after some way to detect that the TWS is down.
    If it is down it should be restarted.
    I have implemented a disconnection method, but I don´t see the TWS calling it. If my C# app is running, the TWS will freeze if I close it

    Fredrik
     
    #19     May 15, 2006