Institutional architectures and behavioral ecologies in the dynamics of financial markets