Add lines

This commit is contained in:
itsdeka
2023-01-11 11:51:41 +01:00
parent 44ba7e780a
commit f9f72a4ebb

View File

@@ -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}>")