[00:02] we can spot some profitable transactions it made on the Ethereum network. So, essentially, when the bot notices price differences on stablecoins mempools, it runs arbitrage trades to profit from the spread. If you [music] like this kind of [00:15] video, please leave a like. And now, let's begin the tutorial. Hey everyone. In this video, we're going to set up this Python trading bot I built with AI. For this, I'd suggest checking out the free guide I put [00:27] covers every step and link you'll need to get the bot running. To get started, you can use MetaMask to interact with your bot, just like I'm doing here, or you can pick another compatible browser [00:39] wallet, such as Trust Wallet or Phantom Wallet. You can also follow this built-in browser inside your mobile wallet app. linked in the description. It's built for developers who want to build and run [00:53] projects on cloud-hosted servers, and we'll be using it to host our bot. The first thing we need to do here is create our bot file. So, go to the files explorer tab, [music] click the new file button, and give it a .py extension. [01:07] I'll call mine bot.py, but you can use any name. Next, grab the Python bot code from the guide in the description >> [music] >> and paste it into the code editor. [01:23] tab and hit the compile and build button, which will download the button, which will download the dependencies and compile everything. [01:43] once the build is successful, head over to the deploy tab. environment button [music] to deploy your bot container on the cloud. [02:10] >> Nice. The deployment is now finished. The console has also popped up with all start interacting with it. At this point, the bot needs a smart contract on Ethereum before it can make any transactions. If you've already got one, [02:23] just paste its address into the loaded smart contract field. But since this is a fresh deployment, we'll need to deploy the smart contract on Ethereum mainnet. So let's make one by clicking the load smart contract function. You'll find [02:36] that deploying a contract is pretty cheap these days. It usually costs around 50 cents. Great. Now we can confirm that our smart contract has been deployed successfully by checking it on the Etherscan link. Here, [music] we can [02:49] see our smart contract is deployed on the Ethereum network, and we can also confirm that we're the actual owner of our bot smart contract. Heading back to the website, the next step is to fund our bot smart contract with enough [03:01] liquidity to trade. So to start, copy your smart contract address and deposit enough ether into it. Now I'm going to deposit some ether into our contract to fund the bot. My recommendation is to use at least one [03:15] ether, which makes sure your bot doesn't burn through profits on gas fees and has enough liquidity to trade. Keep in mind, too, the more you put in, the more profit your bot can earn from the spread between two [music] transactions. [03:45] use the update liquidity balance function to check the total liquidity function to check the total liquidity balance. deposited is now showing up in the total liquidity balance. Now, let's get it [04:00] going by using the start bot function. [music] [04:19] It might take a few seconds for the bot to start up and initialize. [04:36] I'll let it keep running on its own to search for profitable trades over the next 24 hours, and then we'll come back to check the results. to check the results. >> [music] [04:53] >> We're back after letting the bot run on its own for 24 hours. generated a fair amount of profit. This probably comes down to how congested the Ethereum network is along with gas fees, so it really depends on the stable coins [05:08] mempools. Now, to withdraw the liquidity, we'll first need to stop the bot. To do that, we'll use the stop bot function and wait for it to finish. [05:30] liquidity function, which can take up to 30 seconds. So let's wait. [06:07] now back in our wallet. And that's pretty much the whole tutorial, guys. If check out the free guide I left in the description. Please drop a comment, hit subscribe, and I'll see you in the next video.