You can use the adjustment parameter, refer into the doc:
adjustment
How to obtain split and dividend adjusted prices using alpaca_trade_api?