Skip to content

Commit

Permalink
Merge pull request danpaquin#88 from apesti/order-book-fix
Browse files Browse the repository at this point in the history
Fixed crash when changing a market order
  • Loading branch information
danpaquin authored Jul 14, 2017
2 parents 34fb289 + b24c128 commit b88ea5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gdax/order_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ def match(self, order):
self.set_asks(price, asks)

def change(self, order):
new_size = Decimal(order['new_size'])
try:
new_size = Decimal(order['new_size'])
except KeyError:
return

price = Decimal(order['price'])

if order['side'] == 'buy':
Expand Down

0 comments on commit b88ea5e

Please sign in to comment.