Shares post gains thanks to banking, securities stocks