mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-16 21:01:14 +00:00
feat: use "precision_mode_price" where applicable
This commit is contained in:
@@ -918,7 +918,10 @@ class Exchange:
|
|||||||
For stoploss calculations, must use ROUND_UP for longs, and ROUND_DOWN for shorts.
|
For stoploss calculations, must use ROUND_UP for longs, and ROUND_DOWN for shorts.
|
||||||
"""
|
"""
|
||||||
return price_to_precision(
|
return price_to_precision(
|
||||||
price, self.get_precision_price(pair), self.precisionMode, rounding_mode=rounding_mode
|
price,
|
||||||
|
self.get_precision_price(pair),
|
||||||
|
self.precision_mode_price,
|
||||||
|
rounding_mode=rounding_mode,
|
||||||
)
|
)
|
||||||
|
|
||||||
def price_get_one_pip(self, pair: str, price: float) -> float:
|
def price_get_one_pip(self, pair: str, price: float) -> float:
|
||||||
|
|||||||
Reference in New Issue
Block a user