I Built a Coinbase Advanced Trade Python API [Updated]

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

ความคิดเห็น • 109

  • @MM-og2yp
    @MM-og2yp 5 หลายเดือนก่อน +1

    Thanks! You are helping me a lot !

    • @RhettReisman
      @RhettReisman  5 หลายเดือนก่อน

      Thank you! Happy to help :)

  • @hidude5620
    @hidude5620 ปีที่แล้ว +4

    BROOOO you have no idea how much this helps me. You are a lifesaver

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      Epic 🔥🔥🔥 happy to help :)

  • @johnmadsen37
    @johnmadsen37 21 วันที่ผ่านมา

    I’m using the c# wrapper. I learned all the analytics and history don’t mean much. It’s what is happening now, and essentially like the other AI trading robots, define a price ceiling and floor, increment for profit, and the basic but sell limit orders. It is essentially a order scheduler.

    • @RhettReisman
      @RhettReisman  20 วันที่ผ่านมา

      You can build in analytics and history on top and integrate to providers like GlassNode if you want more robust trading solutions

  • @First-cl1sc
    @First-cl1sc 7 หลายเดือนก่อน +1

    Nice, going to give it a run, excited to see more in the future

    • @RhettReisman
      @RhettReisman  7 หลายเดือนก่อน +1

      I’ll have an update out in May - they changed the authentication method and I need to update it on my end

  • @danasimmons2513
    @danasimmons2513 ปีที่แล้ว +1

    I am still using the AWS code for automated buys on Gemini that you posted a couple of years ago. Still works great.

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว +2

      Glad it’s still working! Really set it and forget it 😎
      Prob not worth switching over just for small fee difference. I think Coinbase will be cheaper tho for people just starting out now

    • @danasimmons2513
      @danasimmons2513 ปีที่แล้ว

      @@RhettReisman I pay $0.16 for my $80 purchase, seems low enough. I know Gemini has a lot of bad press and I know they are not perfect, but are any of these exchanges? I accumulate a small bag and then move it cold storage.

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      Issue with Gemini now is the withdrawal fees are kinda high if you’re withdrawing all the time. Otherwise I really like Gemini. You’re right - no exchange is perfect.

  • @JesusSalazar-kv7mn
    @JesusSalazar-kv7mn ปีที่แล้ว

    I love this bro ! Love hearing your experience and how well you become in programming ! Im excited for our meeting tmr ! For this algorithm that I’m working on is beyond impressive

    • @RhettReisman
      @RhettReisman  11 หลายเดือนก่อน +1

      Hey man sorry I missed your original meeting, feel free to email me again and we can schedule something in the new year. Cheers :)

    • @JesusSalazar-kv7mn
      @JesusSalazar-kv7mn 11 หลายเดือนก่อน

      @@RhettReisman hey brother thank you for the respond back ! I’m actually glad I got the extra time to really put my idea together and present it to you ! Where yk exactly what I am talking about ! I’m really looking forward to this meeting ! I’ve been trading for 4 years ! And this Edge is like no edge I’ve ever seen before ! You will see ! You won’t regret it ! Thank you for existing ! Lol Ik with your skills ,we will execute my vision perfectly !

  • @wackyguyoverthirty
    @wackyguyoverthirty 8 หลายเดือนก่อน

    Thanks so much for this helpful video Rhett! I am anxiously awaiting your blog update regarding your Coinbase wrapper and potentially plug in my AlphaSquared DDCA custom strategy. Can’t wait! 🎉

    • @RhettReisman
      @RhettReisman  8 หลายเดือนก่อน +1

      Epic 🔥🔥🔥 Hoping to have it out in May - the rest of this month is a little crazy for me :/

    • @wackyguyoverthirty
      @wackyguyoverthirty 8 หลายเดือนก่อน

      @@RhettReismanall about priorities and balance brother. ❤ looking forward to your hard effort. Is there a place I can leave a donation?

  • @miket.8289
    @miket.8289 3 หลายเดือนก่อน +1

    So if I understand correctly I can use your script to setup an Hourly DCA on coinbase pro. Do you know if there is a minimum you have to buy every hour? Also, do you have to have the AWS and coinbase website open 24/7 or does it all work in the background? Thanks Rhett

    • @RhettReisman
      @RhettReisman  3 หลายเดือนก่อน +1

      You don’t have to have AWS or Coinbase open it all runs in the background. That’s the beauty of AWS and cloud.
      You could set it up to run at any time interval (you could run it every 5 minutes if you wanted to).
      The minimum buy on Coinbase is probably $1 or something you can probably find it somewhere on their website or just try to make small orders and see if you get an error message back.

    • @miket.8289
      @miket.8289 3 หลายเดือนก่อน +2

      Wow dude this is awesome! And with this, you're sure I'm gonna get a lower fee than Strike (0.99% spread), and River (0.25-0.4% spread)?

    • @RhettReisman
      @RhettReisman  3 หลายเดือนก่อน +1

      Coinbase limit orders are 0.6% - the benefit here is in being able to customize when you make your orders and how big they are. It’s also in consistency and transparency - I’ve been watching this space for a long time and it’s hard to be sure you’re getting good price execution with spreads. I’m generally skeptical especially since most of them aren’t published anywhere.
      Those other platforms aren’t smart enough to buy more when price is low and buy less or sell when prices are high. You can build all of that intelligence using Coinbase’s api.

    • @miket.8289
      @miket.8289 3 หลายเดือนก่อน

      @@RhettReisman That is true. I might give this a try just to learn the API process if nothing more

  • @mikesara7032
    @mikesara7032 ปีที่แล้ว +1

    Hi can you please make a video explaining the authentication api process through coinbase, seems very complex for a newbie like me. Thank you for great info!

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว +1

      Check out this video: th-cam.com/video/x8zcqAhk9SI/w-d-xo.htmlsi=Fw-q9WJ4HJjfmlBR
      There’s a code sample that shows the authentication. And if you run that whole codebase through Cursor.sh (like we do in that video) you can have the AI explain the authentication to you.
      Let me know if you get stuck :)

  • @jacksonthorn6304
    @jacksonthorn6304 9 หลายเดือนก่อน

    Man... I tried to code what you created from scratch and it was not going well. Thank you so much for making this!! What would you think about making a video on connecting to the websocket to get real-time data?

    • @RhettReisman
      @RhettReisman  9 หลายเดือนก่อน +1

      Happy to help! I haven’t done any stuff with websockets yet but I’m happy to try it out and see if I can post something.
      I’m in the middle of refactoring this code to make it work with coinbases new Python wrapper I’ll definitely make updates here and over on the blog :)

    • @jacksonthorn6304
      @jacksonthorn6304 9 หลายเดือนก่อน

      @@RhettReisman Are you refactoring the code to work with Coinbase's new way of doing API keys? Currently, I'm just using a legacy key which still works but I assume that Coinbase will eventually stop supporting them

    • @RhettReisman
      @RhettReisman  9 หลายเดือนก่อน

      Yeah it will support their new authentication methods

  • @jakezollner1344
    @jakezollner1344 ปีที่แล้ว

    Thanks for working on this. I've been searching for help. Mostly using Sheets and apps script for api automation and data storage. AWS is a good alternative.

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      No problem man glad to help :) yeah AWS so powerful

  • @hodlord
    @hodlord ปีที่แล้ว

    Thanks for this. Got it working on a Pi Zero with Crontab! One question, how do i execute a market buy, as my limits sometimes just don't hit? Tried setting BUY variable to 1 but it errors out...?

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      You can use createOrder to create a market order - I'll build this into the wrapper in a future release but you can specify it with createOrder using this documentation: docs.cloud.coinbase.com/prime/reference/primerestapi_createorder

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว +1

      Updated the github with market orders: github.com/rhettre/coinbase-advancedtrade-python

  • @inaamullah1851
    @inaamullah1851 5 หลายเดือนก่อน

    how to place order by using sandbox envirment ?

    • @RhettReisman
      @RhettReisman  5 หลายเดือนก่อน

      I haven’t implemented it. Here’s the docs: docs.cdp.coinbase.com/exchange/docs/sandbox

  • @woni6536
    @woni6536 ปีที่แล้ว

    Where can I download your examples? I only need to buy and sell with market order (no limit order) and to get the actual prices.

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      Link to the GitHub is in the description.
      AI in the video below should be able to answer your questions and write the code for you given the code on GitHub.
      th-cam.com/video/x8zcqAhk9SI/w-d-xo.htmlsi=wvB8PfAYKls9yRnG

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      I updated the Github with market orders: github.com/rhettre/coinbase-advancedtrade-python

  • @user-ku3sx8lo1g
    @user-ku3sx8lo1g 9 หลายเดือนก่อน

    What's the advantage in doing this? I'm still pressing one button when I'm ready to execute or will it trade for me every time it see's the signs I tell it to recognize?

    • @RhettReisman
      @RhettReisman  9 หลายเดือนก่อน

      You can automate the function calls on a cloud platform like AWS and your buys / sells will run automatically

  • @kenneth4970
    @kenneth4970 ปีที่แล้ว +1

    What do you mean coinbase pro disappeared? I still use coinbase pro every week

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      It’s being sunset. If you follow the prompts to activate advanced trade you’ll lose access to pro.

  • @hammerain93
    @hammerain93 11 หลายเดือนก่อน

    Is there a per-trade fee in place such that trading once per day is less costly than trading once per hour?

    • @RhettReisman
      @RhettReisman  11 หลายเดือนก่อน

      Yes - every trade has a fee but its size based. If you trade $100 per day it doesn’t matter if it was 1 trade or 20 trades fee should be the same

  • @chewy2442
    @chewy2442 ปีที่แล้ว

    question, when I am creating my CBA API keys and when the option to select the wallets opens up, I do not see the BTC wallet option. I do have BTC in that wallet. I have went back to CB and selected the deposit option to create a QR code to see if that would prompt the BTC wallet to appear when creating the API keys, but still does not appear to select. I see ETH, LTC, and many other wallets and vaults, but no BTC wallet or vault item to select. Any ideas? Thanks in advance.

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      That’s really strange, I’m not sure. Whenever I pull up that screen btc wallet is one of the first on that screen. Wonder if you try doing select all and then see if you can run a buy bitcoin script if it will work.

    • @chewy2442
      @chewy2442 ปีที่แล้ว

      @@RhettReisman I will try that. Thanks for the suggestion.

  • @itzbudd
    @itzbudd 11 หลายเดือนก่อน

    imtrying to follow your new github layout but keep getting errors like this AttributeError: 'NoneType' object has no attribute 'encode'

    • @itzbudd
      @itzbudd 11 หลายเดือนก่อน

      ive followed you on twitter but it still gives me this message Get verified to message this user
      Only verified users can send Direct Message requests to people that don’t follow them. Sign up for Premium to continue.

    • @RhettReisman
      @RhettReisman  11 หลายเดือนก่อน +1

      For everyone else, we solved this by getting fresh API keys per the video

  • @yoyoted44
    @yoyoted44 ปีที่แล้ว

    Ty for this huge work. I can't find how to create a buy order with a take profit and a stop loss (One-Cancels-the-Other). Is it even possible?

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      Not sure that type of order exists out of the box with the Coinbase API. If you wanna dm me the requirements on Twitter we might be able to figure out how to make a single function call that places three trades that would satisfy what you’re wanting.

    • @yoyoted44
      @yoyoted44 ปีที่แล้ว

      @@RhettReismanI don't have a twitter premium account which is required for dm... Anyways, I wrote a function with your API that posts 3 orders :
      - a buy market_order
      - a sell stop_limit_order for the SL
      - a sell limit_order for the TP
      Now, the real challenge is ensuring that either the Stop Loss (SL) or the Take Profit (TP) gets cancelled when the other one is filled.. Any idea on how to implement this feature?

  • @CodeMachina
    @CodeMachina ปีที่แล้ว

    how to trade futures using this wrapper library? please guide me

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      Think you need to use the derivatives API - I haven't implemented a wrapper for futures:
      docs.cloud.coinbase.com/derivatives/docs/welcome

  • @0xSamUx
    @0xSamUx ปีที่แล้ว

    i created my own bot with my day trading strategies implemented into it, finally I hope I can make this work

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      That’s epic 🔥🔥🔥 lmk how it goes

  • @WuBzUnite
    @WuBzUnite ปีที่แล้ว +1

    I want a coinbase ai trading bot that isn’t ran on python it’s a simple api key plug and play 😢

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      It needs to use some programming language. Do you mean you want one with a good user interface?

    • @WuBzUnite
      @WuBzUnite ปีที่แล้ว

      @@RhettReisman no just links I legit can’t find one I’m new and retarded lmfao and can’t code

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      The good news is it’s never been easier to learn! Most programming questions can be solved now with ChatGPT. Let me know if you have specific questions and I can help you get unstuck :)
      Dm me on Twitter if TH-cam comments get messy or schedule some time with me at Rhett.blog/calendly

  • @harvinderarora9825
    @harvinderarora9825 10 หลายเดือนก่อน

    Bro. Instead of a fixed amount like you specified. How do I buy BTC-USD for everything in my GBP WALLET?

    • @RhettReisman
      @RhettReisman  10 หลายเดือนก่อน +1

      First check the balance of that wallet, store it in a variable and then pass that variable into the buy function. I'll add this as a feature request to the wrapper

  • @buddy-v2k
    @buddy-v2k 11 หลายเดือนก่อน

    following your github instructions gets me this error
    AttributeError: 'NoneType' object has no attribute 'encode'

    • @RhettReisman
      @RhettReisman  11 หลายเดือนก่อน +1

      Hmm I haven’t seen that error before, feel free to dm me on Twitter @rhettre w screenshots if you need help.
      Seems like it might be an issue with your api permissions

    • @itzbudd
      @itzbudd 11 หลายเดือนก่อน

      i forgot what account i was on please check the other similar comment sorry about that
      @@RhettReisman

  • @truefish281
    @truefish281 ปีที่แล้ว

    is the gemini api still working....dont know if they froze funds for commercial buying...lol

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      It should still be working yeah. I haven’t seen anything saying otherwise

  • @kimblylabs7137
    @kimblylabs7137 10 หลายเดือนก่อน

    Is there a code for Coinbase Advanced Trade Websockets API using Python?

    • @RhettReisman
      @RhettReisman  10 หลายเดือนก่อน

      Working on it 😎

  • @jasonfitreacts
    @jasonfitreacts ปีที่แล้ว

    Do API secret keys still exist? I tried making an API key and it only showed me the key, not the secret key. I tried to find it for an hour and a half and came up with nothing

    • @mr_white743
      @mr_white743 ปีที่แล้ว

      Try in a different browser like safari. Gets you a bit further but passphrase now missing

    • @hidude5620
      @hidude5620 ปีที่แล้ว

      I had the same problem. Try turning off all of your extensions

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      I made some API keys yesterday so it's still working you might need to turn off extensions like another commenter suggested. Also make sure you're using advanced trade and not Coinbase Pro

    • @RhettReisman
      @RhettReisman  3 หลายเดือนก่อน

      Sorry TH-cam is just showing me this comment now 🤦🏻‍♂️
      Coinbase changed their authentication, I cover it in a new video here: th-cam.com/video/OIcZjOlEYKw/w-d-xo.htmlsi=5AH0tUPrTBORTe32

  • @dean-orochester7374
    @dean-orochester7374 ปีที่แล้ว

    I followed your steps but it doesn't show the secret only the key. How do I get the secret in coinbase?

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      Sometimes in the first generation they make you wait 48 hours but it should show a secret. I generated one yesterday with same steps as video

  • @mninmk
    @mninmk ปีที่แล้ว

    I am a total noob, can I deploy this code on the coinbase cloud for automation instead of AWS?

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว +1

      Not sure how Coinbase cloud works (I don’t think it’s a cloud infrastructure platform meant for retail but I could be wrong). You can definitely use google cloud instead of AWS.

  • @christophelapointe9000
    @christophelapointe9000 ปีที่แล้ว +1

    Hey, both imports are unknown and I followed all the same steps you did, could you help me out errors :
    Import "coinbase_advanced_trader.coinbase_client" could not be resolved
    Thanks

    • @christophelapointe9000
      @christophelapointe9000 ปีที่แล้ว

      What I did was clone your repo and added in my settings.json :
      {
      "python.analysis.extraPaths": ["./coinbase-advancedtrade-python"]
      }
      is this fine?

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      Did you pip install coinbase-advancedtrade-python
      I don’t think I touched the settings.Json in the video

  • @theflybaby6736
    @theflybaby6736 9 หลายเดือนก่อน

    OK. After a few days of head scratchers later.
    So the advance Keys and this is are way different.
    Also, could you make a video making a grid bot?

    • @RhettReisman
      @RhettReisman  9 หลายเดือนก่อน

      Not sure what you mean about advance keys. I actually don't know much about trading haha - if you have a grid bot algorithm I can look into it

    • @theflybaby6736
      @theflybaby6736 9 หลายเดือนก่อน

      @@RhettReisman so there is api for regular trading on your account. That is what you showed in the video. If you have a security key like me I can not use the same stuff you are. If you google advance trading API for coinbase it will give you a totally different site and different way to get keys.
      And haha my code is garble from chatgpt. I have no idea what I am doing in the idea of coding.

  • @0xSamUx
    @0xSamUx ปีที่แล้ว

    does anyone know how to get their account UUID

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      Reached out to Coinbase about the issue - I’m getting the same thing from listAccounts() going to make a forum post seems like an issue that has happened before

  • @gregt301
    @gregt301 ปีที่แล้ว +1

    Sees cat: Likes video.

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว +1

      Finally leveling up my production quality to include cats = gigabrain youtube algorithm destroyer

    • @gregt301
      @gregt301 ปีที่แล้ว +1

      @@RhettReisman ABSOLUTELY! There is no downside (unless your audience is primarily dogs).

  • @tcthompson
    @tcthompson ปีที่แล้ว

    Why not just use strike recurring buys?

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว +1

      Strike doesn’t have limit orders or an api (that would allow you to dollar cost average using the fear and greed index or other indicators)

    • @tcthompson
      @tcthompson ปีที่แล้ว

      @@RhettReisman got it. Thanks

  • @coolmonkey619
    @coolmonkey619 ปีที่แล้ว

    why don't you use kraken

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      Kraken doesn’t do ACH deposits in Texas and their withdrawal fees are higher on average. All that math is here: th-cam.com/video/zysi14QAfh0/w-d-xo.html

  • @michaelnet588
    @michaelnet588 4 หลายเดือนก่อน

    Bro share the proyect

    • @RhettReisman
      @RhettReisman  4 หลายเดือนก่อน

      Wut? Code here: github.com/rhettre/coinbase-advancedtrade-python

  • @0xSamUx
    @0xSamUx ปีที่แล้ว

    what does this error mean, "ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)"

    • @0xSamUx
      @0xSamUx ปีที่แล้ว

      This error lies in the "response = coinbase_client.createOrder" line

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      Seems like your connection to Coinbase is not good. Check your API keys and maybe disable any VPNs or anything that would be obstructing your connection

    • @0xSamUx
      @0xSamUx ปีที่แล้ว

      @@RhettReisman okay thanks, also upon installing requirements.txt i get:
      "Ignoring enum34: markers 'python_version < "3.4"' don't match your environment"
      But I see your using python version 3.9.6, whats the best version of python to use for this?
      I'm using python version 3.8.5 if thats okay

    • @RhettReisman
      @RhettReisman  ปีที่แล้ว

      3.8.5 should be fine. Sounds like you might be able to ignore requirements.txt

    • @gabrielmcknight7992
      @gabrielmcknight7992 10 หลายเดือนก่อน

      @@RhettReisman
      Your content is amazing man! I created a DCA on 3 comma that is a cash cow!!!
      Can i take the trades based of entry buy and sell, and create a code to run on coinebase? Im getting worried about my API protection

  • @yuanevelyn54
    @yuanevelyn54 6 หลายเดือนก่อน

    hello may you give me your contact information to finish my project because im stuck in coding it

    • @RhettReisman
      @RhettReisman  6 หลายเดือนก่อน

      Feel free to join the discord Rhett.blog/discord or book time on my calendar (Rhett.blog/links) I charge $100/hr for consulting

  • @RahelHale
    @RahelHale 6 วันที่ผ่านมา

    how can i withdraw my 89 USDT TRC20 from wallet to binance please help me 12 wallet recovery phrase「pride」-「pole」-「obtain」-「together」-「second」-「when」-「future」-「mask」-「review」-「nature」-「potato」-「bulb」