Always round order pane $limit to 3 digits

basic_buy_bot
Tyler Goodlet 2023-06-20 12:37:48 -04:00
parent 020a3955d2
commit ad31631a8f
1 changed files with 4 additions and 1 deletions

View File

@ -294,7 +294,10 @@ class SettingsPane:
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