I Built a Trading Bot to let Subscribers Trade $25,000 on Twitch

Joma Tech| 00:12:28|Mar 26, 2026
Chapters8
Outline of building a Twitch chat driven bot to trade stocks via an API using followers to place orders.

Joma Tech shows a chaotic but fascinating attempt to let Twitch chat trade real money via a Twitch bot and an Interactive Brokers API, highlighting real-world pitfalls like PDT rules and commissions.

Summary

Joma Tech’s video chronicles a bold experiment: letting subscribers trade $25,000 of his money through a Twitch chat-driven bot. Justin, aka Joma, explains the plan to route chat commands like buy AAPL or sell GME through a separate trading bot connected to a brokerage API. He starts by wiring $1,000 to Interactive Brokers to test the waters, but quickly reveals the catch: the account gets labeled as a pattern day trader, pushing the required balance up to $25,000. Despite the hiccups, the live test sees followers place orders in real time, with Joma narrating the process and showcasing the dashboard, the commission costs, and the portfolio updates. He experiments with the tech stack—building a Twitch bot using the official Twitch dev samples and hooking it to a trading API—while documenting the friction of API authentication and account restrictions. The clip also candidly discusses the compounding effect of commissions, noting that Interactive Brokers’ fees can erode profits even if the trades themselves perform. By the end, Joma muses about user engagement strategies, from voting mechanics to a fixed 30-minute trading window, aiming for immediate feedback and real-time gratification. The video closes with reflections on profitability, the limitations of tech choices, and a cheeky tease about next-year results. Throughout, Joma’s tone mixes curiosity, humor, and a cautionary eye on the regulatory and financial realities behind live-money experiments.

Key Takeaways

  • A Twitch bot can route chat commands to a trading API, enabling live buy/sell actions on a brokerage platform.
  • Interactive Brokers triggered a pattern day trader restriction, forcing a $25,000 minimum balance to enable day trades under the PDT rule.
  • Commissions can erode profits even when trades move in the expected direction, highlighting the cost of real-money testing.
  • A 30-minute daily trading window was proposed as a compromise to keep the experiment engaging while managing costs and risk.
  • Testing revealed the complexity of connecting Twitch chat to a trading account, including token handling and initial account lockouts.
  • The experiment sparked ideas like a top-voted stock-picking system versus instant execution, balancing audience interaction with real-time feedback.
  • Despite challenges, the video demonstrates the appeal and risks of crowd-driven investing and the importance of choosing the right broker and limits.

Who Is This For?

Essential viewing for aspiring fintech streamers and developers who want to understand the practical hurdles of crowd-sourced trading, API integration, and the PDT rules, plus the real-world costs of live-money experiments.

Notable Quotes

"Order filled. Order filled. Order filled."
Early demonstration of automated trades as the bot executes orders.
"we're going to let the public test it out and play with my $25,000"
Cuts to the scale of the experiment and the PDT-related funding requirement.
"The goal is to be able to be to get a positive return."
Stakes and motivation behind the trading test.
"The only reason why we lost so much money right now is just because of the commission."
Highlighting how fees impact profitability in live trading.

Questions This Video Answers

  • How did Joma Tech implement a Twitch trading bot and connect it to a stock API?
  • What is the Pattern Day Trader rule and why did it force a $25,000 balance?
  • Why do commissions matter so much in a live trading bot experiment?
  • Can a Twitch chat-based system truly execute trades in real time for followers?
  • What were the main technical and regulatory hurdles in Joma Tech's trading bot project?
