[00:01] are some profitable transactions the bot made on the Ethereum network. The way it works is the AI notices price differences on stable coins mempools and runs arbitrage trades to grab the spread. If this kind of stuff is your [00:15] thing, drop a like and let's begin the tutorial. Hi guys, in this one we are going to set up an AI arbitrage trading bot that I made from scratch using AI. So, to kick things off, I really recommend the free [00:29] guide in the description box. It lays out all the steps and links you'll need for the wallet part. MetaMask works great and that's what I'm using. Though, Trust Wallet or Phantom Wallet are fine alternatives, too. Okay, so go to the [00:42] website down in the description. It's designed for developers to run projects on cloud hosted servers, and we'll host the bot there. First up, we need a bot file. So, in the files explorer tab, click on new file. [00:56] Give it a py extension. [music] I'm naming mine bot. py, though any name works. From here, copy the bot code that's in the description guide and paste it over into the code editor. Now, switch to the compile tab and press [01:10] compile and build. That handles downloading dependencies and compiling. [01:27] just go ahead and open the deploy tab. Since we're deploying for the first time, just go ahead and click deploy on cloud environment. And your bot cloud environment. And your bot container gets deployed on the cloud. [01:49] the right is the console. That's how we control the bot. And it just loaded up all the functions for interacting with it. So before the bot can make transactions, it needs a smart contract on Ethereum. Since it's a brand new [02:01] setup though, we'll deploy the smart contract on Ethereum mainet. So go ahead and fire up the load smart contract function. Deploying a contract is pretty affordable nowadays. It's about 50. [02:17] All right, let's confirm our smart contract deployed successfully [music] by verifying it over on the Etherscan link. Here it shows our smart contract is deployed on the Ethereum network and we can confirm we're the owner of the [02:30] bots's contract. Back on the website, the next move is giving our bot smart contract enough liquidity to trade with. Start by copying the address of your smart contract and funding it with enough [02:43] Ether. Right here, I'm funding the bot by sending some Ether into our contract. Personally, I'd recommend at least one Ether. That keeps gas fees from eating your profits and [music] gives the bot [02:56] enough liquidity to trade. One more thing, the more you send in, the more the bot can profit from the spread between two transactions. [03:18] the update liquidity balance function to check the total liquidity balance. There it is. The ether we deposited is now displaying in the total liquidity balance. All right, let's kick off the start bot function. [03:34] It takes a couple seconds for the bot to start and initialize. [04:04] trades while the AI scans the memp pools in real time. Now I'm going to let it run continuously. The AI will search for profitable trades for a full day. Then profitable trades for a full day. Then we'll check back for results. [music] [04:24] going by itself for around 24 hours now. Sweet. You can see the bot actually probably down to congestion on the Ethereum network plus gas fees given it depends heavily on stable coins mempools. Now, to take out the [04:39] liquidity, the bot needs to be stopped. Run the stopbot function and hold on Run the stopbot function and hold on while it finishes. [04:57] liquidity function. That can take up to 30 seconds, so sit tight. [05:32] [music] folks. That covers the whole walk through. If you want to run it description has you covered. [music] Please comment, subscribe, and I'll catch you guys in the next video. See you.