Spreadfilter log % fix

Both the following same
print(f'{3:.3%}') 
print(f'{3 *100 :.3}%')
# 300.000%
This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி 2022-01-18 14:05:03 +05:30 committed by GitHub
parent 3c06d31bbf
commit d918d24f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ class SpreadFilter(IPairList):
spread = 1 - ticker['bid'] / ticker['ask']
if spread > self._max_spread_ratio:
self.log_once(f"Removed {pair} from whitelist, because spread "
f"{spread * 100:.3%} > {self._max_spread_ratio:.3%}",
f"{spread:.3%} > {self._max_spread_ratio:.3%}",
logger.info)
return False
else: