implement get_market_summaries

This commit is contained in:
gcarq
2017-11-11 19:20:16 +01:00
parent 12ae1e111e
commit bcd3340a80
3 changed files with 34 additions and 0 deletions

View File

@@ -137,3 +137,9 @@ class Bittrex(Exchange):
if not data['success']:
raise RuntimeError('{message}'.format(message=data['message']))
return [m['MarketName'].replace('-', '_') for m in data['result']]
def get_market_summaries(self) -> List[Dict]:
data = _API.get_market_summaries()
if not data['success']:
raise RuntimeError('{message}'.format(message=data['message']))
return data['result']