The Unified Theory of Markets