Twitch botInteractive BrokersPattern Day Trader (PDT)Crowd-sourced tradingTrading API integrationReal-money experimentJoma CapitalStock trading automation
Full Transcript
Order filled. Order filled. Order filled. Order filled. Oh my god. Look at the Look at the trading. Order filled. This is all the commission. So, we've already spent like $300 of commission. Today, we're going to be building a trading bot that lets Twitch chat trade $1,000 of my personal money. You might be wondering, wait, the title says $25,000. What gives? Well, initially I wanted to only trade $1,000, but I ran into issues where it forced me to put $25,000 into my account. You'll see why later. What better way is there to get closer to my subscribers than to let them manage my money? Okay, let's start. To build this, we need to create a Twitch bot that listens to messages. And whenever someone writes a command like sell Apple or buy GME, it will route the request to our other bot that will connect to the stock trading API and execute the orders. That's it. It's pretty easy, is it? Yeah. Yeah, it is. It was not. Now, I did a ton of research on various trading platforms, and I believe that Interactive Brokers would be the best fit. That was also untrue. So, I registered for an account, answered a bunch of questions about my trading experience, registered a cool ass username, and now all I have to do is put $1,000 into this account. I wired the money and now I have to wait a few days for it to clear so we can play with the platform. So, uh, I'll see you in a couple of days. [Music] Okay, money is in. Let's uh open up the trading platform. Cool. Cool. Cool. I have no idea what any of this is. Uh, let's watch a tutorial. Wow, trading is so cool. Let's play this again. Anyways, um the first thing we'll do is try to write a program to buy and sell stocks through code instead of using the interface. And to do that, we'll use their API. [Applause] Okay, great. When we run this program, it's supposed to buy one stock of Apple. Let's see if this works. it's supposed to buy one stock of apple. Water filled. Perfect. Worked on my first try. Awesome. Now, we have to create a Twitchbot. Uh, what we'll do is get the official code sample from Twitch devs. Make sure I understand it before I copy it. Mhm. Mhm. Mhm. I know some of these words. Okay. All right. Now, I get my access token, change the channel name, print out the messages to make sure it works. Mhm. Oh, excellent. As you can see on the right, it's on the terminal. Uh, let's do a few more. All right, cool. That works. Um, let's now try to let's now connect the two uh so that Twitch chat can buy and sell stocks. All right, cool. Montouch time. All right. So, um, we have a problem. Um, I woke up this morning and my account was locked. So, I I I tried inputting some orders and I got an error saying um order rejected. Reason potential pattern day trade. So, apparently a pattern day trader is someone who buys and sells a particular stock in the same trading day, which is what I was doing when I was testing my code. And even if I'm not testing, I would want my followers to be able to buy and sell the same stock within the same trading day because it's more fun. It's more interactive. But apparently, it's it's a rule by the SEC that if you want to day trade, you need the account to maintain at least And $25,000 is a lot of money. Like I don't I don't really know what what I'll do, but Hello. Yeah. Yeah, it's me. Yeah, I'm okay. You? Uh-huh. Yeah. So, it's possible. Would I get double if I sell both my kidneys? Oh. Oh, you can't. I see. Okay. All right. All right. So, today is the day. Uh, we're going to let the public test it out and play with my $25,000. As you can see, I got TWWS opened up and I got my graph here that I made. As you can see, it just fills it fills the void. Yeah, that's cool. All right, let's go live. Autofilled. Don't go too crazy. It's actually whatever. Who cares? Okay, so basically you guys um you guys can see here these are all the uh trades that happened. And then this is your chat. This is the news. I don't know. It's not that important. And then this is your portfolio. This is what you have. All right. Dude, the goal is to be able to be to get a positive return. During this test run, we didn't run into any technical difficulties. Surprisingly, it worked as intended and people were buying and selling stocks. However, I did notice that my profits kept declining and that was because of commission. This is why interactive brokers might not have been the best choice since they charge a minimum of a dollar per trade or a max of 1% of the value traded. I thought about creating a voting system where people can vote on which stock to buy or sell every 5 minutes and after that the top voted action gets executed. Unfortunately, I think that's kind of boring. You don't get to see your trade immediately executed because all you can do is a vote. People need to feel like they're contributing in real time, right? And and it's satisfying when um when the moment you place your order, it gets executed. So, you get that immediate feedback. It's it's so fun. It's it's it's what Twitch Live is all about, right? So, I think I decided that I'll enable trading for just 30 minutes a day where they can go crazy and I'll just eat the cost, whatever, cuz that's just more fun. And also, how many orders can they possibly place in 30 minutes? Yeah, I think that's what I'll do. filled. Order filled. Order filled. Order filled. You have to You have to start selling, guys. You have to start selling. You have to start selling. All right, let's sell Google. We have too much Google. We have eight Teslas, seven Teslas, five SNDL. I don't even know what that is. Four ABCs. Okay, we're going to stop it now. Abort. Water filled. All right, good job, guys. I hope you had fun. Wow, look at all this. Look at all this. All right, share your script. I want to lose money. To be honest, we actually did pretty well. I mean, the only reason why we lost so much money right now is just because of the commission. If we don't take commission into account, I'm pretty sure we didn't do that bad. You know, we're buying like normal stocks, I guess. Oh, whoever whoever bought Melly Mi, we just made 2.8% on that trade, right? So, that's pretty cool. Oh, we're making money on Nvidia. We made $12.95. So, after all the commission and stuff, if you guys look, dude, we're making we're making profit. Like, it's going up. And then maybe next year on my next birthday I can show you guys uh how much you guys made, how much we made together as a um as a team. So to be honest, to be honest, our portfolio is not that diverse. Our portfolio is only Amazon, Nvidia, Google, Tesla, and basically these are tech companies. It's it's not that out of a question that we're going to be we're going to make a profit in in a year. The reason is because we're just tech stocks. Basically, we're invested in tech companies. And it's because And it's because you guys just you guys are in tech. So the so the o so the only stocks you guys know are are are tech stocks and also because they're expensive. So they take most of the portfolio. Yeah man. You guys you guys are the best. You know JMA Capital or JMA subscribers Capital or JMA. Thank you for uh investing with me and I'll see you in a year to see uh how much money we've made. But yeah, I thank you for all the birthday wishes. You guys are uh you guys are very nice. You know, a great start to my day. I just woke up, by the way. I woke up at 12:00 today, aka 2 hours ago. But yeah. All right. Have a great day, guys. JMA, what are you doing on Twitch? Justin, just Justin Justin Khan, co-founder of Twitch. What are you facetiming me for? I'm going to be honest with you. You should probably stick to YouTube. It's a little bit embarrassing that you have no views even with 25K on the line. Well, I think you should stick to just being a VC. It's kind of embarrassing how small your YouTube channel is. That's Dude, that's so that's so mean. So, you want to collab? Sure, let's do

Get daily recaps from
Joma Tech

AI-powered summaries delivered to your inbox. Save hours every week while staying fully informed.