Hi,
I need to find the "Entry / Maintenance Margin" available for an account to check that there is enough margin in that account to open a position of the size I request.
I'm using IO2GAccountTableRow.getUsableMargin() since it's defined in the documentation as: "Gets the amount of funds available to open new positions or to absorb losses of the existing positions."
I'm expecting it to be equity - used_maintenance_margin (which is what I want).
It seems however that what is returned is equity - used_liquidation_margin, liquidation margin being typically 50% less than maintenance margin.
Am I correct?
If I were to use getEquity() - getUsedMargin(), would I get what I want?
Or should I use getUsedMargin3() (defined as "Gets the amount of funds used to maintain all open positions on the account with the three-level margin policy.")
Thanks for the clarification.