I sold an option position using kite and 2 days later, I squared off the position earning some profit.
However, the next day my ledger entry showed a debit balance. Can someone explain how this whole thing works? Shouldn’t there be a credit equal to the profit I earned?