|
...
|
...
|
@@ -682,6 +682,10 @@ class CmBroker |
|
|
|
$symbolInfo = $this->symbolInfos[$symbol];
|
|
|
|
$lot = $this->exBroker->getPos($symbolOri, $posSide);
|
|
|
|
$qty = round($lot * $symbolInfo->ctVal, $symbolInfo->qtyPrec);
|
|
|
|
if ($this->posMode != self::MODE_ONE_SIDE) {
|
|
|
|
$qty = abs($qty);
|
|
|
|
$lot = abs($lot);
|
|
|
|
}
|
|
|
|
return $qty;
|
|
|
|
}
|
|
|
|
return -1;
|
...
|
...
|
|