added get_balances as a abstract method to the interface baseclass

This commit is contained in:
Samuel Husso 2017-10-29 17:57:57 +02:00
parent 4f6c3f94e0
commit f4fe09ffbf

View File

@ -49,6 +49,21 @@ class Exchange(ABC):
:return: float :return: float
""" """
@abstractmethod
def get_balances(self) -> List[dict]:
"""
Gets account balances across currencies
:return: List of dicts, format: [
{
'Currency': str,
'Balance': float,
'Available': float,
'Pending': float,
}
...
]
"""
@abstractmethod @abstractmethod
def get_ticker(self, pair: str) -> dict: def get_ticker(self, pair: str) -> dict:
""" """