fix bybitgateway price typre error

This commit is contained in:
xldistance 2019-10-24 22:48:26 +08:00 committed by GitHub
parent 9e92d989d7
commit 7b6d8f7982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -787,7 +787,7 @@ class BybitWebsocketApi(WebsocketClient):
orderid=order_id,
tradeid=d["exec_id"],
direction=DIRECTION_BYBIT2VT[d["side"]],
price=d["price"],
price=float(d["price"]),
volume=d["exec_qty"],
time=d["trade_time"],
gateway_name=self.gateway_name,
@ -822,7 +822,7 @@ class BybitWebsocketApi(WebsocketClient):
orderid=local_orderid,
type=ORDER_TYPE_BYBIT2VT[d["order_type"]],
direction=DIRECTION_BYBIT2VT[d["side"]],
price=d["price"],
price=float(d["price"]),
volume=d["qty"],
traded=d["cum_exec_qty"],
status=STATUS_BYBIT2VT[d["order_status"]],