Update test for new trades handling

This commit is contained in:
Matthias
2023-08-17 09:56:31 +02:00
parent 7ac9d33c31
commit a595074754
2 changed files with 17 additions and 9 deletions
+7
View File
@@ -2349,6 +2349,13 @@ def trades_history():
[1565798399872, '1261aa81333', None, 'sell', 0.019626, 0.011, 0.00021588599999999999]]
@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)
return trades
@pytest.fixture(scope="function")
def fetch_trades_result():
return [{'info': {'a': 126181329,