Skip to content

Commit

Permalink
fixing error parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
poly-rodr committed Mar 5, 2024
1 parent 8468b8d commit 15edfff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions py_clob_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ def __resolve_tick_size(
if is_tick_size_smaller(tick_size, min_tick_size):
raise Exception(
"invalid tick size ("
+ tick_size
+ str(tick_size)
+ "), minimum for the market is "
+ min_tick_size,
+ str(min_tick_size),
)
else:
tick_size = min_tick_size
Expand All @@ -302,12 +302,11 @@ def create_order(
if not price_valid(order_args.price, tick_size):
raise Exception(
"price ("
+ order_args.price
+ str(order_args.price)
+ "), min: "
+ float(tick_size)
+ str(tick_size)
+ " - max: "
+ 1
- float(tick_size)
+ str(1 - float(tick_size))
)

return self.builder.create_order(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="py_clob_client",
version="0.13.1",
version="0.13.2",
author="Polymarket Engineering",
author_email="[email protected]",
maintainer="Polymarket Engineering",
Expand Down

0 comments on commit 15edfff

Please sign in to comment.