Update bybit_gateway.py

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

View File

@ -845,7 +845,7 @@ class BybitWebsocketApi(WebsocketClient):
exchange=Exchange.BYBIT, exchange=Exchange.BYBIT,
direction=Direction.NET, direction=Direction.NET,
volume=volume, volume=volume,
price=d["entry_price"], price=float(d["entry_price"]),
gateway_name=self.gateway_name gateway_name=self.gateway_name
) )
self.gateway.on_position(position) self.gateway.on_position(position)