Did the Middle Ages have a market economy?
No. The Middle Ages had a mixed economy rather than a free market.