/**
  *
  * Enter description here ...
  * @param  $param_obj
  *
  */
 public function getQuote($param_obj)
 {
     self::validateParamObj($param_obj, false);
     //SymboleList is REST part of URL, add it as URL part and remove it from params object.
     if (is_array($param_obj->symbolList)) {
         //Remove empty values and join them using comma :
         $symbolList = implode(',', array_filter($param_obj->symbolList));
     } else {
         $symbolList = $param_obj->symbolList;
     }
     $param_obj->__set('symbolList', null);
     $resourceURL = RequestParamsMain::buildFullURL(URL_GETQUOTE, $symbolList, $param_obj);
     return $this->getMarketResponse($resourceURL);
 }
Beispiel #2
0
 /**
  *
  * @method GetTransactionHistory
  * @param string $RESTParams - can be ActivityId or an URL with ActivityId.
  */
 public function GetTransactionDetails($ac_id, $RESTParams)
 {
     if (is_numeric($RESTParams)) {
         $resourceUrl = URL_TRANSACTION_HISTORY . '/' . $ac_id . '/transactions/' . $RESTParams;
     } else {
         $resourceUrl = $RESTParams;
     }
     $resourceUrl = RequestParamsMain::buildFullURL($resourceUrl);
     return $this->getAccountsResponse($resourceUrl);
 }
 public function cancelOrder($request_object)
 {
     $requestXml = ETWSObj2Request::buildRequestData($request_object, 'cancelOrder');
     $resourceUrl = RequestParamsMain::buildFullURL(URL_CANCEL_ORDER);
     return $this->getOrderResponse($resourceUrl, 'POST', $requestXml);
 }