Alpaca's trading API does not come with backtesting functionalities. However, they have created an integration with a backtesting library called Backtrader.