mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-26 14:21:12 +00:00
fix: round open_rate to tradable precisionThis prevents odd display issues with 16 decimals in case of multiple entries.
This commit is contained in:
@@ -8,6 +8,7 @@ from sqlalchemy import select
|
||||
from freqtrade.constants import CUSTOM_TAG_MAX_LENGTH, DATETIME_PRINT_FORMAT
|
||||
from freqtrade.enums import TradingMode
|
||||
from freqtrade.exceptions import DependencyException
|
||||
from freqtrade.exchange.exchange_utils import TICK_SIZE
|
||||
from freqtrade.persistence import LocalTrade, Order, Trade, init_db
|
||||
from freqtrade.util import dt_now
|
||||
from tests.conftest import (
|
||||
@@ -2833,6 +2834,8 @@ def test_recalc_trade_from_orders_dca(data) -> None:
|
||||
is_short=False,
|
||||
leverage=1.0,
|
||||
trading_mode=TradingMode.SPOT,
|
||||
price_precision=0.001,
|
||||
precision_mode_price=TICK_SIZE,
|
||||
)
|
||||
Trade.session.add(trade)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user