2outube
Plus Search Batch YouTube
Transcript

I Let Claude Build a 5 Minute Polymarket Bot (i give it to you)

All Moon Dev transcripts →

Tip: change youtube.com to 2outube.com on any video.

Summary

This video demonstrates how to build a 5-minute BTC up/down trading bot for Polymarket using Cloud Code. The bot's strategy relies on identifying positions close to liquidation and triggering trades based on liquidation events, with a focus on specific liquidation sizes and proximity.

Key points
  • The video explains how to build a 5-minute BTC up/down trading bot using Cloud Code.
  • The bot's core logic involves monitoring positions near liquidation (within 0.5%) and waiting for a liquidation trigger of a specified minimum size.
  • The bot aims to predict the direction of the market based on whether a long or short liquidation is imminent.
  • The code for the bot is made available on GitHub under 'Polymarket trading bot examples by Moon Dove'.
  • The creator emphasizes the high-risk nature of these 5-minute markets due to implied high leverage.
Chapters
Notable quotes (4)

“I'm going to show you exactly how to build out a 5-minute market bot for Polymark.”

“And then I want you to use that as the side to either buy or sell to.”

“The trigger is going to be, "Oh, shoot. Someone just got liquidated for X amount."”

“I haven't personally cracked these 5-minute markets on Polymarket. So, be very careful with them.”

