Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

binance transactions errors #830

Closed
vitorego opened this issue Dec 11, 2017 · 4 comments
Closed

binance transactions errors #830

vitorego opened this issue Dec 11, 2017 · 4 comments
Labels

Comments

@vitorego
Copy link

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?

@hquan212
Copy link

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

@vitorego
Copy link
Author

vitorego commented Dec 11, 2017

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

@carolburri
Copy link

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

@vitorego
Copy link
Author

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

@carolburri
Copy link

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

@vitorego
Copy link
Author

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"
}

@carolburri
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants