Move pairlists to be a plugin submodule

This commit is contained in:
Matthias
2020-12-23 16:54:35 +01:00
parent 7cef5ac217
commit 67193bca3d
19 changed files with 26 additions and 26 deletions

View File

@@ -15,7 +15,7 @@ def start_test_pairlist(args: Dict[str, Any]) -> None:
"""
Test Pairlist configuration
"""
from freqtrade.pairlist.pairlistmanager import PairListManager
from freqtrade.plugins.pairlistmanager import PairListManager
config = setup_utils_configuration(args, RunMode.UTIL_EXCHANGE)
exchange = ExchangeResolver.load_exchange(config['exchange']['name'], config, validate=False)

View File

@@ -22,7 +22,7 @@ from freqtrade.exceptions import (DependencyException, ExchangeError, Insufficie
from freqtrade.exchange import timeframe_to_minutes, timeframe_to_seconds
from freqtrade.misc import safe_value_fallback, safe_value_fallback2
from freqtrade.mixins import LoggingMixin
from freqtrade.pairlist.pairlistmanager import PairListManager
from freqtrade.plugins.pairlistmanager import PairListManager
from freqtrade.persistence import Order, PairLocks, Trade, cleanup_db, init_db
from freqtrade.plugins.protectionmanager import ProtectionManager
from freqtrade.resolvers import ExchangeResolver, StrategyResolver

View File

@@ -21,7 +21,7 @@ from freqtrade.exchange import timeframe_to_minutes, timeframe_to_seconds
from freqtrade.mixins import LoggingMixin
from freqtrade.optimize.optimize_reports import (generate_backtest_stats, show_backtest_results,
store_backtest_stats)
from freqtrade.pairlist.pairlistmanager import PairListManager
from freqtrade.plugins.pairlistmanager import PairListManager
from freqtrade.persistence import PairLocks, Trade
from freqtrade.plugins.protectionmanager import ProtectionManager
from freqtrade.resolvers import ExchangeResolver, StrategyResolver

View File

@@ -10,7 +10,7 @@ from pandas import DataFrame
from freqtrade.exceptions import OperationalException
from freqtrade.misc import plural
from freqtrade.pairlist.IPairList import IPairList
from freqtrade.plugins.pairlist.IPairList import IPairList
logger = logging.getLogger(__name__)

View File

@@ -6,7 +6,7 @@ from typing import Any, Dict, List
import pandas as pd
from freqtrade.pairlist.IPairList import IPairList
from freqtrade.plugins.pairlist.IPairList import IPairList
from freqtrade.persistence import Trade

View File

@@ -5,7 +5,7 @@ import logging
from typing import Any, Dict
from freqtrade.exceptions import OperationalException
from freqtrade.pairlist.IPairList import IPairList
from freqtrade.plugins.pairlist.IPairList import IPairList
logger = logging.getLogger(__name__)

View File

@@ -5,7 +5,7 @@ import logging
from typing import Any, Dict
from freqtrade.exceptions import OperationalException
from freqtrade.pairlist.IPairList import IPairList
from freqtrade.plugins.pairlist.IPairList import IPairList
logger = logging.getLogger(__name__)

View File

@@ -5,7 +5,7 @@ import logging
import random
from typing import Any, Dict, List
from freqtrade.pairlist.IPairList import IPairList
from freqtrade.plugins.pairlist.IPairList import IPairList
logger = logging.getLogger(__name__)

View File

@@ -4,7 +4,7 @@ Spread pair list filter
import logging
from typing import Any, Dict
from freqtrade.pairlist.IPairList import IPairList
from freqtrade.plugins.pairlist.IPairList import IPairList
logger = logging.getLogger(__name__)

View File

@@ -7,7 +7,7 @@ import logging
from typing import Any, Dict, List
from freqtrade.exceptions import OperationalException
from freqtrade.pairlist.IPairList import IPairList
from freqtrade.plugins.pairlist.IPairList import IPairList
logger = logging.getLogger(__name__)

View File

@@ -8,7 +8,7 @@ from datetime import datetime
from typing import Any, Dict, List
from freqtrade.exceptions import OperationalException
from freqtrade.pairlist.IPairList import IPairList
from freqtrade.plugins.pairlist.IPairList import IPairList
logger = logging.getLogger(__name__)

View File

@@ -11,7 +11,7 @@ from pandas import DataFrame
from freqtrade.exceptions import OperationalException
from freqtrade.misc import plural
from freqtrade.pairlist.IPairList import IPairList
from freqtrade.plugins.pairlist.IPairList import IPairList
logger = logging.getLogger(__name__)

View File

@@ -9,7 +9,7 @@ from cachetools import TTLCache, cached
from freqtrade.constants import ListPairsWithTimeframes
from freqtrade.exceptions import OperationalException
from freqtrade.pairlist.IPairList import IPairList
from freqtrade.plugins.pairlist.IPairList import IPairList
from freqtrade.resolvers import PairListResolver

View File

@@ -6,7 +6,7 @@ This module load custom pairlists
import logging
from pathlib import Path
from freqtrade.pairlist.IPairList import IPairList
from freqtrade.plugins.pairlist.IPairList import IPairList
from freqtrade.resolvers import IResolver
@@ -20,7 +20,7 @@ class PairListResolver(IResolver):
object_type = IPairList
object_type_str = "Pairlist"
user_subdir = None
initial_search_path = Path(__file__).parent.parent.joinpath('pairlist').resolve()
initial_search_path = Path(__file__).parent.parent.joinpath('plugins/pairlist').resolve()
@staticmethod
def load_pairlist(pairlist_name: str, exchange, pairlistmanager,