Actually, except for the steampunk aspects and the fact that most of the male characters are female, the historical details are for the most part real events, at least in the common route. Things change significantly depending on which arc you go onto (anything other than the Shinsengumi members and the prostitute's servant is outside the 'true history', and the ending is changed up a bit to let certain characters survive).