mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
test: update further tests for precision_mode_price
This commit is contained in:
parent
350c2241c4
commit
d7bee0c9e0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user