diff --git a/src/Api/Trader.php b/src/Api/Trader.php index f3ec5d5..05ee05b 100644 --- a/src/Api/Trader.php +++ b/src/Api/Trader.php @@ -74,7 +74,7 @@ function buy(array $data,bool $show=true){ '_trader_result'=>$result ]); }catch (\Exception $e){ - return $this->error($e->getMessage()); + return $this->error(json_encode(array_merge($data,['_msg'=>$e->getMessage()]))); } } @@ -142,7 +142,7 @@ function sell(array $data,bool $show=true){ '_trader_result'=>$result ]); }catch (\Exception $e){ - return $this->error($e->getMessage()); + return $this->error(json_encode(array_merge($data,['_msg'=>$e->getMessage()]))); } } @@ -202,7 +202,7 @@ function cancel(array $data,bool $show=true){ '_trader_result'=>$result ]); }catch (\Exception $e){ - return $this->error($e->getMessage()); + return $this->error(json_encode(array_merge($data,['_msg'=>$e->getMessage()]))); } }