mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Add lines
This commit is contained in:
@@ -30,12 +30,15 @@ async def on_open(event):
|
|||||||
await bfx.wss.inputs.order_new(order)
|
await bfx.wss.inputs.order_new(order)
|
||||||
|
|
||||||
print(f"Order sent")
|
print(f"Order sent")
|
||||||
|
|
||||||
@bfx.wss.on("notification")
|
@bfx.wss.on("notification")
|
||||||
async def on_notification(notification):
|
async def on_notification(notification):
|
||||||
print(f"Notification {notification}")
|
print(f"Notification {notification}")
|
||||||
|
|
||||||
@bfx.wss.on("order_new")
|
@bfx.wss.on("order_new")
|
||||||
async def on_order_new(order_new: Inputs.Order.New):
|
async def on_order_new(order_new: Inputs.Order.New):
|
||||||
print(f"Order new {order_new}")
|
print(f"Order new {order_new}")
|
||||||
|
|
||||||
@bfx.wss.on("subscribed")
|
@bfx.wss.on("subscribed")
|
||||||
def on_subscribed(subscription):
|
def on_subscribed(subscription):
|
||||||
print(f"Subscription successful <{subscription}>")
|
print(f"Subscription successful <{subscription}>")
|
||||||
|
|||||||
Reference in New Issue
Block a user