示例#1
0
 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);
     }
 }
示例#2
0
<?php

Dump::d($data->description);