Apply pylint's linting rules to examples/rest/authenticated/*.py.

This commit is contained in:
Davide Casale
2023-03-08 19:39:00 +01:00
parent bd09cc4ae4
commit 88c016e1f8
6 changed files with 19 additions and 19 deletions

View File

@@ -15,9 +15,9 @@ bfx = Client(
# Submit a new order
submit_order_notification: Notification[Order] = bfx.rest.auth.submit_order(
type=OrderType.EXCHANGE_LIMIT,
symbol="tBTCUST",
amount=0.015,
price=10000,
symbol="tBTCUST",
amount=0.015,
price=10000,
flags=Flag.HIDDEN + Flag.OCO + Flag.CLOSE
)
@@ -28,7 +28,7 @@ order: Order = submit_order_notification.data
# Update its amount and its price
update_order_notification: Notification[Order] = bfx.rest.auth.update_order(
id=order.id,
amount=0.020,
amount=0.020,
price=10150
)
@@ -39,4 +39,4 @@ cancel_order_notification: Notification[Order] = bfx.rest.auth.cancel_order(
id=order.id
)
print("Cancel order notification:", cancel_order_notification)
print("Cancel order notification:", cancel_order_notification)