On the PURCHASE AGREEMENT that you signed after your Realtor helped you prepare,
There are conditions under which you are entitled to get your DEPOSIT bank; if your Realtor did that for you,
And there are LIMITATIONS on the DEPOSIT
And your REALTOR may have had you initial the box for ARBITRATION/MEDIATION which would provide a further relief for you.
If you used a Realtor.
Your Realtor should have talked to you about these, and in many cases, he can get your DEPOSIT back, anyway. Another reason for using a Realtor.
But, to answer your question, your Deposit should be the only thing you will lose: Your Realtor would know.
Good luck and may God bless you