A Steady-State Model of a Non-Walrasian Economy with Three Imperfect Markets