mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
test: update further tests for precision_mode_price
This commit is contained in:
@@ -96,6 +96,7 @@ def test_rpc_trade_status(default_conf, ticker, fee, mocker) -> None:
|
|||||||
"amount_precision": 8.0,
|
"amount_precision": 8.0,
|
||||||
"price_precision": 8.0,
|
"price_precision": 8.0,
|
||||||
"precision_mode": 2,
|
"precision_mode": 2,
|
||||||
|
"precision_mode_price": 2,
|
||||||
"contract_size": 1,
|
"contract_size": 1,
|
||||||
"has_open_orders": False,
|
"has_open_orders": False,
|
||||||
"orders": [
|
"orders": [
|
||||||
|
|||||||
@@ -579,6 +579,7 @@ def test_ft_stoploss_reached(
|
|||||||
liquidation_price=liq,
|
liquidation_price=liq,
|
||||||
price_precision=4,
|
price_precision=4,
|
||||||
precision_mode=2,
|
precision_mode=2,
|
||||||
|
precision_mode_price=2,
|
||||||
)
|
)
|
||||||
trade.adjust_min_max_rates(trade.open_rate, trade.open_rate)
|
trade.adjust_min_max_rates(trade.open_rate, trade.open_rate)
|
||||||
strategy.trailing_stop = trailing
|
strategy.trailing_stop = trailing
|
||||||
|
|||||||
Reference in New Issue
Block a user