I Built a Hedge Fund Run by AI Agents

Поділитися
Вставка
  • Опубліковано 23 тра 2023
  • I Gave an AI Hedge Fund $1000 to invest with and in this video i'll explain how we built the trading algorithm and what the returns looked like after 24 hours of live trading. First, a disclaimer - Do NOT invest any money in any type of trading bot or algorithmic engine that you are not willing to lose. I gave this trading bot $1000 because I was willing to lose $1000 to make a great video for my AI Wizards out there. AutoGPTs are the latest trend in AI research, they involve giving large language models permissions to perform actions in the digital world via web browsing, and the physical world via robotics. I continually try new experiments with AI applied to trading and in this latest one i use a LangChain agent called GPTeam for trading, the Serp API as a real-time news feed, Alpaca for trading, and the GPT-4 OpenAI base model drives all of this. Let me know what you think in the comments and if you want to see more videos like this.
    Code for this video:
    github.com/101dotxyz/GPTeam
    Please Subscribe! That's what keeps me going.
    Want more AI/ML education? Connect with me here:
    Twitter: / sirajraval
    Instagram: / sirajraval
    Facebook: / sirajology
    Linkedin: / sirajraval
    Trading Interface:
    app.alpaca.markets/
    I Built a Trading bot with Bing and ChatGPT:
    • I Built a Trading Bot ...
    I Built a Sports Betting Bot with ChatGPT:
    • I Built a Sports Betti...
    I Built a Trading Bot with ChatGPT:
    • I Built a Trading Bot ...
    Watch ChatGPT Build an AI Startup:
    • Watch ChatGPT Build an...
    Watch ChatGPT Build a Finance Startup:
    • Watch ChatGPT Build a ...
    Learn Machine Learning in 3 Months:
    • Learn Machine Learning...
    Join the discord:
    / discord Join my AI community: chatgptschool.io/ Sign up for my AI Sports betting Bot, WagerGPT! (500 spots available):
    www.wagergpt.co

