I Built a Coinbase Trading Bot

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 52

  • @MalcolmPeralty
    @MalcolmPeralty 7 месяцев назад

    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  7 месяцев назад +1

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

    • @MalcolmPeralty
      @MalcolmPeralty 7 месяцев назад

      @@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.

  • @adamgoyer2077
    @adamgoyer2077 10 месяцев назад +1

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

    • @RhettReisman
      @RhettReisman  9 месяцев назад

      No problem :) happy to help

  • @drak1071
    @drak1071 3 месяца назад

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

    • @RhettReisman
      @RhettReisman  2 месяца назад

      Happy to help! Let me know if there are other topics you're interested in

  • @Afiore108
    @Afiore108 11 месяцев назад +3

    What’s it like being a super genius expert wizard

    • @RhettReisman
      @RhettReisman  11 месяцев назад +2

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

  • @NWforager
    @NWforager 11 месяцев назад

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

    • @RhettReisman
      @RhettReisman  11 месяцев назад

      Exactly! Time in the market is more important 😎

  • @mosl2te
    @mosl2te 3 месяца назад +1

    @RhettReisman Does the code in GetHub work using the Legacy API Keys only?

    • @RhettReisman
      @RhettReisman  2 месяца назад

      It is updated now to use legacy and cloud keys

  • @steviegordon7708
    @steviegordon7708 7 месяцев назад

    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  7 месяцев назад

      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 5 месяцев назад

      @@RhettReisman if you build it, they will come

  • @zoleeeagle9339
    @zoleeeagle9339 11 месяцев назад +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  11 месяцев назад

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

  • @Fefs-yi1gf
    @Fefs-yi1gf 7 месяцев назад

    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  7 месяцев назад +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 7 месяцев назад

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

  • @funzeye
    @funzeye 10 месяцев назад

    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 10 месяцев назад

      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  10 месяцев назад +2

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

  • @Köißgürlk
    @Köißgürlk 3 месяца назад

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

    • @RhettReisman
      @RhettReisman  2 месяца назад

      No, but you could backtest any of the strategies and see how well they've performed vs a dumb DCA. I've run the code everyday for several years now and it works correctly

  • @Steve-xb7dn
    @Steve-xb7dn 5 месяцев назад

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

    • @RhettReisman
      @RhettReisman  5 месяцев назад

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

  • @Des23SS
    @Des23SS 8 месяцев назад

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

    • @RhettReisman
      @RhettReisman  8 месяцев назад

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

  • @takeshikovacs1081
    @takeshikovacs1081 10 месяцев назад

    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  9 месяцев назад +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 9 месяцев назад

      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

  • @michal2152
    @michal2152 9 месяцев назад

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

    • @RhettReisman
      @RhettReisman  9 месяцев назад

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

    • @michal2152
      @michal2152 9 месяцев назад

      @@RhettReisman thanks

  • @Doggy_Styles_Coding
    @Doggy_Styles_Coding 11 месяцев назад +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

  • @rye-nz2cc
    @rye-nz2cc 3 месяца назад

    Answer my question: what do you gain from this? What’s the catch?

  • @rumplejesusskin
    @rumplejesusskin 5 месяцев назад

    So complicated for beginners

    • @RhettReisman
      @RhettReisman  5 месяцев назад

      Try this if you’re a beginner:
      ruclips.net/video/jng2bdm9akc/видео.html

  • @kangaroocrypto4663
    @kangaroocrypto4663 11 месяцев назад

    Dope

  • @cinkstudio
    @cinkstudio 7 месяцев назад

    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  7 месяцев назад

      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.