Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #88 from grandizzy/bittrex
Browse files Browse the repository at this point in the history
Fix Bittrex remaining order amount
  • Loading branch information
grandizzy committed Jul 23, 2019
2 parents 4821a69 + fa5553e commit 7beff26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyexchange/bittrex.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def buy_to_sell_price(self) -> Wad:

@property
def remaining_buy_amount(self) -> Wad:
return self.remaining_amount*self.price if self.is_sell else self.remaining_amount
return self.remaining_amount

@property
def remaining_sell_amount(self) -> Wad:
return self.remaining_amount if self.is_sell else self.remaining_amount*self.price
return self.remaining_amount

def __repr__(self):
return pformat(vars(self))
Expand Down

0 comments on commit 7beff26

Please sign in to comment.