Monstrous generic market function with nice API