If you want to see how to implement such a system with players placing both buy and sell orders, just look at EVE Online, which has always had the best developed player economy of any MMO (only the original Star Wars MMO and FFXI at its height even got in sight of it, as far as I know).