Cash Collateral and M2M

Do check this topic, queries are similar to yours: MTM Margin calculations in options spreads