Financial Markets with Memory I: Dynamic Models