IB native python API for dummies

Discussion in 'Automated Trading' started by globalarbtrader, Mar 24, 2017.

  1. Cyrix

    Cyrix

    Thanks for your guide.
    I tried to run the sample code in your first post, but got these messages. Why?

    [​IMG]
     
    Last edited: Feb 9, 2018
    #11     Feb 9, 2018
    epsimatic88 likes this.
  2. d08

    d08

    Connection timeout meaning your TWS/Gateway couldn't be connected to.
    Make sure your port/IP are correct and your TWS/Gateway accepts connections. Config -> API -> Settings -> Enable ActiveX Socket Clients and Socket port.
     
    #12     Feb 9, 2018
    epsimatic88 likes this.
  3. The way how I read this error report: you did not provide correct parameters to connect to TWS/Gateway. Are you sure you defined parameters ipaddress, portid and clientid?
     
    #13     Feb 9, 2018
  4. Cyrix

    Cyrix

    Ah yes, I forgot to change the port in the sample code and enable API in this new installation of TWS.
    But after I did them, I got a new set of messages saying there was an exception:
    [​IMG]
     
    #14     Feb 9, 2018
  5. I am not familiar with Python and not familiar with this particular code. Apparently something goes wrong when you try to disconnect from IB: self.socket.close()
    The other messages (2104, 2106) are benign and you can ignore them. You did get the time from TWS: 1518160986.
     
    #15     Feb 9, 2018
  6. d08

    d08

    The TWS API has problems when disconnecting, depending on the version.
     
    #16     Feb 14, 2018
    epsimatic88 and lawrence-lugar like this.
  7. Cyrix

    Cyrix

    Three is a bug with your blog pages when opened on Android browers.
    It keeps automatically jumping to the next article after a few seconds on a page.

    Tried two browsers and same thing happened.
     
    #17     Feb 22, 2018
  8. Strange. Doesn't happen for me with chrome on my Samsung android phone. The site is hosted by google, so hopefully they are aware of the problem and can fix it.

    GAT
     
    #18     Feb 22, 2018