Update test for new trades handling
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user