Short answer: Jordan Metzner says the bot sends the IBIT price, his portfolio and risk settings to ChatGPT every thirty seconds, and ChatGPT decides whether to buy or sell. He built it in Replit in about three to six hours.
From Episode 8: Can Public Make You a Better Investor?, starting at 3:58.
Jordan Metzner [3:58]: Okay. So I was getting too aggressive, so I had to stop trading. But, essentially, the way the trading bot works is it leverages the public API as well as ChatGPT. And I built actually the entire app in Replit. I think total build time was probably somewhere between like three to six hours total. I vibe coded the whole thing, so I didn't all of the public API was pretty much available within, like, Replit's, like, knowledge base. When I wanted to do certain things, I kinda copy and pasted certain things from the public documentation. Let me just tell you how our system work. What it does, it reads the price of a certain stock. In this case, I chose IBIT, which is the Bitcoin ETF. And then what it does is it sends that price plus how much money I have in my portfolio and how much risk I wanna take over to ChatGPT. And then ChatGPT actually does some analysis and decides whether or not I should buy or sell. And then once it does that, you can see here ChatGPT is making different confidence intervals. Here, I think it has every thirty seconds I have it running. So it'll go in ChatGPT, tell it about the price, tell it about my portfolio, tell it about how much units I have currently.
Jordan Metzner [5:13]: I also have in my settings, I have a stop loss percentage, so I make sure I never run out of money. I kinda have a percentage of max size position. I also can change my aggressivity levels, etcetera. And I have kind of a float available like in my algorithm. So if I don't like run out of I never can run out of money. I always have like a little extra cash on hand in case like the market goes like really to the upside where I wanna make a buying decision. And not all the pages like work perfectly, but most of them should work. I kinda did some like AI predictions, so I could I guess this one doesn't work perfectly, but so it's kinda predict like how well this will work. But I have kind of all the technical performance and live monitoring, and then here's my dashboard. And then here inside the public account so what you can see is, essentially here it started to buy shares and sell shares and buy shares and sell shares, and it just kinda went a little bit crazy.
Jordan Metzner [6:10]: So after it bought and sold four shares today, where it looks like I lost about 11¢ in the trade, I turned it off because we were gonna do the episode, so I didn't want it to go too crazy. And then I got two more little bits, so I built it all with Replit. That's actually doing all the front end and the back end. And then ChatGPT API, I've got it in dark mode, light mode, and then my favorite mode, disco mode. Party mode.
Jake Trefethen [6:41]: I love this. Alright.
Jordan Metzner [6:45]: What do you think?
Jake Trefethen [6:47]: They should make disco mode a default option on all browsers.
Jordan Metzner [6:53]: Okay. On all web apps.
Sam Nadler [6:54]: Yeah. Was the feature Jordan was most proud of.