http://undocumentedmatlab.com/files/IB-Matlab_User_Guide.pdf

Chapter 4.2 should mean it's possible with IB

i think its reqPositions() in java API