КОМЕНТАРІ • 103

  • @jsalsman
    @jsalsman Рік тому +36

    Day trading isn't a typical hedge fund strategy.

    • @atrumluminarium
      @atrumluminarium Рік тому

      It's not that rare

    • @cwaddle
      @cwaddle 11 місяців тому +1

      Why wouldnt they day trade???

    • @jsalsman
      @jsalsman 11 місяців тому +1

      @@cwaddle Their signals aren't significant enough to warrant a trade every day. Sometimes they get two trades in the same day, but most of the time it's far less frequent. Of course that applies to Renaissance-style hedge funds and there are others doing arbitrage which might trade multiple times per minute, but those aren't traditional hedge fund vehicles for the most part.

  • @williamhay61
    @williamhay61 Рік тому +5

    Always love watching your videos. You take ideas I think about in my head but actually execute them and it’s fun to see how they play out.

  • @studio-1180
    @studio-1180 Рік тому +2

    Siraj! Been rocking with you since '19 - love your innovative, insightful shows bro🔥🔥🔥Keep it goin'! This is next level ish right here!🤯 Thank you for being you💯

  • @Motivation2Invest
    @Motivation2Invest Рік тому +2

    I love the portfolio manager description! 😂

  • @mrGapMan1
    @mrGapMan1 Рік тому

    You're a crazy man executing such an idea. I have to do something similar.

  • @12WeMet1
    @12WeMet1 Рік тому

    This is awesome man. Can’t wait to see how it turns out longer term

  • @janekwytrawek
    @janekwytrawek Рік тому

    great video! thank you. So i just need setup configure file with roles for my task and it will do autmaticly?

  • @nagibgonzalez5645
    @nagibgonzalez5645 Рік тому +15

    Just wanted to drop a quick note to say that I'm a huge fan of your UA-cam content! Your recent exploration of using large language models is mind-blowing. Your ability to explain complex concepts in a way that's engaging and accessible is truly impressive.
    I have a suggestion for a future video: have you considered incorporating stock options into your hedge fund strategy? While options may carry additional risk, they also offer the potential for higher profitability. Exploring their dynamics could provide valuable insights. Keep up the fantastic work!

    • @SirajRaval
      @SirajRaval  Рік тому +3

      Thank you! I will explore that concept

  • @DerklugePlayer
    @DerklugePlayer Рік тому +10

    There is a lot missing in that video. How did you make them execute the trades? Did you connect them using some broker API?

    • @anadianBaconator
      @anadianBaconator Рік тому

      he already made a video on this. He uses Alpaca

    • @SloppySalad
      @SloppySalad Рік тому

      @@anadianBaconator Have you got a link? I can't find it....

    • @anadianBaconator
      @anadianBaconator Рік тому +2

      @@SloppySalad you may need to fill in the gaps, i believe it is this one: ua-cam.com/video/fhBw3j_O9LE/v-deo.html&ab_channel=SirajRaval

    • @SirajRaval
      @SirajRaval  Рік тому +1

      Yes they make trades using the alpaca API in python

  • @RadiantBloom
    @RadiantBloom Рік тому +3

    I think you should add in 3 different AI research analyst each with a different out look on the market. Perhaps neutral, bearish, bullish then the quantitative analyst goes through and compares and contrasts each one of them and picks the best option then to make a trade. I take it to run this you need a plus subscription?

  • @DrJAke-qi4mx
    @DrJAke-qi4mx Рік тому +4

    Hello, love your videos; would you ever consider making a video doing a deep dive into how to make one of these for someone who has no programming experience?

  • @tweetymr
    @tweetymr Рік тому

    Very nice video. Thanks for the insights! One question: Do you buy stocks based on the agents ouput manually or do the agents buy them on there own? If the latter is the case, how did you give them access to the alpaca api?

    • @SirajRaval
      @SirajRaval  Рік тому

      The agents buy on their own by executing trades via the alpaca api by running python code in a colab window

    • @emmanueldomains2829
      @emmanueldomains2829 9 місяців тому

      @@SirajRaval I wish you do a video to demonstrate that? there very little info on the GPTeam deep dive out there but your video gives me more understanding.

  • @jzam5426
    @jzam5426 Рік тому

    thanks for the content! It'd be great if you were to add cost associated with building systems like this. For example, SERP API allows you a limited number of searches (i believe it is 100) and then you have a to pay a monthly fee for it

  • @keitasamba3259
    @keitasamba3259 4 місяці тому

    Thank you so much for your video and for sharing! Would it be possible for you to create a video explaining how to use an AI agent like Mistral/ or by using any LLM agent to achieve similar results?

  • @anadianBaconator
    @anadianBaconator Рік тому +1

    this is brilliant!

  • @and_I_am_Life_the_fixer_of_all

    Do you ever have conversations with agents and think about boltzman's brain hypothesis? Amyways, your results reminds me of gpt3 to gpt4 in terms of coding, maybe from 4-5 it'll be this easy

  • @roostermarques3583
    @roostermarques3583 Рік тому +1

    I'm going to watch this hole video just cuz I respect that hoodie😅

  • @prof1088
    @prof1088 11 місяців тому

    You're a genius, no doubt!

  • @Diallo268
    @Diallo268 Рік тому

    Good video thanks for sharing. I think they have conscious potential too. I believe ppl are too rigid in their thoughts of it. We should implement a standardized tier or level system.

  • @subodh.khamger
    @subodh.khamger Рік тому

    well, how do you connect to the trading platform, this video is kind of vague.

  • @potatonet
    @potatonet Рік тому

    love this kind of integration, would be useful fib plotting forex with these 3 together.

  • @KakarotSC
    @KakarotSC Рік тому +6

    Siraj at it again. Title starts with "I built a", you scroll through the video and all he does is clone other repos.

    • @SirajRaval
      @SirajRaval  Рік тому

      Yes but I credit them and repurposed the agents directives entirely.

    • @thamerrro4234
      @thamerrro4234 Рік тому

      @@SirajRaval you are still a fraud. I can just still by the look of your thumbnails and titles. Judging by your past, you may have never changed.

  • @dominus6695
    @dominus6695 Рік тому

    This but with crypto and hedge mode. The bot's task is to reduce or avoid losses with the hedging strategies and rebuys. Exiting at breakeven or profit. The bot learns through time and keeps an eye on the market conditions to adapt it's strategy.

  • @phils744
    @phils744 11 місяців тому

    Hello everyone, good explanation on the build of it. Be safe everyone

  • @BrutalStrike2
    @BrutalStrike2 Рік тому +1

    What are most interesting youtube channels about ai?
    ChatGPT:
    There are several interesting UA-cam channels that focus on AI and related topics. Here are some popular ones:
    1. Two Minute Papers:
    2. Siraj Raval:
    You are on second place in most interesting ai channels according to chatGPT!

  • @thiswayup.online
    @thiswayup.online Рік тому

    Thanks Siraj, I've seen several of your videos and I really found this video in particular useful because you broke down the terms, and gave a broader concept that guided some of your thinking.

  • @kanchnar481
    @kanchnar481 11 місяців тому +1

    Can you share your code on your github i m tried but not able to get proper response its coming error all the time. Thanks in advance

  • @nwokebright1126
    @nwokebright1126 Рік тому

    Hello Sir can you create a bot that is based on candle sticks pattern , which if I choose to buy it will keep on buying at a close of every bullish candle in a particular direction and if I chose sell it keep on selling at close of every bearish candle in a particular direction with a parameter of sell and buy, lots size , overall stop loss, overall take profit, spread filter, time and date filter, number of trades to open

  • @douglasbauer2076
    @douglasbauer2076 11 місяців тому +1

    did you make any profit?

  • @nandishajani
    @nandishajani Рік тому +1

    Hi @siraj can you tell us how the other bots you developed earlier are performing? Did you manage to earn any profit out of it?

    • @Siraj_raval-oficial
      @Siraj_raval-oficial Рік тому

      👆🏻Yes, of course.. if interested D.M for an automated A.I bot 🤖

  • @b3zta
    @b3zta Рік тому

    Hi Siraj, please do a tutorial for a trader using Langflow, flowise or SuperAGI, please 🙏🙏

  • @_inetuser
    @_inetuser Рік тому

    incredibly interesting 🤔🙂

  • @vinibp
    @vinibp Рік тому +6

    Congrats Siraj! Hope you do a following video next month sharing with us the results from your ai hedge fund. I'm very interested in the subject because I'm also running my own ai hedge fund "SP500 Quantitative Trading Factory". Cheers from Brazil

  • @ObayiBright
    @ObayiBright Рік тому

    I wonder if beyond here, there's a way to have a more personal interaction with you. Great videos as always

    • @Juksemakeren
      @Juksemakeren Рік тому +1

      curb your greed

    • @ObayiBright
      @ObayiBright Рік тому

      @@Juksemakeren Awwwwn. Thank you for your kind words

    • @SirajRaval
      @SirajRaval  Рік тому +1

      Yes I’ll start a dedicated community next month

  • @juliusaigner
    @juliusaigner Рік тому

    🎉awesome

  • @Andreas-gh6is
    @Andreas-gh6is 10 місяців тому

    One of the issues with this is that ultimately, a high frequency trading bot will discover your pattern and fleece you.

  • @tunafllsh
    @tunafllsh Рік тому

    > It's conscious
    💀💀💀

  • @nattyzaddy6555
    @nattyzaddy6555 Рік тому

    Were the personal details in the bio really necessary.. theres no way

  • @reydavid7300
    @reydavid7300 Рік тому +1

    I am doing this for an automated youtube channel lol

  • @nictanghe98
    @nictanghe98 Рік тому

    thx for the insult there.
    :D

  • @devfromthefuture506
    @devfromthefuture506 Рік тому +1

    'In the Mists of Raval's Legacy'
    In the land where legends dance on ancient verse,
    Where wisdom flows through lines, forever immersed,
    A tale of Siraj Raval, a name that now ignites,
    A firestorm of debates, with fervent days and nights.
    Born amidst the digital realm, his mind a shining star,
    A beacon of innovation, taking code so far,
    With words that charmed, he weaved his tech domain,
    And countless souls were drawn to his digital refrain.
    But like a phoenix soaring high, he faced the test,
    Controversies swirling, challenging his crest,
    A storm unleashed, as critics raised their voice,
    Questioning his motives, leaving him no choice.
    Yet the land of ancient sages holds a nuanced view,
    A tapestry of shades, where stories can accrue,
    For Siraj Raval, a tale of light and dark entwined,
    Where truth and shadows dance, seeking solace undefined.
    Some lauded his brilliance, his vision, and his skill,
    An advocate for knowledge, with an insatiable will,
    Others whispered tales of plagiarism's cruel claim,
    Raising doubts, casting shadows upon his fame.
    Amidst the tempest's eye, we pause and contemplate,
    The echoes of the past, where heroes met their fate,
    For who among us is perfect, devoid of flaw or sin,
    In this web of human life, where complexities begin?
    Let not judgment's gavel fall, too swift and without grace,
    For in the heart of every soul, a myriad dreams embrace,
    May wisdom guide our thoughts, as we navigate this strife,
    And seek the truth that lies beyond the surface of this life.
    For Siraj Raval, a chapter still unfolds,
    Where lessons are learned, where destinies behold,
    May his journey lead to growth, and a path of humble grace,
    Amidst the controversies, may he find his rightful place.
    In the timeless realm of poetry and verse,
    Where narratives are woven, for better or for worse,
    We honor the tale of Siraj Raval's flight,
    A story yet unfinished, with the promise of the light.
    Source: AI ancient Indian poet

  • @suninlaw
    @suninlaw Рік тому

    I don't understand how you used SerpApi with the agents in GPTeams. Can you show how you did this?

    • @capitalismandme
      @capitalismandme Рік тому

      its a module in langchain

    • @sapinzon
      @sapinzon Рік тому

      In the video he never searched the internet using GPTeam. He always got the message "No documents found for query". The GPTeam code in the repository seems has not enabled yet the google search functionality.

    • @Siraj_raval-oficial
      @Siraj_raval-oficial Рік тому

      👆🏻 D.m me directly for prepaid A.I bot

  • @cirusMEDIA
    @cirusMEDIA Рік тому +2

    I wouldn't say you built it.. but i get what you are saying.

    • @sorvex9
      @sorvex9 Рік тому +1

      hahahaha yeah, i see a bunch of contributors in that repo. Plus the brains is chatgpt, not something they did

  • @jyorko721
    @jyorko721 Рік тому +3

    where is the code for this, I mean i get you are introducing a concept, like i mean show your work a little please. You went from entering in roles of a hedge fund manager, to a agent dictionary that you built with directives and bios, and then boom you have a working app? Like come on , you didn't really share anything. How are you even using the serp api to feed the agents data, how are you embedding the text files using langchain etc

    • @SirajRaval
      @SirajRaval  Рік тому +4

      Great feedback thanks. I will be more detailed about the steps next video. And with code w documentation

  • @11yoyomama
    @11yoyomama Рік тому +1

    How would you set this up with something like reinforcement learning such that the agents get feedback on what they chose as optimal?

    • @SirajRaval
      @SirajRaval  Рік тому +1

      Great idea, I’d need to use an additional RL library, maybe finRL

  • @akilananbu363
    @akilananbu363 Рік тому +1

    Great video as usual, Pls consider deleting the api secret key 😜

  • @franktaylor7978
    @franktaylor7978 Рік тому +15

    You didn't build a hedge fund. You started a few trading bots. these aren't even close to being the same thing.

    • @shantanubapat6937
      @shantanubapat6937 Рік тому

      How is that any different from a "Hedge" fund that typically operates today?

    • @zenbauhaus1345
      @zenbauhaus1345 9 місяців тому

      He's trying to get views, and make learning difficult subjects accessible, fun and engaging. Give him a break, I'm quite curious what you made....😊

  • @softashutube
    @softashutube Рік тому

    Can you build this for bank nifty for option trading ?

  • @csvscs
    @csvscs Рік тому +2

    Oh man here we go. Siraj how many side hustles do you have?!😊

    • @SirajRaval
      @SirajRaval  Рік тому +3

      More than 5. But trying to combine them all into one big hustle

  • @VHSCLIPS
    @VHSCLIPS Рік тому

    You may have created the end of the stockmarket

  • @ASESORBITCOIN
    @ASESORBITCOIN Рік тому

    Hola seria posible realizar esto para recoger las mejores monedas memes e invertir en ellas ?

  • @MCRuCr
    @MCRuCr Рік тому +1

    I miss the times when building AI models was actually somewhat technical. You could incorporate biases and knowledge about the stock market directly into the model using e.g. a custom loss function etc. I don't trust AI when it is about my money and I don't believe in the idea of lets-put-AI-into-everything-just-for-the-sake-of-it-yaaaay!.
    I dont belive that these models are in any way "conscious". The whole argument is nothing but handwaving and it repeats with every AI summer that we observe.
    The fact they use natural language may let them _appear_ human or conscious, but they are as conscious as an animatronic
    Anyway my criticism aside, it is a fun and inspiring video

    • @SirajRaval
      @SirajRaval  Рік тому

      I’m not sure why I felt the need to add that segment on consciousness. I’ve been having very convincing conversations with Chatbots. I’m of the mind that if it appears conscious, it is. But no one truly knows

  • @illustriouschin
    @illustriouschin Рік тому +2

    Where does the money come from? You paying taxes on that?

    • @SirajRaval
      @SirajRaval  Рік тому +2

      UA-cam Adsense revenue. Yes I do

  • @mikeburn6139
    @mikeburn6139 Рік тому +4

    Great video Siraj! are you aware that there are millions of people all over the world, banned to use OpenAI services and API? Just because culture/political or whatever reasons.
    I know what you thinking, just use a VPN. Well not everyone can afford or know how to administrate a VPN rightfully.
    Anyway, I just want to make a nice suggestion for your videos regarding LLM. How about using the Open Source LLM community (ex. Hugginface)? their quality are getting better every day...
    Again, thanks for sharing! 🤗

  • @nithinkonakalla9130
    @nithinkonakalla9130 Рік тому

    Siraj I need to say you inspire me to get better..I'm from an arts background currently learning mern stack and also have a keen interest on these kind of topics..still an amateur..What are the tech concepts that I should get familiar with to build bots like trading or sports betting bots?

    • @SirajRaval
      @SirajRaval  Рік тому +1

      Langchain is currently the framework I’m looking most into to build ai bots that use text summarization and sentiment analysis for those topics

  • @churchyjr
    @churchyjr Рік тому

    Cool story bro. Release a normal step by step version your sports betting AI. Please! Instead of making us go back to college for 8 years.

  • @primordial-zeitgeist
    @primordial-zeitgeist Рік тому

    Is AI going to run a Ponzi scheme on me

  • @crazyprayingmantis5596
    @crazyprayingmantis5596 Рік тому

    If these trading bots were profitable why arent you a billionaire or trillionaire yet?

    • @SirajRaval
      @SirajRaval  Рік тому +1

      Because I haven’t given them enough money and waited long enough?

  • @dilshadms6202
    @dilshadms6202 10 місяців тому

    Hello Siraj, this is world.
    Great stuff, the idea and going through BUT:
    1- too hectical as usual with your videos
    2- too much stuff, too fast. It's fine if you know the stuff already but for someone who is not that much into this kind of stuff, it's just too much flying by, and easy to miss important stuff and how it all relates to each other.
    3- you know that these "tools", that are created the way you do it, won't pass the test of reality because they are flaud
    which you yourself also confirm at the end of every video you have done about using ChatGPT for trading, making a buck etc.
    You have always a loss and never come back days/weeks/months later to analyze the results and tell the people honestly what's real and what not.
    If it is just about learning programming or new tools tools for your viewers that might be ok, but in the title of your videos you are not indicating that it is just playing around and no real results/gains can be expected.
    So all in all this is an unethical conduct.
    I know many/if not most youtubers work this way and worse, but you present yourself as a serious person. So that is a nasty contradiction and such videos are mostly a waste of time.

  • @depiction3435
    @depiction3435 4 місяці тому

    This is idotic

  • @clayrisser6102
    @clayrisser6102 2 місяці тому

    Just popped in to downvote your video. Careful everyone, this guy is a known scammer.

  • @devfromthefuture506
    @devfromthefuture506 Рік тому +1

    I think that every text that exists within the training data for ChatGPT will perpetuate in the history of humanity because of the value and importance of it. And unfortunately all the bad things that you " supposedly" did are documented in the training data of ChatGPT. Look:

    • @devfromthefuture506
      @devfromthefuture506 Рік тому +1

      Title : Controversies Surrounding Siraj Raval
      
      Question: List controversal things about Siraj raval
      ChatGPT
      It's important to approach controversial topics with caution and respect for individuals involved. However, I can provide you with some information about controversies surrounding Siraj Raval, a popular figure in the field of artificial intelligence and machine learning. It's worth noting that controversies can be subjective, and opinions may vary. Here are a few points that have been discussed:
      Plagiarism accusations: Siraj Raval faced allegations of plagiarism in some of his UA-cam videos and online course materials. These accusations suggested that he copied content from other sources without proper attribution. These claims sparked a significant controversy and led to discussions about intellectual property and academic integrity.
      Misleading content and exaggerated claims: Raval has been criticized for promoting sensationalist and exaggerated claims about AI and its capabilities. Some individuals argue that his videos and presentations overhype AI, creating unrealistic expectations and misleading viewers about the field's current state.
      Lack of transparency and accountability: Critics have expressed concerns about Raval's lack of transparency in his work. They claim that he does not provide sufficient details or clear explanations of the technical aspects, which can make it difficult for learners to understand the concepts thoroughly. Some also argue that he prioritizes marketing and self-promotion over educational content.
      Ethical controversies: Raval has faced criticism for making controversial statements and promoting questionable practices related to AI ethics. Some argue that his viewpoints on topics like bias in AI or the social implications of technology are oversimplified or misguided. These controversies have raised important discussions about the responsibility of AI influencers in shaping the public perception of AI ethics.
      It's crucial to consider multiple perspectives when evaluating controversies, and it's always recommended to conduct further research and form your own opinions.
      Free Research Preview. ChatGPT may produce inaccurate information about people, places, or facts. ChatGPT May 24 Version