for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Fabian Hanisch
* @since: 2017-08-28
* @version 1.0.0
*/
namespace HanischIt\KrakenApi\Model\OpenPositions;
* Class OpenPositionModel
* @package HanischIt\KrakenApi\Model\OpenPositions
class OpenPositionModel
{
* @var string
private $positiontxid;
private $ordertxid;
private $pair;
private $time;
private $type;
private $orderType;
* @var float
private $cost;
private $fee;
private $vol;
private $volClosed;
private $margin;
private $value;
private $net;
private $misc;
private $oflags;
private $visqc;
* OpenPositionModel constructor.
* @param string $positiontxid
* @param string $ordertxid
* @param string $pair
* @param string $time
* @param string $type
* @param string $orderType
* @param float $cost
* @param float $fee
* @param float $vol
* @param float $volClosed
* @param float $margin
* @param float $value
* @param float $net
* @param string $misc
* @param string $oflags
* @param string $visqc
public function __construct(
$positiontxid,
$ordertxid,
$pair,
$time,
$type,
$orderType,
$cost,
$fee,
$vol,
$volClosed,
$margin,
$value,
$net,
$misc,
$oflags,
$visqc
) {
$this->ordertxid = $ordertxid;
$this->pair = $pair;
$this->time = $time;
$this->type = $type;
$this->orderType = $orderType;
$this->cost = $cost;
$this->fee = $fee;
$this->vol = $vol;
$this->volClosed = $volClosed;
$this->margin = $margin;
$this->value = $value;
$this->net = $net;
$this->misc = $misc;
$this->oflags = $oflags;
$this->visqc = $visqc;
$this->positiontxid = $positiontxid;
}
* @return string
public function getOrdertxid()
return $this->ordertxid;
public function getPair()
return $this->pair;
public function getTime()
return $this->time;
public function getType()
return $this->type;
public function getOrderType()
return $this->orderType;
* @return float
public function getCost()
return $this->cost;
public function getFee()
return $this->fee;
public function getVol()
return $this->vol;
public function getVolClosed()
return $this->volClosed;
public function getMargin()
return $this->margin;
public function getValue()
return $this->value;
public function getNet()
return $this->net;
public function getMisc()
return $this->misc;
public function getOflags()
return $this->oflags;
public function getVisqc()
return $this->visqc;
public function getPositiontxid()
return $this->positiontxid;