I had a hip-replacement 9yrs ago so have been where you are, when pain is disturbing your sleep and affecting your life significantly then its time to do something. The problem is doctors usually work their way through a whole list of 'fixes' before they recommend surgery, have you actually seen your doctor about your hip and has he prescribed treatments, such as pain relief, physio, anti-inflammatories, injections?
Your GP will probably want you to try these if you haven't already before he refers you. So see your GP and explain how its affecting you so. I was at the stage where I couldn't do my job because of the pain when I was referred so it will also depend on how much you are prepared to put up with..
Its no joke being in that kind of pain I hope you get a sympathetic reponse from your doctor.