Stock markets mostly rise on US optimism