Mid-cap and small-cap indices have posted gains of about 20 per cent and 24 per cent, respectively, this financial year.