Agent-based financial markets and New Keynesian macroeconomics: a synthesis · Study