Add market() method to dataprovider

This commit is contained in:
hroff-1902 2019-10-03 02:58:45 +03:00
parent 2c0d2c1532
commit 3ac5b91899
1 changed files with 8 additions and 0 deletions

View File

@ -85,6 +85,14 @@ class DataProvider:
logger.warning(f"No data found for ({pair}, {ticker_interval}).")
return data
def market(self, pair: str):
"""
Return market data for the pair
:param pair: Pair to get the data for
:return: Market data dict from ccxt or None if market info is not available for the pair
"""
return self._exchange.markets.get(pair)
def ticker(self, pair: str):
"""
Return last ticker data