Skip to content

Commit

Permalink
Always round order pane $limit to 3 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jun 20, 2023
1 parent d06cf7d commit 62874ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion piker/ui/_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ def apply_setting(
f'limit must > then current pp: {dsize}'
)
# reset position size value
alloc.currency_limit = dsize
alloc.currency_limit = round(
dsize,
ndigits=3,
)
return False

alloc.currency_limit = value
Expand Down

0 comments on commit 62874ee

Please sign in to comment.