When you place buy orders on the market, the money needed is reserved (temporarily deducted from your balance) to ensure you have enough of it when someone sells it to you. You can free it up again by cancelling the order.
Similarly, sell orders reserve the amount of resources that you want to sell.