[Fix] position query pnl and price data switch

This commit is contained in:
vn.py 2019-08-01 14:47:14 +08:00
parent 0693775002
commit 397c10e219

View File

@ -347,8 +347,8 @@ class FutuGateway(BaseGateway):
direction=Direction.LONG,
volume=row["qty"],
frozen=(float(row["qty"]) - float(row["can_sell_qty"])),
price=float(row["pl_val"]),
pnl=float(row["cost_price"]),
price=float(row["cost_price"]),
pnl=float(row["pl_val"]),
gateway_name=self.gateway_name,
)