Skip to content

Commit

Permalink
Merge branch 'fix-bitz-numberover' of https://github.com/zjhmale/ccxt
Browse files Browse the repository at this point in the history
…into zjhmale-fix-bitz-numberover
  • Loading branch information
kroitor committed May 28, 2018
2 parents 963e1e2 + 9870e9f commit cbc88f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions python/ccxt/async/bitz.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ def parse_order(self, order, market=None):
if side is None:
side = self.safe_string(order, 'flag')
amount = self.safe_float(order, 'number')
filled = self.safe_float(order, 'numberover')
remaining = None
remaining = self.safe_float(order, 'numberover')
filled = None
if amount is not None:
if filled is not None:
remaining = amount - filled
if remaining is not None:
filled = amount - remaining
timestamp = None
iso8601 = None
if 'datetime' in order:
Expand Down
8 changes: 4 additions & 4 deletions python/ccxt/bitz.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ def parse_order(self, order, market=None):
if side is None:
side = self.safe_string(order, 'flag')
amount = self.safe_float(order, 'number')
filled = self.safe_float(order, 'numberover')
remaining = None
remaining = self.safe_float(order, 'numberover')
filled = None
if amount is not None:
if filled is not None:
remaining = amount - filled
if remaining is not None:
filled = amount - remaining
timestamp = None
iso8601 = None
if 'datetime' in order:
Expand Down

0 comments on commit cbc88f5

Please sign in to comment.