WUXIA means "martial heroes", usually about a chivalrous martial artist vigilante on a mission to fight for righteousness and defeat injustice and oppressors.
XIANXIA is a fantasy genre. Usually about a protagonists' attempt to cultivate to immortality ... based in elements of fantasy, complete with magic, demons, ghosts and immortals.
- Ten Miles of Peach Blossoms aka Eternal Love, and the likes of Novoland, etc... are NOT Wuxia, they are Xianxia genre, fantasy ... I think this genre usually has HEA (I wouldn't know.)
- Legend of the Condor Heroes , one of most famous Wuxia stories (at least 12 adaptations), forgot if HEA or not in ending. ..... I saw the 2008 drama and a few movie versions.
- The Heavenly Sword and Dragon Saber, last part of the Condor Heroes Trilogy, I believe it had HEA. I saw the 2002 version, there will be a 2018 version.
- Prince of Lan Ling is among the best Wuxia/historicals .... Based on a real historic general, who had a very pretty face, so he wore a mask to scare his enemies .... Not exactly HEA.
Historicals:
- Not sure about some shows listed by others above, which I have not watched, but the Scarlet Heart / Bu Bu Jing Xin (aka BBJX) ending is not exactly a HEA ..... ..... ..... I am not sure about the ending of the other adaptation of the story, Palace: the Lockheart Jade , which is a lighthearted fare , not as serious or as good ..... ..... BBJX is an Excellently written Historical about a girl surviving/navigating palace intrigues and friendships, w/ most figures and events based on real history, truly excellent! among the best!
So for historicals w/ HEA:
- Sound of the Desert --- Based on real general, Excellent and most Wonderful Romance!!! ... strong love triangle, HEA for one of the guys, at least ;)
- Battle of Changsha --- Excellent writing and family war drama .... Low on romance, much tragedy in war, but the couple still get their HEA.
Period dramas:
- Cuo Dian Yuan Yang -- probably one of better stories, good Romance w/ lots of skinship, and HEA.
If you don't insist on HEA, there are many excellent Historical, Wuxia, Period and Modern dramas that are excellent, such as : Legend of Concubine Zhen Huan , Nirvana in Fire, etc... ...