mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-20 07:14:20 +01:00
Remove callback by cid
This commit is contained in:
@@ -176,8 +176,7 @@ class OrderManager:
|
||||
@param onClose: function called when the bitfinex websocket receives signal that the order
|
||||
was closed due to being filled or cancelled
|
||||
"""
|
||||
order = self.open_orders[orderId]
|
||||
self._create_callback(order.cId, onConfirm=onConfirm, onClose=onClose)
|
||||
self._create_callback(orderId, onConfirm=onConfirm, onClose=onClose)
|
||||
payload = {"id": orderId}
|
||||
if price is not None:
|
||||
payload['price'] = str(price)
|
||||
|
||||
Reference in New Issue
Block a user