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

@@ -19,8 +19,8 @@ wallets: List[Wallet] = bfx.rest.auth.get_wallets()
# Transfers funds (0.001 ETH) from exchange wallet to funding wallet # Transfers funds (0.001 ETH) from exchange wallet to funding wallet
A: Notification[Transfer] = bfx.rest.auth.transfer_between_wallets( A: Notification[Transfer] = bfx.rest.auth.transfer_between_wallets(
from_wallet="exchange", to_wallet="funding", from_currency="ETH", from_wallet="exchange", to_wallet="funding", currency="ETH",
to_currency="ETH", amount=0.001) currency_to="ETH", amount=0.001)
print("Transfer:", A.data) print("Transfer:", A.data)

View File

@@ -32,5 +32,5 @@ print("Status:", bool(derivative_position_collateral.status))
derivative_position_collateral_limits: DerivativePositionCollateralLimits = \ derivative_position_collateral_limits: DerivativePositionCollateralLimits = \
bfx.rest.auth.get_derivative_position_collateral_limits(symbol="tBTCF0:USTF0") bfx.rest.auth.get_derivative_position_collateral_limits(symbol="tBTCF0:USTF0")
print(f"Minimum collateral: {derivative_position_collateral_limits.min_collateral} | \ print(f"Minimum collateral: {derivative_position_collateral_limits.min_collateral} | " \
Maximum collateral: {derivative_position_collateral_limits.max_collateral}") f"Maximum collateral: {derivative_position_collateral_limits.max_collateral}")

View File

@@ -16,7 +16,7 @@ loans: List[FundingLoan] = bfx.rest.auth.get_funding_loans(symbol="fUSD")
# Set every loan's keep funding status to <off> (1: <on>, 2: <off>) # Set every loan's keep funding status to <off> (1: <on>, 2: <off>)
notification: Notification[None] = bfx.rest.auth.toggle_keep_funding( notification: Notification[None] = bfx.rest.auth.toggle_keep_funding(
funding_type="loan", type="loan",
ids=[ loan.id for loan in loans ], ids=[ loan.id for loan in loans ],
changes={ loan.id: 2 for loan in loans } changes={ loan.id: 2 for loan in loans }
) )