开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Closing positions


 

You don't have to adjust quantities manually.

As IBKR support already told you, you can request updates for all relevant information about the account, the positions, and open orders so that your client application can calculate quantities for orders as you see fit. You would probably monitor the value of a position as it increases or decreases, the available margin in the account, the required margin for a given order, the net liquidation value for the account and others.

Take a look at:
  • IBApi.EClient.reqPositions -->
  • IBApi.EClient.reqAccountSummary and IBApi.EClient.reqAccountUpdates -->
  • IBApi.EClient.reqOpenOrders -->
闯ü谤驳别苍
?
On Fri, Mar 21, 2025 at 03:17 PM, donye wrote:

I mean that if I enter a trade for 1 lot and that trade goes so well that it doubles the value of the account. Like if I enter a long position and the value of the eur/usd skyrockets. "Doubling" the account is purely for a hypothetical. It looks like for now, I'll have to manually change the order quantity value as I see fit.

Join [email protected] to automatically receive all group messages.