Is there any medicine that can give me happy hormones and does not need a doctor's prescription?
Things are becoming more depressing every day and I can't afford for professionals and don't want to jump to the last resort or drugs. Is there a medicine that can make me happy if I take it in proper doses and does not require a doctor's prescription?
Capsaicin-heavy foods will make your body produce adrenaline and endorphins.
Caffeine is a drug but can give you a long hit of dopamine — but overdosing will make anxiety worse, and can fuck with your sleep cycle. It's also rapidly addictive and the withdrawal symptoms include malaise and depressive feelings.
A stable sleep cycle is A#1 for happiness, though. It won't make you happy on its own but screwing it up will make you unhappy on its own, so it's the foundation to build everything else on.
What the above commenter said is generally good advice, but I would add on limiting your social media intake. Finding an online community to interact with (with voice or video chat kinds of things involved) is a better use of online time. For the coding, you could try moving that to the morning, and socialize in the afternoon/evening, and that will help you get on a more normalized schedule. If your leisure time is spent mostly with other people, it's a lot easier to sign off and go to bed when everyone else does as well.
Edit: Also throw in a multivitamin and 2000-5000IU of Vitamin D3 because nutritional deficiencies can cause psych problems as well as exacerbate or prolong said psych problems.