Thats what the line of credit is for. When you need immediate money, dont want to cash out stock, can pay it back in a month, or to give you a month to park it somewhere with a lower interest rate.
You can spend out of a brokerage account as if its a savings account. Sell your stocks, and youll have cash.