Skip to content

Commit

Permalink
Restore top of book to previous single price behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
brianboonstra committed Mar 14, 2018
1 parent 68f0e90 commit 308d59a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdax/order_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def get_current_book(self):
return result

def get_ask(self):
return self._asks.peekitem(0)
return self._asks.peekitem(0)[0]

def get_asks(self, price):
return self._asks.get(price)
Expand All @@ -231,7 +231,7 @@ def set_asks(self, price, asks):
self._asks[price] = asks

def get_bid(self):
return self._bids.peekitem(-1)
return self._bids.peekitem(-1)[0]

def get_bids(self, price):
return self._bids.get(price)
Expand Down

0 comments on commit 308d59a

Please sign in to comment.