Review fixes

This commit is contained in:
peterkorodi 2018-05-16 22:15:33 +02:00 committed by GitHub
parent bc13ea55f0
commit 1ef7cbdfd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@ Optional Cli parameters
-d / --datadir: path to pair backtest data
--timerange: specify what timerange of data to use.
-l / --live: Live, to download the latest ticker for the pair
-db / --db-url: Show trades stored in database
"""
import logging
import sys
@ -21,14 +22,14 @@ from plotly import tools
from plotly.offline import plot
import plotly.graph_objs as go
from typing import Dict, List, Any
from sqlalchemy import create_engine
from freqtrade.arguments import Arguments
from freqtrade.analyze import Analyze
from freqtrade import exchange
import freqtrade.optimize as optimize
from typing import Dict, List, Any
from freqtrade import persistence
from sqlalchemy import create_engine
from freqtrade.persistence import Trade
logger = logging.getLogger(__name__)
@ -54,7 +55,7 @@ def plot_analyzed_dataframe(args: Namespace) -> None:
tick_interval = analyze.strategy.ticker_interval
tickers = {}
tickers = []
if args.live:
logger.info('Downloading pair.')
# Init Bittrex to use public API