According to the latest data from the New York Stock Exchange, margin debt hit a record high of $528.2 billion in February 2017. In other words, there is currently more than half a trillion dollars in outstanding borrowed money that was used to buy shares of stock. This isn’t necessarily going to cause any problems while the market is going up, but could cause major headaches if the bull market runs out of steam.