$i=0; foreach ($decoded_t as $a) { if((($i>0) && ($ttype != $a['trade_type'])) || (($i>0) &&(($curtime - $a['date']) > (60*15))))
gem install bundlercd rubybotbundle installruby bot.rb