作者 karlet

feat:pos bn转换修复

... ... @@ -70,9 +70,9 @@ class Pos
$posSide = strtoupper($pos['positionSide']);
$qty = abs($pos['positionAmt']);
$lot = round($qty / $symbolInfo->ctVal, $symbolInfo->qtyPrec);
$avgPrice = $pos['entryPrice'];
$pnl = $pos['unRealizedProfit'];
$lever = 0;
$avgPrice = -1;
$pnl = $pos['unrealizedProfit'];
$lever = -1;
$margin = $pos['initialMargin'];
return new Pos($symbol, $posSide, $qty, $lot, $avgPrice, $pnl, $lever, $margin);
}
... ...