Interactive Brokers Java API
<p>If I want to use the Interactive Brokers Java API to check current positions, and then rebalance those positions, by selling or buying shares of each position, do I just need to use the EWrapper.position() method to get the current positions in the account? Or do I use the EClientSocket.reqPositions() method to get it?</p>

<p>It seems that Ewrapper is for receiving information from TWS to the client, while EClientSocket is for sending requests to TWS. In this case, do I use both position() and reqPosition() methods?</p>

<p>In addition, when I am running the new Java class, do I need to put it in the same folder as the ib.client in order to inherit the other classes and methods?</p>