sammchardy / python-idex

IDEX v3 Exchange REST API python implementation

Home Page:https://python-idex.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Very unobvious bug

purplebrabus opened this issue · comments

If u try to make an order to sell some bug quantities of token, like hundreds of millions, then function BaseClient._convert_to_currency_quantity() has such bug: in the last line return str(res) if res is quite big, str() returns such format like 1.1337420e+25 and this causes some errors and exceptions further if u try to place new order. The solution is to replace this line to return '{:d}'.format(int(res)) then it will return ok numbers like 113374200000000000000000

Thanks, included in v0.3.4