I'd write 'a history'. People used to put 'an' before some words starting with an 'h' because they were pronouned like that. So, 'an hotel' because the word was sometimes said like the French, like 'otel', so it needs the 'n' to prevent the vowels clashing.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.