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