Kraken Trading Bot in Python

  Рет қаралды 26,502

NeuralNine

NeuralNine

Күн бұрын

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

Пікірлер: 32
@the_dude_josh
@the_dude_josh 2 жыл бұрын
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 10 ай бұрын
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?
@anfas2005
@anfas2005 2 жыл бұрын
Thanks a lot
@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?
@charlesrice1020
@charlesrice1020 Жыл бұрын
Yo quick question what was the purpose of the mac under the signature method? Any help would be greatly appreciated!
@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 4 ай бұрын
I am attempting to create a bot just to do that. Normal Kraken app is costing 1.5%
@maxs.8146
@maxs.8146 4 ай бұрын
@@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 4 ай бұрын
@@maxs.8146 yeah that makes sense. Although I'm using trailing stop orders now, automated a lot of it
@FireFly969
@FireFly969 2 жыл бұрын
Thanks
@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.
@maartenregterschot8423
@maartenregterschot8423 Жыл бұрын
Does this work for futures as well?
@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 Жыл бұрын
@@RobinArgumido Crazy, I would love to learn from you how to edit comments without editing them ;)
@IgansF
@IgansF 2 жыл бұрын
Great
@chev__7857
@chev__7857 Жыл бұрын
is api sec youer private key?
@rh169
@rh169 11 ай бұрын
Do you offer one on one coaching?
@ChetanBhasin
@ChetanBhasin 7 ай бұрын
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.
@lokhz9876
@lokhz9876 2 жыл бұрын
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.
@TechChiefYT
@TechChiefYT 2 жыл бұрын
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 ай бұрын
@@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.
Stock Price Alarm Bot in Python
18:25
NeuralNine
Рет қаралды 13 М.
Using My Python Skills To Punish Credit Card Scammers
7:13
Engineer Man
Рет қаралды 4,9 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,6 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 24 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 114 МЛН
Is this my Fault?
15:41
Linus Tech Tips
Рет қаралды 2 МЛН
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 379 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 860 М.
Algorithmic Trading Strategy in Python
20:54
NeuralNine
Рет қаралды 62 М.
Modern Python logging
21:32
mCoding
Рет қаралды 170 М.
Automated Options Trading Bot in Python
42:55
NeuralNine
Рет қаралды 31 М.
Find Information from a Phone Number Using OSINT Tools [Tutorial]
16:59
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Запрещенный Гаджет для Авто с aliexpress 2
0:50
Тимур Сидельников
Рет қаралды 1,1 МЛН
Bluetooth connected successfully 💯💯
0:16
Blue ice Comedy
Рет қаралды 2 МЛН
low battery 🪫
0:10
dednahype
Рет қаралды 1,8 МЛН
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 1,9 МЛН
Ускоряем ваш TV🚀
0:44
ARTEM_CHIBA
Рет қаралды 418 М.