Skip to content

Commit

Permalink
[Exchange] Fit lowest ask highest bid issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Feb 25, 2016
1 parent 1477d23 commit 84af1cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grapheneexchange/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ def returnTicker(self):
else :
data["last"] = -1
if len(orders) > 1:
data["lowestAsk"] = self._get_price(orders[1]["sell_price"])
data["highestBid"] = (1 / self._get_price(orders[0]["sell_price"]))
data["lowestAsk"] = (1 / self._get_price(orders[0]["sell_price"]))
data["highestBid"] = self._get_price(orders[1]["sell_price"])
else :
data["lowestAsk"] = -1
data["highestBid"] = -1
Expand Down

0 comments on commit 84af1cf

Please sign in to comment.