2
$\begingroup$

I'm trying to use the reqPositions() method but it doesn't have an event handler associated with it that it references in the API.

$\endgroup$

1 Answer 1

1
$\begingroup$

Interactive Brokers hosted a webinar on Nov. 10 2016 about Implement Algo Trading coded in Python using Interactive Brokers API. The presenter gave a good explanation on the applicability of IBridgePy, which is an open-sourced software used to connect to Interactive Brokers C++ API for execution of python codes in live markets.The webinar is posted at youtube. https://www.youtube.com/watch?v=hogXB07OJ_I. You don't need to call reqPositions() in IBridgePy. The positions are saved at context.portofolio.positions in pandas dataFrame. It is pretty easy to use them in other parts of the code.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.