Thanks @VenuMadhav . Now we’re talking.
Here are some further questions -
- So penalty or no penalty depends on whether or not the shortfall occurs at the time of taking snapshots. What are the timestamps at which these snapshots are taken?
- If my margins on margin page become less than or equal to zero, what happens? Luckily I manage my positions so that this doesn’t happen, but what if it does? There are 2 cases here - this is captured in a snapshot v/s it’s not.
- What is the point when Zerodha will go ahead and square off my positions? What is the logic for this written in your code [if it will be squared off automatically]?
- If the point (3) is reached, will you square off the whole position, or a part of it? Let’s say I have 900 qty of calendar spread, will / can you square off just 200 qty out of it [from both legs]?
- If I get an email like the OP posted, you wrote that even if the position is squared off it is being sent. How will I know whether my action [of squaring off partial quantity or of adding some funds] has successfully avoided any possibility of penalty? Can you apply some more brain on when to fire that email and when not, as it is just confusing the user more [hence, the OP posted it].
I already asked for a better info on margin as the current info on that page is less than pathetic, hope the team is working on it - NSE Circular on Short margin penalty refund - #230 by paekut