I Built a Coinbase Trading Bot

Sdílet
Vložit
  • čas přidán 17. 07. 2024
  • I started a hedge fund using the Coinbase advanced trade API and the fear and greed index. In this video I’ll show you how to fork my hedge fund to have it do literally whatever you want it to do. All you need to do is find a strategy, talk to the codebase of my hedge fund using the magic of AI and Cursor.sh and voila - you’re in business.
    👾 Join the Discord Community: / discord
    📝Written guide with all code: www.rhett.blog/coinbase-fear-...
    🎥 How to Install Python: • How to Install Python ... How to use Cursor: • How to Learn Python Pr...
    🎥 AI for programming guide: • Learn Coding 10x Faste...
    🎥 Automate this code with AWS: • I Built a Crypto Tradi...
    🤖 GitHub codebase: github.com/rhettre/coinbase-a...
    I Started a Hedge Fund 0:00
    Set up the Code 0:43
    Connect to Coinbase 2:06
    Test the Connection 2:43
    Basic Trading Strategy 3:28
    AI Makes Strategies for you 6:13

Komentáře • 46

  • @drak1071
    @drak1071 Před 12 dny

    this was a great video. straight to the point, detailed & instructions, very informative. thank you and subscribed!

  • @adamgoyer2077
    @adamgoyer2077 Před 7 měsíci +1

    Looking forward to implementing this. Thanks for laying the foundation.

  • @MalcolmPeralty
    @MalcolmPeralty Před 4 měsíci

    So I am using your code as a starting point for a quick and rough trading bot based on RSI values at different timescales for multiple different currencies. It was super helpful as a foundation in working with Coinbase's API. Thank you so much!

    • @RhettReisman
      @RhettReisman  Před 4 měsíci +1

      Happy to help :) would love to connect on Github or via email if you build something you want to share

    • @MalcolmPeralty
      @MalcolmPeralty Před 4 měsíci

      @@RhettReisman I'm no developer, so you would want any of my code, but I did have some issues with getting candle detail as no matter what I passed for granularity wasn't working.
      Outside of that, I'm currently just doing a check to see if Bitcoin is up on the last 24 hours, and if it is, do RSI for different pairs for different time periods, and buy when it reaches certain thresholds.
      Next I'm going to work on DCA, risk mitigation, and changing the sell rules based on how long I've been in a trade.
      I'm also hoping to figure out how to change my sell rules to kind of set a trailing stop in code.

  • @koigurlk7760
    @koigurlk7760 Před 12 dny

    Is there an update video to show the results of this running for a while?

  • @NWforager
    @NWforager Před 8 měsíci

    super smart man . this kind of stuff destroys the old adages like "don't time the market" . 🐂 bullish

    • @RhettReisman
      @RhettReisman  Před 8 měsíci

      Exactly! Time in the market is more important 😎

  • @zoleeeagle9339
    @zoleeeagle9339 Před 8 měsíci +1

    Hey bro. I just found your videos very useful, and I'm just wondering if you could make a video of "blockstream jade hardware wallet" at least about your honest opinion. Thanks 👍

    • @RhettReisman
      @RhettReisman  Před 8 měsíci

      Thanks man, I haven't looked into it yet I've been using and recommending these hardware wallets for different people: czcams.com/video/XeKSXGuuHb4/video.html&pp=ygUWcmhldHQgaGFyZHdhcmUgd2FsbGV0cw%3D%3D
      If I make a Jade review I'll probably post it over on the blog first: www.rhett.blog

  • @steviegordon7708
    @steviegordon7708 Před 4 měsíci

    This is super sick. I'm thinking about implementing a DL/ML strategy. There are tons of resources online, but I'm definitely gonna need help sifting through the info to find the strategy for crypto. Is there a discord or slack where people can share results so we can build a comprehensive automated trading method?

    • @RhettReisman
      @RhettReisman  Před 4 měsíci

      I've thought about hosting a discord community for a while, but I don't use discord enough to understand what I should be doing / what I should be avoiding. Definitely open to building something like this though

    • @Steve-xb7dn
      @Steve-xb7dn Před 2 měsíci

      @@RhettReisman if you build it, they will come

  • @funzeye
    @funzeye Před 7 měsíci

    Very cool, looking at how to automate my weekly advanced trades and came across this. Im actually a web dev myself, albeit not in python space, im wondering, is the ultimate plan to then host the application on a server/servive somewhere so its constantly running autonomously?

    • @funzeye
      @funzeye Před 7 měsíci

      Ah I see on your blog you mention AWS Lambda, I'm guessing that's what you are suggesting as a good option?

    • @RhettReisman
      @RhettReisman  Před 7 měsíci +2

      Yeah I’m running it on its own up in AWS and automating it up there

    • @ambientvibes4301
      @ambientvibes4301 Před 7 měsíci

      @@RhettReisman This is great! How would you run this on AWS?

  • @takeshikovacs1081
    @takeshikovacs1081 Před 6 měsíci

    this is great! thanks for sharing, I have tried fiat_limit_buy and noticed when I pass on a float like 1.001 inside the price_multiplier to place a buy order slightly above the current price (to instantly buy) it comes back with an an unknown error. When I change the float to something like 0.9 then it does work but the order is below the current price. How can I make it place the limit order above the current price ?

    • @RhettReisman
      @RhettReisman  Před 6 měsíci +1

      You can't make a limit order above the current price (coinbase won't let you - you're basically saying even though bitcoin is trading at $40,000 right now I'm willing to pay $41,000)
      Thanks for bringing this up I'll add some code to handle the error more cleanly

    • @takeshikovacs1081
      @takeshikovacs1081 Před 6 měsíci

      hey, thanks for replying :) I have managed to get it working, I can now specify a percentage above the current price to set my limit order for example, set a limit order 0.1 percent above the current price, which pretty much guarantees an instant fill, I use that instead of market orders if I want to buy something right at this moment (at the current price). Looking at my BTC order, the limit order was set at 42,392.71 and the execution price was 42,351.03, so yeah it does work, it just fills the order using the current price if you specify a higher price @@RhettReisman

  • @Fefs-yi1gf
    @Fefs-yi1gf Před 4 měsíci

    I'm just in awe after seeing this, I didn't know all this was possible, I was totally ignorant to this reality... would this be possible to do with binance international? I'll save this video and comeback to it when I get enough money... I really don't earn much, but will try to save a bit of money and maybe learn more about these strategies. Thanks for sharing

    • @RhettReisman
      @RhettReisman  Před 4 měsíci +2

      Yeah it's really cool - it even allows you to trade when the website is "down". Definitely worth learning more - I'll have more content on it later this year

    • @Fefs-yi1gf
      @Fefs-yi1gf Před 4 měsíci

      @@RhettReismanthank you... will have my eyes opened

  • @Afiore108
    @Afiore108 Před 8 měsíci +3

    What’s it like being a super genius expert wizard

    • @RhettReisman
      @RhettReisman  Před 8 měsíci +2

      If everyone was a little more like me there would be world peace 🤷🏻‍♂️

  • @Des23SS
    @Des23SS Před 5 měsíci

    I cant seem to get a command click or cntrl click to pull up definition. any help?

    • @RhettReisman
      @RhettReisman  Před 5 měsíci

      Not sure - those commands work out of the box in cursor.sh for me is that what you mean?

  • @Steve-xb7dn
    @Steve-xb7dn Před 2 měsíci

    Share us the script you've made so far? Have you created any GUI either python based or web based?

    • @RhettReisman
      @RhettReisman  Před 2 měsíci

      Code is in the description - I haven’t written a GUI yet. Hoping to release something later this year

  • @kangaroocrypto4663
    @kangaroocrypto4663 Před 8 měsíci

    Dope

  • @michal2152
    @michal2152 Před 6 měsíci

    Is it possible to buy or sell with leverage by coinbase API?

    • @RhettReisman
      @RhettReisman  Před 6 měsíci

      Not to my knowledge, here are the docs: docs.cloud.coinbase.com/advanced-trade-api/docs/welcome

    • @michal2152
      @michal2152 Před 6 měsíci

      @@RhettReisman thanks

  • @rumplejesusskin
    @rumplejesusskin Před 2 měsíci

    So complicated for beginners

    • @RhettReisman
      @RhettReisman  Před 2 měsíci

      Try this if you’re a beginner:
      czcams.com/video/jng2bdm9akc/video.html

  • @Doggy_Styles_Coding
    @Doggy_Styles_Coding Před 8 měsíci +1

    Why did the cryptocurrency investor bring a ladder to the blockchain conference?
    Because he heard the prices were going up, and he wanted to get in on the "alt-coin" action!
    Sorry for the bad joke

  • @cinkstudio
    @cinkstudio Před 3 měsíci

    Followed the instructions using cursor. and ran into api problem... 2024 march, coinbase has created a new json file with "publicKey "privateKey" and the private key is extra long now and doesn't resemble a API_SECRET key. Does anyone's scripts still work with coinbases change? or can some one explain where "publicKey "privateKey" go now that API_secret isnt available.

    • @RhettReisman
      @RhettReisman  Před 3 měsíci

      You should still be able to generate legacy API keys from coinbase following the same steps (coinbase - your picture in top right - my preferences - API - new key)
      I'm working on updating the API to use the new method of authentication too. Will make an update video once it supports both forms of authentication.