Apply pylint's linting rules to examples/websocket/public/*.py.

This commit is contained in:
Davide Casale
2023-03-08 21:36:25 +01:00
parent 834a664034
commit d04ebb96d5
5 changed files with 23 additions and 23 deletions

View File

@@ -10,14 +10,14 @@ bfx = Client(wss_host=PUB_WSS_HOST)
@bfx.wss.on("derivatives_status_update")
def on_derivatives_status_update(subscription: subscriptions.Status, data: DerivativesStatus):
print(f"{subscription}:", data)
print(f"{subscription}:", data)
@bfx.wss.on("wss-error")
def on_wss_error(code: Error, msg: str):
print(code, msg)
@bfx.wss.once("open")
async def open():
async def on_open():
await bfx.wss.subscribe(Channel.STATUS, key="deriv:tBTCF0:USTF0")
bfx.wss.run()
bfx.wss.run()