mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 23:04:21 +01:00
fix all linting for pylint3
This commit is contained in:
@@ -1,19 +1,33 @@
|
||||
"""
|
||||
Module used to describe all of the different data types
|
||||
"""
|
||||
|
||||
|
||||
class Wallet:
|
||||
"""
|
||||
Stores data relevant to a users wallet such as balance and
|
||||
currency
|
||||
"""
|
||||
|
||||
def __init__(self, wType, currency, balance, unsettled_interest):
|
||||
self.type = wType
|
||||
self.currency = currency
|
||||
self.balance = balance
|
||||
self.unsettled_interest = unsettled_interest
|
||||
self.key = "{}_{}".format(wType, currency)
|
||||
def __init__(self, wType, currency, balance, unsettled_interest):
|
||||
self.type = wType
|
||||
self.currency = currency
|
||||
self.balance = balance
|
||||
self.unsettled_interest = unsettled_interest
|
||||
self.key = "{}_{}".format(wType, currency)
|
||||
|
||||
def set_balance(self, data):
|
||||
self.balance = data
|
||||
def set_balance(self, data):
|
||||
"""
|
||||
Set the balance of the wallet
|
||||
"""
|
||||
self.balance = data
|
||||
|
||||
def set_unsettled_interest(self, data):
|
||||
self.unsettled_interest = data
|
||||
def set_unsettled_interest(self, data):
|
||||
"""
|
||||
Set the unsettled interest of the wallet
|
||||
"""
|
||||
self.unsettled_interest = data
|
||||
|
||||
def __str__(self):
|
||||
return "Wallet <'{}_{}' balance='{}' unsettled='{}'>".format(
|
||||
self.type, self.currency, self.balance, self.unsettled_interest)
|
||||
def __str__(self):
|
||||
return "Wallet <'{}_{}' balance='{}' unsettled='{}'>".format(
|
||||
self.type, self.currency, self.balance, self.unsettled_interest)
|
||||
|
||||
Reference in New Issue
Block a user