Convert np to None when loading hdf5 trades to allow duplicate detection

This commit is contained in:
Matthias
2020-11-19 07:30:28 +01:00
parent bf6682d37f
commit 52c9a2c37f
2 changed files with 5 additions and 1 deletions

View File

@@ -724,6 +724,8 @@ def test_hdf5datahandler_trades_load(testdatadir):
trades2 = dh._trades_load('XRP/ETH', timerange)
assert len(trades) > len(trades2)
# Check that ID is None (If it's nan, it's wrong)
assert trades2[0][2] is None
# unfiltered load has trades before starttime
assert len([t for t in trades if t[0] < timerange.startts * 1000]) >= 0