node-binance-api
node-binance-api copied to clipboard
Bad request error on marketSell
Hi, when I try to execute this example I get the response 400 bad request
ticker = 'RAREUSDT' quantity = 16
async placeSellOrder(ticker, quantity) { return new Promise((resolve, reject) => { this.binance.marketSell(ticker, quantity, (error, response) => { if(error) { console.log('ERROR', error.statusMessage, error.statusCode) reject(error) } else { console.info("Market Sell response", response); resolve(response) } }); }) }
I have the same issue
There could be two reasons. First, sync your computer's date and time. Second, when placing the sell order, give it as an integer (For example, 29 XRP, not 29.96 XRP)