Set explicit dtypes

This commit is contained in:
Matthias
2023-08-18 07:25:51 +02:00
parent f69a776305
commit 0fab65df03
4 changed files with 19 additions and 7 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ import pytest
from freqtrade import constants
from freqtrade.commands import Arguments
from freqtrade.data.converter import ohlcv_to_dataframe
from freqtrade.data.converter import ohlcv_to_dataframe, trades_list_to_df
from freqtrade.edge import PairInfo
from freqtrade.enums import CandleType, MarginMode, RunMode, SignalDirection, TradingMode
from freqtrade.exchange import Exchange
@@ -2352,8 +2352,8 @@ def trades_history():
@pytest.fixture(scope="function")
def trades_history_df(trades_history):
trades = pd.DataFrame(trades_history, columns=constants.DEFAULT_TRADES_COLUMNS)
trades['timestamp'] = pd.to_datetime(trades['timestamp'], unit='ms', utc=True)
trades = trades_list_to_df(trades_history)
trades['date'] = pd.to_datetime(trades['timestamp'], unit='ms', utc=True)
return trades