Kraken Trading Bot in Python

Поділитися
Вставка
  • Опубліковано 20 сер 2024

КОМЕНТАРІ • 32

  • @the_dude_josh
    @the_dude_josh 2 роки тому +13

    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.

  • @Natenjo
    @Natenjo 11 місяців тому +1

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

  • @superhuman9031
    @superhuman9031 2 роки тому +1

    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?

  • @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 5 місяців тому

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

    • @maxs.8146
      @maxs.8146 5 місяців тому

      @@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 5 місяців тому

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

  • @ChetanBhasin
    @ChetanBhasin 8 місяців тому

    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.

    • @privateeye242
      @privateeye242 2 місяці тому

      I think you're mistaken cause Kraken says: Nonce must be an always increasing, unsigned 64-bit integer, for each request that is made with a particular API key. While a simple counter would provide a valid nonce, a more usual method of generating a valid nonce is to use e.g. a UNIX timestamp in milliseconds.

  • @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 2 роки тому

      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 ;)

  • @jeffs5528
    @jeffs5528 Рік тому

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

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

  • @chev__7857
    @chev__7857 Рік тому +1

    is api sec youer private key?

  • @charlesrice1020
    @charlesrice1020 Рік тому

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

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

  • @anfas2005
    @anfas2005 2 роки тому

    Thanks a lot

  • @FireFly969
    @FireFly969 2 роки тому

    Thanks

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

  • @maartenregterschot8423
    @maartenregterschot8423 Рік тому

    Does this work for futures as well?

  • @rh169
    @rh169 Рік тому

    Do you offer one on one coaching?

  • @IgansF
    @IgansF 2 роки тому

    Great

  • @TechChiefYT
    @TechChiefYT 2 роки тому +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 8 місяців тому

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

    • @TechChiefYT
      @TechChiefYT 8 місяців тому +2

      @@SuperStifani yes I had to switch operating systems lol

  • @jamescaleb9676
    @jamescaleb9676 5 місяців тому

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