Skip to content

Commit

Permalink
Add checking header in a Binance trade file #27.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaz001 committed Mar 8, 2024
1 parent 6350b7a commit a4eefb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hftbacktest/data/utils/binancehistmktdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ def convert(
if line is None or line == '':
break
cols = line.strip().split(',')
# Checks if it's a header.
if cols[0] == 'id':
continue

exch_timestamp = int(cols[4])
loc_timestamp = exch_timestamp + feed_latency
Expand Down

0 comments on commit a4eefb3

Please sign in to comment.