I just need to write simple and clean code. But it is complicated.  

How can I use promise to write more readable code

```
var arrangeTheOrders = (name, margin, precision, cost, minQty, interval) => {
binance.getBalances((err, balances) => {
    if (err) {
        console.log(err.body);
        return;
    } else if (balances) {
        let available = balances[name.substr(0, name.length - 3).toUpperCase()].available;
        let onOrder = balances[name.substr(0, name.length - 3).toUpperCase()].onOrder;
        let currentBalance = Number.parseFloat(available) + Number.parseFloat(onOrder);
        if (minQty > currentBalance) {
            console.log('the crypto was sold');
            return;
        } else {
            binance.getOpenOrdersByName(name, (err, openOrders) => {
                if (err) {
                    console.log(err.body);
                    return;
                } else if (openOrders) {
                    console.log(openOrders);
                }
            });
        }
    }
});

```

};