Adjust imports in scripts
This commit is contained in:
parent
432cc00283
commit
4ca6aad99a
@ -9,7 +9,7 @@ import arrow
|
|||||||
from freqtrade import arguments
|
from freqtrade import arguments
|
||||||
from freqtrade.arguments import TimeRange
|
from freqtrade.arguments import TimeRange
|
||||||
from freqtrade.exchange import Exchange
|
from freqtrade.exchange import Exchange
|
||||||
from freqtrade.optimize import download_backtesting_testdata
|
from freqtrade.data.history import download_backtesting_testdata
|
||||||
from freqtrade.configuration import set_loggers
|
from freqtrade.configuration import set_loggers
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
@ -38,9 +38,9 @@ import pytz
|
|||||||
from plotly import tools
|
from plotly import tools
|
||||||
from plotly.offline import plot
|
from plotly.offline import plot
|
||||||
|
|
||||||
import freqtrade.optimize as optimize
|
|
||||||
from freqtrade import persistence
|
from freqtrade import persistence
|
||||||
from freqtrade.arguments import Arguments, TimeRange
|
from freqtrade.arguments import Arguments, TimeRange
|
||||||
|
from freqtrade.data import history
|
||||||
from freqtrade.exchange import Exchange
|
from freqtrade.exchange import Exchange
|
||||||
from freqtrade.optimize.backtesting import setup_configuration
|
from freqtrade.optimize.backtesting import setup_configuration
|
||||||
from freqtrade.persistence import Trade
|
from freqtrade.persistence import Trade
|
||||||
@ -141,7 +141,7 @@ def plot_analyzed_dataframe(args: Namespace) -> None:
|
|||||||
exchange.refresh_tickers([pair], tick_interval)
|
exchange.refresh_tickers([pair], tick_interval)
|
||||||
tickers[pair] = exchange.klines(pair)
|
tickers[pair] = exchange.klines(pair)
|
||||||
else:
|
else:
|
||||||
tickers = optimize.load_data(
|
tickers = history.load_data(
|
||||||
datadir=_CONF.get("datadir"),
|
datadir=_CONF.get("datadir"),
|
||||||
pairs=[pair],
|
pairs=[pair],
|
||||||
ticker_interval=tick_interval,
|
ticker_interval=tick_interval,
|
||||||
|
@ -27,8 +27,8 @@ import plotly.graph_objs as go
|
|||||||
from freqtrade.arguments import Arguments
|
from freqtrade.arguments import Arguments
|
||||||
from freqtrade.configuration import Configuration
|
from freqtrade.configuration import Configuration
|
||||||
from freqtrade import constants
|
from freqtrade import constants
|
||||||
|
from freqtrade.data as history
|
||||||
from freqtrade.resolvers import StrategyResolver
|
from freqtrade.resolvers import StrategyResolver
|
||||||
import freqtrade.optimize as optimize
|
|
||||||
import freqtrade.misc as misc
|
import freqtrade.misc as misc
|
||||||
|
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ def plot_profit(args: Namespace) -> None:
|
|||||||
pairs = list(set(pairs) & set(filter_pairs))
|
pairs = list(set(pairs) & set(filter_pairs))
|
||||||
logger.info('Filter, keep pairs %s' % pairs)
|
logger.info('Filter, keep pairs %s' % pairs)
|
||||||
|
|
||||||
tickers = optimize.load_data(
|
tickers = history.load_data(
|
||||||
datadir=config.get('datadir'),
|
datadir=config.get('datadir'),
|
||||||
pairs=pairs,
|
pairs=pairs,
|
||||||
ticker_interval=tick_interval,
|
ticker_interval=tick_interval,
|
||||||
|
Loading…
Reference in New Issue
Block a user