Hi,
I just ran into binance-connector-node and is been interesting…
I placed a spot buy order and I am looking for how sell off this order, but i cant seems to find any method for selling placed order.
I have tried to replaced SELL in the same newOrder request, but the response i am getting suggest that its still trying to buy responses like insufficient balance or failure because of MIN_NOTIONAL’
{client.newOrder(‘PORTOBUSD’, ‘SELL’, ‘MARKET’, {
quantity: 2
}).then(response => client.logger.log(response.data))
.catch(error => client.logger.error(error))
}
what is the recommended way to sell of any placed order.
Here’s an example to buy and sell in spot on binance. This uses 50% of your balance to buy BTC using your USDT balance, and then it sells 100% of your purchased BTC balance - here’s a link to the part that does the sell part of the workflow: