Skip to content

Commit

Permalink
fix: coinbase sell product precision
Browse files Browse the repository at this point in the history
  • Loading branch information
daneisburgh committed Jan 14, 2024
1 parent 60f1ff4 commit 117c77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invaas/coinbase/coinbase_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __buy_product(self, product_id: str, available_cash: float):

def __sell_product(self, product_id: str, owned_crypto: float):
crypto_id = self.__get_crypto_id(product_id)
sell_amount = self.floor_value(value=owned_crypto, precision=8)
sell_amount = self.floor_value(value=owned_crypto, precision=7)
self.logger.info(f"Sell amount: {sell_amount}")

if sell_amount == 0:
Expand Down

0 comments on commit 117c77f

Please sign in to comment.