/**
  * @param int   $userId   Unique identifier of the user in TMS.
  * @param int   $optionId Unique identifier of a selected regular option in TMS.
  * @param float $volume   Current trade volume of user.
  * @param int   $isCall   A flag indicating if user has chosen to Call (1) or not (Put (0)).
  */
 public function __construct($userId, $optionId, $volume, $isCall)
 {
     parent::__construct([]);
     $this->userId = $userId;
     $this->optionId = $optionId;
     $this->volume = floatval($volume);
     $this->isCall = intval((bool) $isCall);
 }
 /**
  * @param int  $userId   Unique identifier of the user in TMS.
  * @param bool $onlyOpen If set to true returns information only about open trades
  */
 public function __construct($userId, $onlyOpen = false)
 {
     parent::__construct([]);
     $this->userId = $userId;
     $this->onlyOpen = intval(boolval($onlyOpen));
 }