2
$\begingroup$

Would like to know how to request all securities in an asset class using IBpy, the python wrapper for the Interactive Brokers API.

For example getting all currency pairs in the class forex ('CASH'), or all stocks in the class equity ('STK').

Current efforts: Searched QF stack, stackoverflow and IBPy's google discussion groups. Ongoing efforts: Trawling through IBPy's "ibConection" class.

Thanks!

$\endgroup$

1 Answer 1

1
$\begingroup$

You can't via the API. If you need to search use the contract lookup database

https://www.interactivebrokers.com/en/?f=%2Fen%2Fgeneral%2Fcontact%2FtipsContractsDatabaseSearch.php%3Fib_entity%3Dllc

$\endgroup$
1
  • $\begingroup$ Thanks for the reply pyCthon. I've taken a look at it and it does indeed let me check what I require. Would you recommend me automating this process? Or just manually update the members of an asset class. Appreciate any input/advice. $\endgroup$ Jun 16, 2016 at 7:21

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.