What you need literally is just slippage setting to prevent you from getting too low rate in exchange for your coin and you're set.
Also try to make bunch of small transactions so that the liquidity pool will not get disturbed too much, I always find the entirety of the DEX auto market making mechanism to be broken for low valued meme coin which lacks LP-ers as well as new coin that just barely listed.
one reason why you should use any DEX's limit order feature instead

.