remove remnants markets and precisionlist

This commit is contained in:
iuvbio
2019-03-03 13:41:51 +01:00
parent df79098adc
commit e2cbb7e7da
4 changed files with 3 additions and 7 deletions

View File

@@ -18,7 +18,6 @@ class IPairList(ABC):
self._config = config
self._whitelist = self._config['exchange']['pair_whitelist']
self._blacklist = self._config['exchange'].get('pair_blacklist', [])
self._markets = self._freqtrade.exchange.get_markets()
@property
def name(self) -> str:

View File

@@ -77,9 +77,8 @@ class VolumePairList(IPairList):
if self._freqtrade.strategy.stoploss is not None and self._precision_filter:
logger.debug(f"Markets: {list(self._markets)}")
stop_prices = [self._freqtrade.get_target_bid(t["symbol"], t)
* (1 + self._freqtrade.strategy.stoploss) for t in valid_tickers]
* (1 - abs(self._freqtrade.strategy.stoploss)) for t in valid_tickers]
rates = [sp * 0.99 for sp in stop_prices]
logger.debug("\n".join([f"{sp} : {r}" for sp, r in zip(stop_prices[:10], rates[:10])]))
for i, t in enumerate(valid_tickers):