Ruling on mixing halal money with forbidden money

I was trading on crypto market
Suppose that my capital was 1000 dollars, for example
I did research about leveraged trading and it was showing me that it was halal .
I started teading with my capital ، Then I lost almost half of it, leaving me $ 500 .
Then I won, and my balance became $ 1,400
Once again, my balance is approximately $ 1,000 (now)
Recently, it became clear to me that trading with leverage is forbidden .
Therefore, should I keep $ 1000 as my capital? Or that my money has become forbidden and must be disposed of ?

Wasalam

May Allah bless you.
Keep the $1000 and do tawbah.

And Allah knows best!