How to add stop loss to existing positions

Hi, I was wondering if there is a way to add a stop loss to an existing position in alpaca-py? StopOrderRequest is not what I’m looking for as it converts orders into a limit order on the buy side. I’m looking for a market order stop loss from both sides.

Or alternatively, modify the stoploss of a existing position.

Thanks in advance!

It might have to be done on loop, sell after an if statement.