I Built a Coinbase Trading Bot
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
this was a great video. straight to the point, detailed & instructions, very informative. thank you and subscribed!
Looking forward to implementing this. Thanks for laying the foundation.
No problem :) happy to help
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!
Happy to help :) would love to connect on Github or via email if you build something you want to share
@@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.
Is there an update video to show the results of this running for a while?
super smart man . this kind of stuff destroys the old adages like "don't time the market" . 🐂 bullish
Exactly! Time in the market is more important 😎
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 👍
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
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?
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
@@RhettReisman if you build it, they will come
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?
Ah I see on your blog you mention AWS Lambda, I'm guessing that's what you are suggesting as a good option?
Yeah I’m running it on its own up in AWS and automating it up there
@@RhettReisman This is great! How would you run this on AWS?
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 ?
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
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
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
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
@@RhettReismanthank you... will have my eyes opened
What’s it like being a super genius expert wizard
If everyone was a little more like me there would be world peace 🤷🏻♂️
I cant seem to get a command click or cntrl click to pull up definition. any help?
Not sure - those commands work out of the box in cursor.sh for me is that what you mean?
Share us the script you've made so far? Have you created any GUI either python based or web based?
Code is in the description - I haven’t written a GUI yet. Hoping to release something later this year
Dope
🔥🔥🔥
Is it possible to buy or sell with leverage by coinbase API?
Not to my knowledge, here are the docs: docs.cloud.coinbase.com/advanced-trade-api/docs/welcome
@@RhettReisman thanks
So complicated for beginners
Try this if you’re a beginner:
czcams.com/video/jng2bdm9akc/video.html
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
This is peak comedy
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.
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.