Hi I am building a dashboard for my personal usage and I want to get the margin used by my open position, as of now the kite.margins() call returns the overall margin available and utilized by all of my positions together, I want to find the margin utilised by a particular open position.
Let's say I have Nifty long, bank nifty short and then reliance long, overall they might use around 3L margin but I want to identify how much margin is used by which trade like
Nifty trade is using up 30% margin Banknifty is 40% and reliance another 30%
order_margins helps fetch margins for the particular order, considering the existing positions and open orders.
Margins are charged on a portfolio basis; they’re not the sum total of margins on individual positions, so it is not possible to break this margin and see it position-wise.
Margins are charged on a portfolio basis; they’re not the sum total of margins on individual positions, so it is not possible to break this margin and see it position-wise.