Kraken Trading Bot in Python

Поделиться
HTML-код
  • Опубликовано: 17 май 2024
  • In this video, we learn how to build a Kraken trading bot in Python.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine.com/books/
    💻 The Algorithm Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎙 Discord: / discord
    🎵 Outro Music From: www.bensound.com/
    Timestamp:
    (0:00) Intro
    (0:16) Kraken API Keys
    (2:52) Kraken API in Python
    (10:53) Sending Requests & Orders
    (22:32) Trading Bot Implementation
    (30:36) Outro
  • НаукаНаука

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

  • @the_dude_josh
    @the_dude_josh 2 года назад +12

    holy s**t I literally requested a kraken api on your coinbase video a few days ago. Glad you were already working on it when I asked haha.

  • @charlesrice1020
    @charlesrice1020 Год назад

    Yo quick question what was the purpose of the mac under the signature method? Any help would be greatly appreciated!

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

    Thank you, nice & inspiring video. Set this up right away and I will see what I will be implementing around this ;)

  • @jeffs5528
    @jeffs5528 Год назад

    This is a brilliant post. Thanks very much. Is it possible for you to put the code up somewhere to copy?

  • @samuelsnipes3330
    @samuelsnipes3330 2 года назад

    Where can we get/make a list of all available trading pairs in USD? I know you can use /0/public/Assets , but that just returns a huge list of all assrts and data. I just want to make a list like XXBTVZUSD, SDGZUSD, etc to loop through all of them and do some analysis

  • @MrRezhes
    @MrRezhes Год назад

    Hi Florian, many many thanks for this video and all amazing job u have done, it has been very helpful, I have got a question regarding the str(int(1000 * time.time())), why do we need to multiply the current time by 1000? what is the reason?

    • @maxs.8146
      @maxs.8146 Год назад

      I think thats a kraken specific thing. The time has to be in milliseconds

    • @Mikesors
      @Mikesors Год назад

      time.time returns number of seconds since 1980. Every API call requests "nonce"-number, that must be higher than the last one. so if you just round it, you cannot make api calls more than 1 time per second.

  • @superhuman9031
    @superhuman9031 Год назад

    Could you please make an end to end project along with deployment which takes data live from the stock market and includes technical analysis tools required for trading?

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

    Does this work for futures as well?

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

    Do you offer one on one coaching?

  • @anfas2005
    @anfas2005 2 года назад

    Thanks a lot

  • @mandi4820
    @mandi4820 2 года назад

    Hey, I need to ask you something
    I want to use bid/ask walls as entry points for my strategy:
    Entry = limit buy just above bid wall
    Exit = stop limit sell above Entry
    Or
    Entry = limit sell just below ask wall
    Exit = stop limit buy below Entry
    I can do this manually but automating it has been an absolute headache
    Can you by chance refer me to a tutorial, article or doc that might help with this?
    If you've got a video on it even better!

    • @RobinArgumido
      @RobinArgumido Год назад

      Trading bots are mostly scams... but there are exceptions. You just need a lot a patience to backtest and run many bots, discard the ones that are scams and keep playing with the ones that are good. EDIT: since so many of you ask, yes I use Galileo FX...

    • @maxs.8146
      @maxs.8146 Год назад +2

      @@RobinArgumido Crazy, I would love to learn from you how to edit comments without editing them ;)

  • @maxs.8146
    @maxs.8146 Год назад

    Thank you very much for this video. With your help I was able to write my own autoinvest bot to save some fee's (0.16% vs. 1.5%) which will invest once every month.

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

      I am attempting to create a bot just to do that. Normal Kraken app is costing 1.5%

    • @maxs.8146
      @maxs.8146 2 месяца назад

      @@MrSaadmoinkhan You have to find a good multiplication factor so your order is always a little lower than the current market price (like 0,9999). Otherwise, your order will be canceled instantly or it will never be filled

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

      @@maxs.8146 yeah that makes sense. Although I'm using trailing stop orders now, automated a lot of it

  • @chev__7857
    @chev__7857 Год назад +1

    is api sec youer private key?

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

    You could include the nonce addition in the function that makes the request. It doesn't make sense to include it for every request that you make.

  • @FireFly969
    @FireFly969 2 года назад

    Thanks

  • @IgansF
    @IgansF Год назад

    Great

  • @TechChiefYT
    @TechChiefYT Год назад +1

    What file type is your keys file? I used .txt and I get: TypeError: a bytes-like object is required, not 'str'
    I changed the 'r' to 'rb' for read bytes, but I don't think this is the proper approach for me, since I get invalid api key upon request.
    You said you used a text file, which I am using. But maybe this is an issue with OS X?

    • @africanhubza
      @africanhubza Год назад

      same

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

      I have the same problem as you, were you able to solve it?

    • @TechChiefYT
      @TechChiefYT 5 месяцев назад +1

      @@SuperStifani yes I had to switch operating systems lol

  • @lokhz9876
    @lokhz9876 2 года назад +1

    would be great a video about a bot using tradingview to automatically(like selling/being on the moving average etc...) trade on binance. Please

    • @chromashift
      @chromashift 2 года назад

      I'm fairly certain this method would be the same for binance, coinbase, or any other platform that allows API mediated trades; I in fact am using it for another project.

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

    too simple. you should at least implement a simple moving ave or macd strategy so we can see it all from start to finish.