mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Add wss exmaple to create order, refactoring
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# python -c "from examples.websocket.ticker import *"
|
||||
|
||||
import asyncio
|
||||
|
||||
from bfxapi import Client, Constants
|
||||
@@ -16,4 +18,4 @@ def on_t_ticker_update(subscription: Subscriptions.TradingPairTicker, data: Trad
|
||||
async def open():
|
||||
await bfx.wss.subscribe(Channels.TICKER, symbol="tBTCUSD")
|
||||
|
||||
asyncio.run(bfx.wss.start())
|
||||
bfx.wss.run()
|
||||
Reference in New Issue
Block a user