Skip to content

Commit

Permalink
Merge pull request #79 from itali43/itbitbug
Browse files Browse the repository at this point in the history
fixed itbit place order bug.. issue 11
  • Loading branch information
garethdmm committed Jan 30, 2020
2 parents 6a68b65 + 2e42e99 commit c6d5a6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gryphon/lib/exchange/itbit_btc_usd.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ def place_order_req(self, mode, volume, price=None, order_type=order_types.LIMIT

# Truncate the volume instead of rounding it because it's better# to trade too
# little than too much.
volume = volume.round_to_decimal_places(2, rounding=cdecimal.ROUND_DOWN)
volume = volume.round_to_decimal_places(8, rounding=cdecimal.ROUND_DOWN)

volume_str = '%.2f' % volume.amount
volume_str = '%.8f' % volume.amount
price_str = '%.2f' % price.amount

payload = {
Expand Down

0 comments on commit c6d5a6f

Please sign in to comment.