add get_runmode
This commit is contained in:
parent
7206287b00
commit
05570732c6
@ -31,6 +31,7 @@ class DataProvider(object):
|
|||||||
get ohlcv data for the given pair as DataFrame
|
get ohlcv data for the given pair as DataFrame
|
||||||
"""
|
"""
|
||||||
# TODO: Should not be stored in exchange but in this class
|
# TODO: Should not be stored in exchange but in this class
|
||||||
|
# TODO: should return dataframe, not list
|
||||||
return self._exchange.klines.get(pair)
|
return self._exchange.klines.get(pair)
|
||||||
|
|
||||||
def historic_ohlcv(self, pair: str) -> DataFrame:
|
def historic_ohlcv(self, pair: str) -> DataFrame:
|
||||||
@ -54,3 +55,11 @@ class DataProvider(object):
|
|||||||
def balance(self, pair):
|
def balance(self, pair):
|
||||||
# TODO: maybe use wallet directly??
|
# TODO: maybe use wallet directly??
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@property
|
||||||
|
def runmode(self) -> str:
|
||||||
|
"""
|
||||||
|
Get runmode of the bot
|
||||||
|
can be "live", "dry-run", "backtest", "edgecli", "hyperopt".
|
||||||
|
"""
|
||||||
|
return self._config.get['runmode']
|
||||||
|
Loading…
Reference in New Issue
Block a user