IBpy reqExecutions

Discussion in 'App Development' started by InterceptK, Apr 16, 2015.

  1. Good Morning, Afternoon, Evening depending on where you are reading this post,

    I have some questions on IBpy reqExecutions() and Execdetails. I already had the chance to have a chat with one of the most trusted members in this communitiy, but I thought it would be nice having a post on the topic for whoever will have my same doubts.

    1) On the IB API reference guide, the reqExecutions() needs just the executionFilter(), although if I just input a filter, I get the following error:
    TypeError: reqExecutions() takes exactly 3 arguments (2 given).
    Why is it so?

    2) I have found that with the following syntax working:
    reqExecutions(0,filter)
    With the filter having at least two parameters (e.g. m_sec_type and m_symbol)
    Why does this syntax work?

    3) Even having reqExecutions working, I am actually not able to capture the IB replies.
    I don't receive any message back except from execDetailsEnd.

    Could you please help me understanding how reqExecutions() works and how to handle the replies. (and don't get any msg back at all)

    Thanks all for the help
     
  2. Butterfly

    Butterfly

    see my PM,

    I forgot to add that your sleep function might be too low, increase it to 20, that's what I did, and I probably did it at the time for some good reasons :)
     
  3. 2rosy

    2rosy

    here's an example you get orderstatus and executions. It works with ibpy-0.7.6_9.51-py2.7

    I assume your problem is that you need to call reqExecutions() from an instance and executions comeback through the execdetails() method.

    http://bit.ly/1fPx3lD
     
  4. Thanks both for the contributes.
    I don't know why I was not able to handle server's responses with register (only in the case of execDetails). I used registerAll and your contributes and it worked!