Remove get_wallet_health

This commit is contained in:
enenn
2018-02-03 21:39:47 +01:00
parent 6bd606eb3e
commit 9f35d74e1d
3 changed files with 10 additions and 34 deletions

View File

@@ -175,8 +175,8 @@ def get_pair_detail_url(pair: str) -> str:
return _API.get_pair_detail_url(pair)
def get_markets() -> List[str]:
return _API.get_markets()
def get_markets() -> List[dict]:
return _API.fetch_markets()
def get_market_summaries() -> List[Dict]:
@@ -189,15 +189,3 @@ def get_name() -> str:
def get_fee() -> float:
return _API.calculate_fee('ETH/BTC', '', '', 1, 1)['rate']
def get_wallet_health() -> List[Dict]:
data = _API.request('Currencies/GetWalletHealth', api='v2')
if not data['success']:
raise OperationalException('{}'.format(data['message']))
return [{
'Currency': entry['Health']['Currency'],
'IsActive': entry['Health']['IsActive'],
'LastChecked': entry['Health']['LastChecked'],
'Notice': entry['Currency'].get('Notice'),
} for entry in data['result']]

View File

@@ -156,17 +156,3 @@ class Exchange(ABC):
...
]
"""
@abstractmethod
def get_wallet_health(self) -> List[Dict]:
"""
Returns a list of all wallet health information
:return: list, format: [
{
'Currency': str,
'IsActive': bool,
'LastChecked': str,
'Notice': str
},
...
"""