Why does the following only show me Promise { <pending> }
const Binance = require('binance-api-node').default;
const Client = Binance({
apiKey: binanceAPIKey,
apiSecret: binanceAPISecret
});
async function checkBTCAvgPriceLast24h() {
return await Client.dailyStats({symbol: "BTCEUR"});
}
console.log(checkBTCAvgPriceLast24h());
shouldn't await
wait till resolved or rejected?