zenbot icon indicating copy to clipboard operation
zenbot copied to clipboard

binance transactions errors

Open vitorego opened this issue 8 years ago • 7 comments

hi guys, I+m having thsi error when live trading on binance:

Error: binance POST https://api.binance.com/api/v3/order 400 Bad Request {"code":-1100,"msg":"Illegal characters found in parameter 'price'; legal range is '^([0-9]{1,20})(\\.[0-9]{1,20})?$'."} (possible reasons: invalid API keys, bad or old nonce, exchange is down or offline, on maintenance, DDoS protection, rate-limiting)
    at binance.defaultErrorHandler (/home/vitorego/download/zenbot_master/node_modules/ccxt/js/base/Exchange.js:400:15)
    at response.text.then.text (/home/vitorego/download/zenbot_master/node_modules/ccxt/js/base/Exchange.js:413:25)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7) constructor: [Function: ExchangeNotAvailable] }

Binance API is down! unable to call buy, retrying in 20s
[ { size: '0.00280188',
    orig_size: '0.00280188',
    remaining_size: '0.00280188',
    orig_price: '426.96',
    cancel_after: 'day',
    product_id: 'ETH-USDT',
    type: 'limit',
    side: 'buy',
    post_only: true } ]

Do you know if this is a bug or what?

vitorego avatar Dec 11 '17 00:12 vitorego

try asking binance for a new api, that worked for me on gdax.

hquan212 avatar Dec 11 '17 01:12 hquan212

I think the issue is because binance only supports 5 decimal digits and we are sending 8.

vitorego avatar Dec 11 '17 22:12 vitorego

Same problem here. Couldn't fix it. Any help would be great!

carolburri avatar Dec 14 '17 22:12 carolburri

i just discover that this errors happens because the products.json of binance is not correct according with the real minimum allowed by their site. Fixing the file manually the issue seems to be fixed.

thanks for the support

vitorego avatar Dec 15 '17 23:12 vitorego

Could you show me what exactly did you chance? That would be great. Thx

carolburri avatar Dec 16 '17 09:12 carolburri

For ETH-USD pair i just changed to: { "id": "ETHUSDT", "asset": "ETH", "currency": "USDT", "min_size": "0.01000", "max_size": "100000", "increment": "0.001", "label": "ETH/USDT" }

vitorego avatar Dec 16 '17 11:12 vitorego

Thx. I'm not able to get it work. Did also the increment of 0.001 but no hope.

{ "id": "IOTABTC", "asset": "IOTA", "currency": "BTC", "min_size": "1.000000", "max_size": "100000", "increment": "0.000001", "label": "IOTA/BTC" },

If someone have a idea it would be great!

carolburri avatar Dec 16 '17 18:12 carolburri