From 3069a422e91a80106b951d5897e92c8b3696bd69 Mon Sep 17 00:00:00 2001 From: Samuel Husso Date: Mon, 26 Mar 2018 09:24:22 +0300 Subject: [PATCH] Conftest: use coins that we know are in bittrex, added a new conf for ccxt unittest --- freqtrade/tests/conftest.py | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/freqtrade/tests/conftest.py b/freqtrade/tests/conftest.py index d3d2b4d9a..be21ef9f6 100644 --- a/freqtrade/tests/conftest.py +++ b/freqtrade/tests/conftest.py @@ -72,6 +72,51 @@ def default_conf(): "enabled": True, "key": "key", "secret": "secret", + "pair_whitelist": [ + "ETH/BTC", + "NEO/BTC", + "LTC/BTC", + "XRP/BTC" + ] + }, + "telegram": { + "enabled": True, + "token": "token", + "chat_id": "0" + }, + "initial_state": "running", + "loglevel": logging.DEBUG + } + validate(configuration, Constants.CONF_SCHEMA) + return configuration + + +@pytest.fixture(scope="module") +def default_conf_ccxt(): + """ Returns validated configuration suitable for most tests """ + configuration = { + "max_open_trades": 1, + "stake_currency": "BTC", + "stake_amount": 0.001, + "fiat_display_currency": "USD", + "ticker_interval": 5, + "dry_run": True, + "minimal_roi": { + "40": 0.0, + "30": 0.01, + "20": 0.02, + "0": 0.04 + }, + "stoploss": -0.10, + "unfilledtimeout": 600, + "bid_strategy": { + "ask_last_balance": 0.0 + }, + "exchange": { + "name": "ccxt-unittest", + "enabled": True, + "key": "key", + "secret": "secret", "pair_whitelist": [ "ETH/BTC", "TKN/BTC",