Update bybit_gateway.py
This commit is contained in:
parent
7b6d8f7982
commit
eab5ba8d5b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user