edeng23 / binance-trade-bot

Automated cryptocurrency trading bot
GNU General Public License v3.0
7.9k stars 2.19k forks source link

Illegal characters found in parameter 'price' - API error? #393

Open overlordhu opened 3 years ago

overlordhu commented 3 years ago

Hi,

I got the following error. I trimmed the timestamp from the beginning:

... crypto_trading_logger - INFO - BUY QTY 41070807.0 of <SHIB> crypto_trading_logger - INFO - APIError(code=-1100): Illegal characters found in parameter 'price'; legal range is '^([0-9]{1,20})(\.[0-9]{1,20})?$'. crypto_trading_logger - INFO - APIError(code=-1100): Illegal characters found in parameter 'price'; legal range is '^([0-9]{1,20})(\.[0-9]{1,20})?$'. crypto_trading_logger - INFO - APIError(code=-1100): Illegal characters found in parameter 'price'; legal range is '^([0-9]{1,20})(\.[0-9]{1,20})?$'. crypto_trading_logger - INFO - APIError(code=-1100): Illegal characters found in parameter 'price'; legal range is '^([0-9]{1,20})(\.[0-9]{1,20})?$'. ...

I am not perfect in Python, so unless digging deeper in the code I would suspect there is some too long float number that something can not interpret here.

Best,

Pal

lisabbasil commented 3 years ago

The problem is that a scientific representation of the ridicilously low SHIB price is used. I.e it asks a buy price of e.g. 8.8e-06, and the API does not understand that.

rroblik commented 3 years ago

Any news about it ?