Lending rates are determined by Alpaca according to market conditions, based on the supply and demand for individual securities.