title: console.log not logging with await variable
body: <p>I am trying to log the data of a promise to my console but it's not showing. i have tried defining then in then and on top of functions and tried with let and redefining the before executing the algorithm but. no response</p>
  <p>sample</p>
  <pre><code>var trade;
  const getTrades = async () =&gt; {
      return await axios({
          method: 'get',
          url: bUrl + tradeQuery
      })
  
  }
  
  
  const getSOrders = async () =&gt; {
      return await axios({
          method: 'get',
          url: bUrl + mOrderQuery
      })
  
  }
  const postOrder = async() =&gt; {
    const binanceRest = new api.BinanceRest({
        ...
      }
    )
  
    binanceRest.newOrder({
        ...
      })
      .then(async(data) =&gt; {
        const trades = await getTrades()
        const mOrders = await getSOrders()
        console.log(data)
        console.log(trades)
      })
      .catch((err) =&gt; {
        console.error(err)
      })
  }
  
  (
      postOrder(),
      async () =&gt; {
          const trades = await getTrades()
          const mOrders = await getSOrders()
          const sells = mOrders.data.asks
          const buys = mOrders.data.bids
  
          while (true/*while order is in */) {
  
              trade = trades.data[trades.data.length - 1]
               console.log(sells)
             
          }
      }
  
  
  )()
  
  </code></pre>