Add market() method to dataprovider
This commit is contained in:
parent
2c0d2c1532
commit
3ac5b91899
@ -85,6 +85,14 @@ class DataProvider:
|
|||||||
logger.warning(f"No data found for ({pair}, {ticker_interval}).")
|
logger.warning(f"No data found for ({pair}, {ticker_interval}).")
|
||||||
return data
|
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):
|
def ticker(self, pair: str):
|
||||||
"""
|
"""
|
||||||
Return last ticker data
|
Return last ticker data
|
||||||
|
Loading…
Reference in New Issue
Block a user