Skip to content

Commit

Permalink
acceptable compromise or outrageous coding atrocity?
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Jan 6, 2016
1 parent 42c69a8 commit 871b8ef
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions disorderBook_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,21 +291,21 @@ def parse_order(self, data):
self.next_id += 1

order = Order(
ok = True,
venue = self.venue,
symbol = self.symbol,
direction = direction,
originalQty = qty,
qty = qty,
price = price,
orderType = orderType,
id = id,
account = account,
ts = current_timestamp(),
fills = list(),
totalFilled = 0,
open = True
)
ok = True,
venue = self.venue,
symbol = self.symbol,
direction = direction,
originalQty = qty,
qty = qty,
price = price,
orderType = orderType,
id = id,
account = account,
ts = current_timestamp(),
fills = list(),
totalFilled = 0,
open = True
)

self.id_lookup_table[id] = order # So we can find it for status/cancel

Expand Down

0 comments on commit 871b8ef

Please sign in to comment.