Can you please tell me the ruling on investing in bitcoin (cryptocurrency) please. I invested some money, and made a return based on the bitcoin value. Is this okay?

S. Sistani is not allowing investments in such currencies on obligatory precaution basis, so you can refer to S. Hakeem in this issue.
Accordingly, there is no problem in the returns you made.