You can only withdraw the funds after T+1 days in case of Derivatives (FNO/CDS/MCX) and T+2 days in case of equity. This is because Exchanges in India follows the rolling settlement.
Please find an example.
In India settlement of Equities are done on a T+2 basis. Let’s say If you sell the shares on Tuesday, you will receive payment of the same after two days, and the same can be withdrawn that is on Thursday evening.
Settlement for Derivatives is T+1; let’s say if you close the position on Tuesday, you should be able to withdraw the proceeds on Wednesday evening.