How can calculate available margin & available cash ? I am using below formula:
Available Cash : availablecash
Available Margin : net + collateral + m2munrealized + m2mrealized − utiliseddebits − utilisedpayout
is it correct or not?
if not, please share the correct formula. I am fetching data from api’s.
To calculate available margin, you simply add your cash balance to the margin available from your holdings (based on their market value), then subtract the currently “used margin” from existing open positions, resulting in the total amount you can use for new trades; available cash refers to the actual cash balance in your account that can be withdrawn without utilising margin.
Formula:
Available Margin = Cash Balance + Margin from Shares - Used Margin