Sex after a miscarriage.

So I just had a miscarriage I was 11 weeks and my baby's heart stopped at 8 weeks.. Man was it awful I cramped horribly, bled and passed blood clots all night and in the morning the placenta was passed. I stopped bleeding so much by the next day it was over no more bleeding. 
I just want to know when I can have sex again???
 TMI- I love sex and it's not that I'm trying to conceive so fast it's just I miss sex. 
I have a doctors appointment Wednesday but I feel like I can't wait till then.