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)