your definitely right about using bots do do the grunt work for you. especially on arbitrage. personally i dont like the stress of having to check my tokens esch day to hopefully that they didnt crash this is where the bot come sin. in a simple implementation youd just write a worker to fetch prices ever 5 minutes and deise a simple algorithm to sell if the price goes down by a certain X percent your comforable with. opposite is true for buying. this implementation wouldnt be for making gains but for just making sure u dont get done by unexpected price deops
arbitrage is your option to make money. see defi has flashloans so if you spot a price difference of 0.0000001 eth youd need a lot of upfront capital to capitalise on that. so just take a loan of like one hundredthousand ether and boom your making money
now thats the theory to write a good bot you need a really lightning quick price feed, so in web3 your best option is to write your own price oracle. using uniswp TWAP and cumulative price windowing formulae u can do this. this is much more reliable than relying on blockupdates of pair reserves offered by a lot of the exchange on the marketsā SDKās.
then theres also other things like flashbts to pay miners to process your tx first. usually in this case if you made a profit theyd take a large cut like 90% and u get left with the rest.
and then lastly your bot if u want it to be competitive should be able to trade and watch for price mismatches over multiple routes not just a two token pair bc u will rarely find a price mistmatch here that every other bot and their mother hasnt already spooted. so like imagine you wrote a scritpt that could spot a price difference between like usdt on univ2 and dai on univ3, then your bot should route USDT => ETH (univ2) => ETH=> WETH => (UNIV3) WETH => DAI (UNIV3) so thats what i mean about going multiple trades deep. this is where the challegne is devising an algotihm that is able to spot opportunityes this many levels (or more) deep.
if you cursiou of a decent defi bot i wrote last year u can see my repo below you know your stuff so mayb eit would be of intrest to you. ive been on an off doing a V2 of this which i plan to actually use which im developing out all of the concepts i mentioned above and optimising my flash swap contract.
https://github.com/mcgraneder/Defi-Trading-Arbitrage-Bot