You should contact an attorney in your area to review your rights under the protecting tenants act. Your question has a few open items, did the bank give you notice that they have taken title? When you say the realtor gave you until the end of the month, under what authority? Generally, the bank's can't come change the locks while someone is living in the property. Further, the attorney for the bank has to file a motion to have the court give them a writ of possession before they will force you to move.
This answer is provided without full consultation and is suggestive in nature and not to be considered legal advice without entering into a formal legal engagement with an attorney. Before you decide, ask any lawyer to send you free written information about their qualifications and experience. This answer is designed for general information only. The information presented at this site should not be construed to be formal legal advice nor the formation of a lawyer/client relationship.