Skip to content

Commit

Permalink
Fix incorrect trade message processing
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaz001 committed May 22, 2023
1 parent 8eb436d commit 8bb6d12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hftbacktest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
'correct'
)

__version__ = '1.6.0'
__version__ = '1.6.1'


# JIT'ed latency models
Expand Down
2 changes: 2 additions & 0 deletions hftbacktest/data/utils/binancefutures.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def convert(
if data is not None:
evt = data['e']
if evt == 'trade':
if data['X'] != 'MARKET':
continue
# event_time = data['E']
transaction_time = data['T']
price = data['p']
Expand Down

0 comments on commit 8bb6d12

Please sign in to comment.