chore: drop candle_start and candle_end from trades and add test asserting trades columns

This commit is contained in:
Joe Schr
2024-07-17 14:13:47 +02:00
parent 4cd75c9753
commit 9eb5993833
2 changed files with 6 additions and 2 deletions

View File

@@ -279,6 +279,7 @@ def test_public_trades_trades_mock_populate_dataframe_with_trades__check_trades(
# Assert specific details of the first trade
t = row["trades"][0]
assert list(t.keys()) == ["timestamp", "id", "type", "side", "price", "amount", "cost", "date"]
assert trades["id"][0] == t["id"]
assert int(trades["timestamp"][0]) == int(t["timestamp"])
assert t["side"] == "sell"