Are you surprised by that? DON'T EXPECT any sleep while in Opiate W/D. Esp. strong ones just like Oxycodone.
Restlessness is a VERY COMMON side affect of Opiate W/D...esp. your legs, arms, etc.
If you want to counter act the symptoms you either have to relapse on opiates (which I don't recommend you doing) or substitute for another class of drugs such as Benzo's (which I don't recommend either).
You're just going to have to ride it out of you want to complete it, expect 1-2 weeks of physical W/D and a LONG time for the phsychological part of W/D...
Not trying to scare you at all, I'm telling you these things by experience.
Here are your choices-
1. Rehab (which I REALLY recommend)
2. Methadone Therapy (MMT) (I don't recommend Methadone, but I can't say that cuz I'm Methadone)
3. Benzos (to help you sleep and help with cravings) (which I really don't recommend, Benzo W/D is nastier than opiate W/D itself)
4. Ride it out with help of OTC's (I really recommend this, get some Loperamide for diareah, Nyquil for insomnia, Benadryl for nausea, etc.)