mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 23:04:21 +01:00
Apply pylint's linting rules to examples/rest/authenticated/*.py.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user