for shorting nifty option, you require the same margin as you would require to short nifty. The same applies to stocks too. There will be little variation in the margin amount depending on the ITM, OTM, etc. Broker's site usually will have a margin calc.