The money stays in your bank account. However, it is in the blocked state. This means that you can only use that amount for the purpose of getting margin in order to trade. By blocking the amount, you are giving authorization to Clearing Corporation to debit your account as and when you trade, only up to the extent of UPI block(s) created.