timeframe is mandatory, no need to use .get()

This commit is contained in:
Matthias 2021-02-14 10:46:59 +01:00
parent ffca09bbcb
commit ee74bc1f52
2 changed files with 2 additions and 3 deletions

View File

@ -137,7 +137,7 @@ class Exchange:
self.validate_ordertypes(config.get('order_types', {}))
self.validate_order_time_in_force(config.get('order_time_in_force', {}))
self.validate_required_startup_candles(config.get('startup_candle_count', 0),
config.get('timeframe'))
config.get('timeframe', ''))
# Converts the interval provided in minutes in config to seconds
self.markets_refresh_interval: int = exchange_config.get(

View File

@ -6,13 +6,12 @@ suitable to run with freqtrade.
"""
from datetime import datetime, timedelta, timezone
from freqtrade.exchange.exchange import timeframe_to_minutes
from pathlib import Path
import pytest
from freqtrade.exchange import timeframe_to_minutes, timeframe_to_prev_date
from freqtrade.resolvers.exchange_resolver import ExchangeResolver
from freqtrade.exchange import timeframe_to_prev_date
from tests.conftest import get_default_conf