From eab5ba8d5be69dd5b590b343cf2ee4e18a48cda0 Mon Sep 17 00:00:00 2001 From: xldistance <819873074@qq.com> Date: Fri, 25 Oct 2019 08:24:44 +0800 Subject: [PATCH] Update bybit_gateway.py --- vnpy/gateway/bybit/bybit_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/gateway/bybit/bybit_gateway.py b/vnpy/gateway/bybit/bybit_gateway.py index 8a50f97b..f15d0b6e 100644 --- a/vnpy/gateway/bybit/bybit_gateway.py +++ b/vnpy/gateway/bybit/bybit_gateway.py @@ -845,7 +845,7 @@ class BybitWebsocketApi(WebsocketClient): exchange=Exchange.BYBIT, direction=Direction.NET, volume=volume, - price=d["entry_price"], + price=float(d["entry_price"]), gateway_name=self.gateway_name ) self.gateway.on_position(position)