Create AI Crypto Trading Bots (Bitcoin, Ethereum, Dogecoin & more) β
Let's build with Zapier and AI (100+ videos)π
2025-02-22
Transcript β
[00:00] but for now you know the steps and software is require to set up a fully functional AI agent trading bot choose your crypto Buy sell bullish bearish let's find out let's create an AI trading crypto bot that's going to allow us to trade anything you see to the left here all that good old crypto anything Corbin anything we're going to be able to trade Bitcoin ethereum and don't worry we're going to get some meme coins in there like Dogecoin if that all sounds good let's go ahead and jump in today's video Welcome Back y'all in today's video we're going to be setting up an AI crypto trading bot that's going to be able to trade on our behalfs
[00:30] whether we are asleep in the ocean in the mountains wherever it may be today's video is sponsored by zapier as we've teamed up and we've decided we're going to hit head on a bunch of cool topics that you actually want to see and this one right here based off my other stock trading video which I'll leave in the description down below was highly requested the amount of comments I got say cor I need to see how to do this with Bitcoin ethereum and trust me there was a lot of meme coins in there as well so let's go and figure out how to do this best part is this going to require no coding just prompting and the first major software we'll need is zap your
[01:01] agents which is everything behind me so I'm going to leave the first link in the description giving you the ability to do this for free click it get going the next software we're going to need to use is alpaca the reason we're going to use this is this is what's going to give our AI agent the ability to even trade on real markets therefore go ahead and create your alpaca free account as well I'll leave in the description down below I'm also planning on doing a video on options so make sure to subscribe here as that will come out pretty soon as you can see from the stock video we went ahead did the analysis with the AI trading mod and bought some CVS and not
[01:32] to brag but we're already up 22% oh yeah that's $117 of profit no red only green let's going to begin start from scratch in our previous video we created a stock trading bot based off how politicians are investing in the market in this video we're going to create a more lasered in version of this bot specifically giving it a edge in the sense of whether it's bullish or bearish on the way it trades so let's go and begin here with run Behavior create Behavior as we need to create a behavior that's going to allow our trading Bo here to actually sell and buy crypto in
[02:02] this video I'm going to show you how to do with Bitcoin but in theory you have access to a ton of other cryptocurrencies I'll go ahead and leave a help article in the description that shows everything alpaca has access to and that's going to be your limitations of what kind of coins you can trade let's do it though now when creating trading Bots there is a whole plethora of different ways of approaching the logic of what constitutes a buy and a sell in reality typically you're going to want to give the trading bot a bullish or bearish kind of edge for its underlying opinion therefore the behavior we're going to give this trading bot is going to be very bullish
[02:33] this is your discretion though if you feel like cryptocurrency Bitcoin you're bearish on it for the next 6 months then you would just take my same logic and reverse it but assuming we're going to be bullish here let's do bullish crypto the On Demand is we're going to set a schedule by zap year this allows it so that me and you don't have to keep logging in and telling the trading bot what to do no no just just do something okay I just want you to do something now the one thing about crypto that's different than stocks is that it's traded 247 365 Around the Clock therefore we can do every day here and then the discretion of time of day is
[03:05] completely up to you so I'm going to just do 8: a.m. this is going to run the behavior of all the logic you're about to proceed here at 8: a.m. every day make sure to show more options here and say trigger on weekends because we can trade on weekends save therefore let's set up the very first step here of what our cryptobot should do When approaching a trade check this website semicolon parenthesis I'm going to personally give the coin market cap as the thing it's going to scrape data for when it comes to pricing in reality this could be any website you could quite literally put
[03:36] the link to someone's X profile here if you want to follow their trades or alternatively do what we did in the stock video where we found a very specific type of trade which was a politician trade for now though we'll go with the general idea of just what's the price what's the percent Etc now when creating these trading Bots what I like to do is every step let's just gut check it and make sure it's actually working so coming back over to coin market cap we should see a price around 9 $9 6,418 outputed therefore save instructions and test let's see if it can do it one very very powerful thing
[04:07] about our AI agents with zapier here is its ability to scrape data from websites this kind of functionality is extremely valuable and really easy to access through zap year okay so it's going to the coin market cap site let's see if we see something around 96,4 18 and there we go 9636 because as you know of crypto it's very volatile if you didn't know that then I guess you just learned something new today we are not trading bonds and CDs right now we are trading crypto for us to create a trading bot that has context of its previous trades we're going to use a tool within zapier called
[04:39] storage so we're going to say insert action and we'll do storage here storage by zapier and what we're going to choose is set value we're going to go ahead and click this and let's go ahead and change some stuff here first major thing we need to change is we need to set a fixed text for our key here what do I mean think of this as this is where we're going to be making multiple entries of the Bitcoin price that we're going to use in later on log I another way of thinking this is just like a very easy Google sheet like hey today's price was XYZ tomorrow's price is XYZ we're going to be able to cross reference this so
[05:10] I'm going just call it bitcoin price scrolling down here we're going to want the agent to generate the value for this right because obviously the price changes depending on the days we're going to hit save here therefore this leads to the next step here which means that if we have an actively live trading bot here we need to make sure that we're always selling when we're in the positive you know the old saying Buy Low sell high this situation so we need to check our most Rec purchases same situation near insert action data table or storage and what we're going to do here is we're actually going to get a value now click this and this is going to be a different key we're going to set this key to purchase Bitcoin this is the
[05:42] amount we've purchased in the past at the very specific price point let AI do that field and we'll move to step four now in step four this is where we're going to have to add conditional logic so I'm going to read it in text form and then I drew it out on a whiteboard so it makes a little bit more sense but the idea is this if the price you set in step two the current active price is low lower than the price we find in step three which is our previous purchases then we're going to go to step five and step five is going to be buying because we are in a bullish edge here this is the way we're trading this bot but if the price in step two is higher than the
[06:13] price you find in step three therefore let's say you bought at 85 but now the price is 90 we're going to go ahead and Skip to step six here which will be a sell and finally we're just going to add one little caveat here assuming we're just starting this crypto bot where if no price exists in our little price catalog here then we are going to go ahead and Skip to step five and just default to a buy let me just walk through this Logic on a whiteboard so this makes more sense so we have our current active price let's just say right now Bitcoin is trading for 90,000 we just got this data it's fresh this is going to go to step three which is going to check our price catalog of our
[06:45] previous purchase price assuming we bought at $95,000 we're going to be at a deficit for 90,000 and because we're making this trading bot bullish we're going to go to go to step five here which will be buying more Bitcoin basically we're doubling down because in theory if you are in a bullish bias you are assuming that you're going to see higher and higher prices now what's the flip side of this if the live data reads 990,000 we'll go to step three check our previous purchase catalog and if it's 85,000 which means we bought 85k
[07:15] therefore we're in a positive trade here we're going to go to step six here which will be a sell therefore when it comes to schedule by zapier or trigger here you may want to opt for maybe a longer duration like check every week rather than every day but this is completely up to your your discretion let's get going here let's give rot the ability to even do these actions so we're going to say set five here which is a buy go ahead and purchase more Bitcoin using this action and we're going to say insert action this is where alpaca comes into play alpaca and we are going to buy an order place order let's go and click it and let's check it out so our symbol is
[07:46] going to be very specific field BTC and then the side we're taking because we bullish here is going to be set a specific field and will be buy and then the quantity is obviously up to your discretion so what's your budget how much do you want to put in a trade how much you want to take out of a trade Etc so for now we'll put 0.1 Bitcoin everything else we can kind of leave as is and hit save so this is going to buy Bitcoin in a trade so once we actually buy the Bitcoin we need to set this value in our purchase catalog so we're going to go ahead and hit insert action we're going to go to storage by zap here again and we're going to choose set value click it and not bitcoin price
[08:17] we're going to be setting our purchase Bitcoin which is our key that we set earlier in step three so I'm going hit save here and just to confirm there we go purchase Bitcoin these have to be the exact same dictation letters etc for to reference the same data source so the logic that's incurring there is that anytime that we're in a deficit from original purchase price we're going to just keep doubling down Double Down Double Down double down that's why this entire trading bot has a bullish bias you want to see a more like analytical trading bot I encourage you to check out the stock trading video that I have in
[08:49] the description which bases its trade not necessarily on bullish or bearish but on sentiment in the market analysis of Articles trades that are being made by government officials although if we're winning in the trade you can go and sell so insert action we're going to do a Paca again come down here we're going to say placeholder click it we got Bitcoin here nice instead of buy it's going to be sell and I would suggest using the same increment so there's no issue there so we'll do 0.1 save so effectively what we just did right here is we created conditional Logic for our bot to follow to a and that's what makes
[09:19] AI agent super cool as in reality to code this out it would require a lot of python so let's go and try it out save instructions retest result so first thing he's going to do is going to grab the live active PR of Bitcoin and because of how our logic is set up here this is going to initiate a buy because nothing exists in the purchase catalog as of now so determine the next step here perfect so right now it's storing the value of the current price and there we go it is currently placing the order it's going to give me a confirmation I'm going to hit approve and as of now it would have executed but one thing to know about aaca here is in order for us
[09:49] to make live trades we can't actually use a paper trading account essentially when trading with zap your agents and out pocket API you got to do it a live money account so just put a couple dollars in there just to play around with it although what you'll see here is pretty cool our logic got fleshed out pretty nice here in the sense of that it found the current price it stored it in zapier it successfully cross referenced and checked whether the price was good or not and then obviously based off our logic here it wanted to execute a buy order but right now alaca doesn't allow buy orders or sell orders or any type of
[10:20] orders in a paper trading account so to truly flesh this out and try it out we would need to open a live trading account put in some money and proceed now when it comes to this logic right here one thing to note is that this could be reversed right so if we're bearish we could short Bitcoin sell on it and do whatever you want one you should probably whiteboard it out on the way you want your trading bot to function and then translate that into text that you can input into a zap your agent but to these branches can get very very much more complex in theory we could add a threshold here where even if
[10:50] it is going to want to do a buy we could add some type of blocker here that's like we'll look up current news about Bitcoin and see why the price is down or see why the price is up before making your decision this extra layer of insurance can basically help you out in situations where maybe you don't want to trade purely on price but add a little bit extra layer of complexity to your AI agent so for what I'm about to say obviously I'm not a financial adviser so this is not investment advice when setting up this buy I'd probably opt for a longer duration rather than day-to-day unless you're dealing with a very volatile crypto typically you're looking
[11:21] at a week here so like every Monday run this kind of trade but for now you know the steps and software is required to set up a fully functional AI agent trading bot choose your crypto Buy sell bullish bearish let's find out if you felt like you learned something make sure you leave a like it's completely free and I'll see you in the next video AI crypto trading bot two random videos that's my face I'll see you in the next video