rewrite market trade thread