Hi, When my account goes into negative Available margin (usually happens on Expiry day), and I try to exit some short options positions to free up margin using the API, the order is rejected with message saying "insufficient funds". This puts me in a catch-22. To make sufficient funds I have to exit a position and to exit a position I have insufficient funds! If I use the Zerodha Kite site though the exact same transaction is allowed and margins get freed up. However because the transaction happens outside my program using API, the program data goes into inconsistent state and starts behaving erratically. How can I execute exit trade transactions using API to free up margin when the account balance Available margin has already gone into negative?