Seller can cancel the market trade after bid/buy by refunding the seller
Escrow from buyer is returned back to the buyer
Escrow from seller is returned back to the seller (optional: penalties can be imposed)
End transaction state...
Get recent trades on market, each trade is included only once. Trades are sorted in reverse creation order.