Skip to content

Commit

Permalink
chore: release v0.5.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-kal committed Dec 13, 2022
1 parent 0641bdf commit 560aeab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyinjective/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def binary_options_buy_margin_to_backend(price, quantity, denom) -> int:

def binary_options_sell_margin_to_backend(price, quantity, denom) -> int:
price_tick_size = Decimal(denom.min_price_tick_size) / pow(10, denom.quote)
margin = (1 - (Decimal(str(price)) * (Decimal(str(quantity)))))
margin = (1 - (Decimal(str(price)))) * (Decimal(str(quantity)))
exchange_margin = floor_to(margin, float(price_tick_size)) * pow(10, 18 + denom.quote)
return int(exchange_margin)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
EMAIL = "[email protected]"
AUTHOR = "Injective Labs"
REQUIRES_PYTHON = ">=3.7.0"
VERSION = "0.5.9.2"
VERSION = "0.5.9.3"

REQUIRED = [
"protobuf==3.19.1",
Expand Down

0 comments on commit 560aeab

Please sign in to comment.