Skip to content

Commit

Permalink
Sort by local_timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaz001 committed Jan 15, 2024
1 parent b13b361 commit 67a29b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hftbacktest/data/utils/tardis.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def convert(
data = merge_on_local_timestamp(data, sets[0])
del sets[0]

data = data[np.argsort(data[:, 2])]
data = correct(data, base_latency=base_latency, method=method)

# Validate again.
Expand Down

0 comments on commit 67a29b3

Please sign in to comment.