Revert "removed setMarket"

This reverts commit 831de87b89b071e3b1da7a4927425a0379f79056.