0:00Got a minute 19 seconds. We are up 67% with this 5-minute bot. I can have I already have her uploading all of the code to the GitHub, making it a one single GitHub here. I'm going to show you everything throughout this trade. The bot is in the bottom left here. You can see it filled the down here. So, let's see if it actually wins this position.
0:22Essentially, if you stick around, I'm going to show you exactly how to build out a 5-minute market bot for Polymark. I use Cloud Code. I explained the whole idea here. We're up 73% but I got to hold on for 43 more seconds, 42 seconds, 41 seconds. It needs to be under 867. It's at 8:13 now, so we have a good chance. If you don't know me my by now, my name is Moon Dev.
0:49I've helped hundreds of people just like yourself automate their trading even if they didn't know how to code. Throughout this, I'll show you exactly what the idea I built here today was with this BTC 5-minute up down bot. I'll show you exactly how to build it yourself. There are mad risks to this. It's a very dangerous game. I haven't personally cracked it, but you can see I am about to win the first of them. Now, I'll let this run all day. As you can see 73%.
1:18If you stick around, you're going to see exactly how to build your own 5-minute bot. You're going to see the exact idea that I used and somebody said, "Holy smokes. I thought I was thinking smarter about this until they heard the idea I'm about to show you." And I'll show you everything, short, concise here. And like I said, I'm getting all of this code on GitHub and I'll show you exactly where to get that GitHub as well. All right. So, today I'm going to go ahead and build a 5-minute BTC up down bot with Cloud Code. You can see I have multiple Cloud Codes here and
1:52it's actually going to be fairly simple because I do have an idea here and I'll go ahead and explain it. Go ahead and look at our recent ideas of how we are looking at people's positions. And essentially, I want you to wait until we are within >> [clears throat] >> .5% of somebody's liquidation. And then I want you to use that as the side to either buy or sell to.
2:26Okay, so if you see for example, if you see that we're .5% away from a long liquidation, then what you're going to do is you're going to assume we're going to trade downward. That that long will get liquidated. But, you're going to wait. You're going to wait to make that trade until there is at least a $5,000 long liquidation. Okay, so you see that there's a a long position within .5% away, and make that a variable, away from getting liquidated.
3:14So you know the direction we're going to go. Cuz we're closer to longs getting liquidated than shorts. You're going to use the Moon Dawg API. You can look at my other 5-minute bots to see how we use that API call. You're going to see that, right? Okay, so we have the right direction. Then you're going to wait for a trigger.
3:31The trigger is going to be, "Oh, shoot. Someone just got liquidated for X amount." That'll be another variable. It'll be 5,000 for now. The long liquidation specifically. So it's like, "Okay, well, the cascade may be started towards that big guy getting liquidated." And there needs to be a minimum size for that position about to get liquidated. And it needs to be over um 250,000.
3:57Now, let's make it over 100,000. And that'll be another variable. That's the people's people close the position API call. And yeah, that's the whole bot. So, some 5-minute markets it won't trade. It will only trade BTC. It will sit there and wait until it triggers. So, if it's closer to a short liquidation, then we would wait for that short liquidation to come in. One short liquidation of say 5,000 and assume that there's going to be a cascade. So, essentially it's just sitting there looking at people's positions, seeing where the big position is we're closest to, and then it's waiting for the trigger of a small liquidation
4:41to happen before it triggers the actual trade. And then it just buys the upper down. Down if we think it's going to go down because of the there was a long liquidation and the position near liquidation is a long. And then up if we think it's going to go up if there's a where where within the 0.5% of the short liquidation and then there is a short liquidation.
5:07You hold until expiration, so there's no exit. Super easy to build. Go ahead and build that. Thank you. Okay, so now you have the whole idea of what I'm building. And now I just need to let her cook this up. I am using cloud code here, of course. And um yeah, this should be pretty fire. Now, there are some obvious warnings here.
5:32I haven't personally cracked these 5-minute markets on Polymarket. So, be very careful with them. I think the implied leverage here is very high. It's like 3,000, 4,000%. You can add or 4,000 X. You can ask your AI how that works, but essentially, since it turns over so many times every 5 minutes, it's a effectively using super super high leverage.
5:59So, it's a it's a bit dangerous. I will make sure to put this code here inside of the GitHub. There is a GitHub. If you just type in Polymarket 5-minute bot GitHub Moon Dove or I'll try to put it in the description as well. But you can see Polymarket trading bot examples by Moon Dove here. And there's already some great examples here of how to get this all set up. I should go ahead and just build this in there in that GitHub.
6:29But I'll go ahead and move that over here at the end. Because I do have that GitHub and maybe I can start working on that now. Let's see if I have it over here. This is my app that I use to organize everything. Polymarket trading bots Polymarket trading bots I think what I do is I move that over at the end. So, let's go ahead and get that GitHub ready here.
6:58Examples Polymarket trading bot examples Okay, there it is. So, I'm just going to go ahead and um have her send it over there when she's done. That way all that code will be there. See that she's working through here building out that exact idea that I just described. Now I'll just wait for her to be done. Data probe confirmed. Both feeds are live and exactly what your spec needs.
7:28Now building beautiful. I'm going to put the keys in the chat again. See there's some new people here. So, welcome in. All right, so she has completed it. You can see that she built out the lit cascade trigger here. I already explained the idea. uh only. It looks for the 0.5% within the liquidation price. So, how close are people to get liquid to being liquidated? You can see right here, for example, this guy's 0.3 % away. This guy's 0.5% away.
7:54Uh this guy's 1.8, so I assume they're going to be trading downward. We'll see. Um the trigger here, it sits and does nothing until a single liquidation. Actually, we won't sit see. I know that for a fact because I built it into her and I gave her the idea. So, we'll see what if she actually executes it. But, now I'm going to go ahead and start running this. I do have another prompt I just gave her, but um yeah, I'm going to start running this and see how it works.
8:19So, let's go ahead here and figure out what the name is, lit cascade trigger. Okay, so let me just go ahead and open up in cursor my bots here and you can see it's under August 10th cascade. So, if I go here and look at that, she knew what day it was. So impressive. So, here's August 10th cascade trigger here.
8:44And like I said, I'll get it on that GitHub here. But, here is all of the code. Now, I'm just going to get it on the GitHub because this is too much code to be going through here. I don't think I don't want to bore you with just going through code. Uh so, I'm just going to say copy path. I'll put it on that GitHub. Uh you already know where the GitHub is. Let me say copy path here.
9:04Let's go ahead and get this running over here because this bot is um CD here, okay. Let's go to Polymarket trading bots. I just hit command T, opened up a new tab. Let's say Tflow and then say Python, run it. Okay, it should start running now. So, lit cascade trigger paper mode. Oops, don't want paper mode. So, it did automatically build paper mode in there, but I don't do paper mode simply because I just use small size. So, you can see $5 size, I'm not going to die from that.
9:39Now, if you're in a situation that you would die from losing five bucks, then use paper mode. But, you're going to have different fills. That's the problem with paper mode, in my opinion. And um I follow process of researching, backtesting, and then incubating. This would be incubating a bot here. Small size, it's not going to kill me. You can see lit cascade trigger spinning up live on August 14th, new windows 11:55.
10:05Okay, it's in that window. Armed down 160 uh 36K long, only 0.13% away from liquidation. Okay, great. So, now it's going to wait for a liquidation to happen, and when that liquidation happens, we will go ahead and see it trigger here on the newest market. So, you can see these markets change every 5 minutes. I will explain that. I hope I explained that enough about how much leverage this is. You can see here it's not going to get a trade in this window until there is a liquidation uh downward. So, a long liquidation. So, let's go ahead and wait for that to be done and um keep cooking.
10:42All right, so we have successfully completed it. It has taken its first trade. Time left is 1 minute and 51 seconds here. I'm adding it to the GitHub as we speak. So, it's to the lit cascade trigger. When you do google.github, I'll try to make sure it's in the link below, but you can see it's running here. It's already filled one of these positions here. There's 1 minute and 31 seconds here. We are up 60% 58%. So, yeah, this is um this is that.
11:15All right, so this is the second trade here, and it looks like we need to get a down here, and it looks like this one's actually going to end in a loss. But, the good news is is one win, one loss to start, and I just pushed this to GitHub. If you go ahead and hit refresh here, you can see now, new bot.
11:33New bot, who this? If we go to it, you can see that this is the bot that we just built. It's near lick trigger. So, boom. It explains the whole bot. It's on the GitHub. Just type in Polymarket trading bot examples by Moon Dawg, or I'll try to put it in the description as well. I'll see you tomorrow in the Zoom if you want to come through. It's moondawg.com.
11:56Every day I do the Zoom and I give out the free API key and a bunch of bonuses in case you missed this whole build out. You got it there and you got the GitHub.
Works on any YouTube video. Swap youtube.com for 2outube.com in the address bar — or paste a link.
Read another video
I Let Claude Build a 5 Minute Polymarket Bot (i give it to you)

Email this transcript

The full transcript as Markdown, straight to your inbox. Nothing else — no list, no follow-ups.

Keyboard shortcuts

Search the transcript/
Copy plain textc
Slow down / speed up[ ]
Show this help?
Close / clear searchesc