public function cancel() { $bot = Bot::get_Instance(); $res = $bot->api->CancelOrder($this); if ($res['success'] == 1) { $bot->setBalance($res['return']['funds']['rur']); $bot->setBalanceBtc($res['return']['funds']['btc']); $this->status = 'cancel'; $this->close_dtm = $bot->current_exchange->dtm; $this->save(); Dump::d($this->errors); } }
<?php Dump::d($data->description);