removed tradepile and placed in tradeor.php