Pages:
Author

Topic: Kraken DCA Bot (Read 498 times)

newbie
Activity: 15
Merit: 28
December 03, 2024, 04:42:04 PM
#29
You deposit, say, 500 dollars each month. The bot will notice that you did a deposit and reserves time for another month in which it will buy bitcoin until that time is over. It will always buy 0.0001 bitcoin (if you don't adapt this value). At the current price (24'700$) it could execute 204 times the 0.0001 bitcoin buy order. It will spread those buys equally over the next month, so that you run out of money until that month has ended.
But why? What's the point of making 204 small buys instead of just buying $500 worth of Bitcoin at once?
DCA is only worth it if the price drops. In that case, you'll end up with more Bitcoin. But if the price goes up, you would have been better off buying in a lump sum. And even if you buy $500 "lump sum", it's still considered DCA if you do it every month.
Because Bitcoin goes up on average (why else would you invest in it), I believe your DCA-method will result in a (slightly) smaller Bitcoin stash than if you'd buy $500 worth of Bitcoin once a month.

I thought about this comment recently.

Dumping the whole sum into it might be a wiser choice, given that "the asset goes up long term" remains true. But who guarantees you, that you aren't doing that alongside all other people who get their salary at the end of the month? This might create small "temporary tops". Although I read articles that claim, that statistically there is no "best day to buy". I'm not sure if this can be true to be honest, but I never did the analysis myself. If you know any research on this, I'd be interested. An asset that goes up long term, but still having a potential "best day to buy over the month" is probably very hard to extract from statistical data (because the few mega-surges interfere with the quality of the data). I would be very interested, if it's truly the "all-in asap" method.

Downside is like already mentioned: Potential psychological stress and bearmarket sadness. But surely, you can get into a state of "having seen this movie" at some point and loose the stress.
newbie
Activity: 15
Merit: 28
December 03, 2024, 04:20:47 PM
#28
@Mark-Guy: I dunno what to write to your comment tbh.

It's good that you made the Code open-source! I suppose to make the most out of this bot, one needs to keep the server running 24*7? How long have been using this bot for and does it by any chance make any wrong calculations? There are no tests around the functions so that's a bit worrying. You might as well pack this into a Raspberry PI and sell kt as a complete deployed/bundled package for someone less technical to set this up.

I thought about that but am too lazy. I wrote this bot for myself and I'm using it since 2 years I believe. There were bugs, but at the moment, none that I'm aware of, can still happen though.

This bot sounds awesome especially for anyone who loves DCA but wants it automated. I like how it adjusts to price changes and spreads buys evenly. The open source aspect is a big plus since people can verify the code and even tweak it if needed. The low fees on Kraken make this even better for regular investors trying to stack sats without losing too much on transactions.

Thanks for sharing! I'm sure this will be super helpful for a lot of people here  Cool

You're welcome and thanks for this comment! Smiley

newbie
Activity: 1
Merit: 0
November 26, 2024, 01:58:50 AM
#27
This bot sounds awesome especially for anyone who loves DCA but wants it automated. I like how it adjusts to price changes and spreads buys evenly. The open source aspect is a big plus since people can verify the code and even tweak it if needed. The low fees on Kraken make this even better for regular investors trying to stack sats without losing too much on transactions.

Thanks for sharing! I'm sure this will be super helpful for a lot of people here  Cool
legendary
Activity: 2940
Merit: 1090
November 25, 2024, 11:15:57 PM
#26

The only problem I'd have with it is you'd just have to keep track of the cost basis for many many many transactions for tax purposes when you one day sell or spend the bitcoin in the future, so for that reason I certainly wouldn't want to be buying every minute or hour or even day, but some people might not mind that accounting headache.

I totally understand that. Where I live, there is no such thing as taxing transactions (apart from the VAT). I only pay wealth tax for the "wealth" I have on the 31th of December. If markets dip on the 1th of January, I still need to pay the 31th December worth of wealth.


Considering how often how many "exchanges" fly by night, claim to have been hacked, etc etc etc neither of the above-mentioned income systems seems to make much sense.

The more-real buying and selling when using "exchanges" is when you buy a positive balance entry in an exchange's database and when you sell your positive entry in their database for a purported output to a blockchain or to some other institution that sells positive-balance database-entries.

If at the end of some period the proceeds of your cashing out of all those various database-entries exceeds what you paid into such database-entry purveyors you have an income, assuming of course that the purported outputs ever actually arrived, which of course they do not always do.

It is just like playing world of warcraft really, does it make sense to try to keep track of every single time you managed to loot some monster or treasure-chest or dungeon, or, rather, to simply compare how much it cost you to play the game versus how much you managed to sell the resulting accounts or loot for minus electricity and internet bills and maybe depreciation of your computing equipment?

Unless you actually do turn a profit overall, some tax regimes won't even let you write off the electricity and internet-connectivity and machine-depreciation and fraction of home your home-office you do it from, so until you do actually bring home in local spendable currency more than you spent it makes no sense even probably to try to work out any details at all. Only actual bottom line is income.

The wealth taxing idea though sounds weird and potentially dangerous. Politicians in Canada once upon a time threw around ideas along the lines of someone once sold one world of warcraft magick sword on e-bay thus anyone who ever finds such a sword in the game ought to be taxed for doing so, based on how much one person once somehow managed to convince someone to pay for one once upon a time. To be taxed on such "wealth" even before you managed to actually sell it, wow, seems horribly draconian. Property tax on virtual property / database entries / magick swords?

Scary, maybe especially so to someone who can "create" maxint magic swords with a few keystrokes...

Maybe RAM should be taxed based on how many billions of dollars a byte could be if it were used to represent billions of dollars? Insanity.

-MarkM-

legendary
Activity: 1988
Merit: 1317
Get your game girl
November 25, 2024, 06:01:12 PM
#25
It's good that you made the Code open-source! I suppose to make the most out of this bot, one needs to keep the server running 24*7? How long have been using this bot for and does it by any chance make any wrong calculations? There are no tests around the functions so that's a bit worrying. You might as well pack this into a Raspberry PI and sell kt as a complete deployed/bundled package for someone less technical to set this up.
newbie
Activity: 15
Merit: 28
November 25, 2024, 02:37:18 PM
#24
What's the ideal platform for running a trading bot? What do you think about Bitget or its equivalent platform like Gateio, Bybit Kucoin etc.

Kraken. Wink

I have an account on Bybit that I never used and Kucoin is garbage imho. They had hacks in the past and have their own KCS scammy token.

Other than that, no idea with the others. I love kraken, their values and their focus.

Cheers!
newbie
Activity: 43
Merit: 0
November 25, 2024, 01:29:30 PM
#23
What's the ideal platform for running a trading bot? What do you think about Bitget or its equivalent platform like Gateio, Bybit Kucoin etc.
newbie
Activity: 15
Merit: 28
November 05, 2024, 04:48:02 PM
#22
It only works for kraken. Doing that for other exchanges would be best achieved by writing another bot, as every exchange has different APIs to talk to.

Why don't you take the API part and open source that?   Then people can write the code for other exchanges.  Your proprietary code and all your keys can remain under your control.

Everything about this bot is open source, lol.



The only problem I'd have with it is you'd just have to keep track of the cost basis for many many many transactions for tax purposes when you one day sell or spend the bitcoin in the future, so for that reason I certainly wouldn't want to be buying every minute or hour or even day, but some people might not mind that accounting headache.

I totally understand that. Where I live, there is no such thing as taxing transactions (apart from the VAT). I only pay wealth tax for the "wealth" I have on the 31th of December. If markets dip on the 1th of January, I still need to pay the 31th December worth of wealth.

BTW for everyone reading or having this bot already running, it's at this point worth updating it. I recently did a small bugfix and depending on when you started, there are more features now.

Cheers
Codepleb
Vod
legendary
Activity: 3668
Merit: 3010
Licking my boob since 1970
May 19, 2024, 07:20:46 PM
#21
It only works for kraken. Doing that for other exchanges would be best achieved by writing another bot, as every exchange has different APIs to talk to.

Why don't you take the API part and open source that?   Then people can write the code for other exchanges.  Your proprietary code and all your keys can remain under your control.
hero member
Activity: 2240
Merit: 848
May 19, 2024, 07:09:22 PM
#20
You deposit, say, 500 dollars each month. The bot will notice that you did a deposit and reserves time for another month in which it will buy bitcoin until that time is over. It will always buy 0.0001 bitcoin (if you don't adapt this value). At the current price (24'700$) it could execute 204 times the 0.0001 bitcoin buy order. It will spread those buys equally over the next month, so that you run out of money until that month has ended.
But why? What's the point of making 204 small buys instead of just buying $500 worth of Bitcoin at once?
DCA is only worth it if the price drops. In that case, you'll end up with more Bitcoin. But if the price goes up, you would have been better off buying in a lump sum. And even if you buy $500 "lump sum", it's still considered DCA if you do it every month.
Because Bitcoin goes up on average (why else would you invest in it), I believe your DCA-method will result in a (slightly) smaller Bitcoin stash than if you'd buy $500 worth of Bitcoin once a month.

I don't think you are understanding the point of DCA.

DCA is not "only worth it if the price drops". The point of DCA is to take the guesswork out of investing. Instead of trying to pick the best time to buy, you just buy often, potentially at regular intervals. This is exactly what this person built - a bot to DCA often over the course of a month.

You could also choose to DCA once a month of course, but the OP built a bot to DCA very often. People can DCA at whatever interval they wish, and this bot allows them to do it at smaller intervals automatically without needed to log in to an exchange constantly. It's a great idea. The only problem I'd have with it is you'd just have to keep track of the cost basis for many many many transactions for tax purposes when you one day sell or spend the bitcoin in the future, so for that reason I certainly wouldn't want to be buying every minute or hour or even day, but some people might not mind that accounting headache.
newbie
Activity: 15
Merit: 28
May 10, 2024, 06:58:17 AM
#19
I use kraken and did this project for myself and shared it with others too. I don't see a need to support any other less prooven exchanges as long as kraken is cheap, up and running fine.


I think it will be better to make a similar bot for other exchanges as well. As you're good at programming and you can make those bots for the users of other exchanges in your free time. A lot of members on this forum aren't Kraken users and that's why it's better to make a similar bot for some other famous exchanges that people use. I would also recommend you to add daily and weekly interval option into the bot.

I earn absolutely nothing with this bot. I do that completely in my free time. And since I have no use for other exchanges and kraken is pretty well spread over the world, I don't see why I should put in that additional amount of work. It anyways would require creating a separate bot, since a lot of thing in there are specific to kraken.

You are free to do that yourself or find someone who does that for you, of course. My code is open source.

I wrote this bot for myself and was sure that there would be people thankful for it, so I spread it. If you are not amongst those, that's completely ok, but a lot of people seem to be happy that it exists. As long as this is not a paying job for me, I don't do work that doesn't improve it for myself. I did that for some currencies I don't use and people asked for, but supporting another exchange means hours of additional work.
newbie
Activity: 15
Merit: 28
May 10, 2024, 06:35:25 AM
#18
In other words, the bot should be able to increase the buy amount with respect to percentage discount offered by bitcoin at every given period of time.

It will not increase the amount of a single buy. It will shorten the time between buys, which basically has output you are desiring. Smiley
hero member
Activity: 784
Merit: 672
Top Crypto Casino
September 22, 2023, 05:47:12 PM
#17
I use kraken and did this project for myself and shared it with others too. I don't see a need to support any other less prooven exchanges as long as kraken is cheap, up and running fine.


I think it will be better to make a similar bot for other exchanges as well. As you're good at programming and you can make those bots for the users of other exchanges in your free time. A lot of members on this forum aren't Kraken users and that's why it's better to make a similar bot for some other famous exchanges that people use. I would also recommend you to add daily and weekly interval option into the bot.
newbie
Activity: 15
Merit: 28
September 18, 2023, 03:32:31 PM
#16
Then @hugeblack is right why only kraken? it might that kraken isn't accepted by all countries, or it could be that country will be restricted there? Though there is a video tutorial, I will watch it to be familiarize with those guidelines as well.

I use kraken and did this project for myself and shared it with others too. I don't see a need to support any other less prooven exchanges as long as kraken is cheap, up and running fine.

But feel free to port this to other exchanges.

BTW sorry I manually checked this thread. I don't get email notifications. Probably did that on purpose back then.
I'm using this bot and didn't abandon it. And I work on it when I see new requirements or bugs.
sr. member
Activity: 1498
Merit: 271
DGbet.fun - Crypto Sportsbook
June 06, 2023, 06:21:29 PM
#15
But why? What's the point of making 204 small buys instead of just buying $500 worth of Bitcoin at once?
DCA is only worth it if the price drops. In that case, you'll end up with more Bitcoin. But if the price goes up, you would have been better off buying in a lump sum. And even if you buy $500 "lump sum", it's still considered DCA if you do it every month.
Because Bitcoin goes up on average (why else would you invest in it), I believe your DCA-method will result in a (slightly) smaller Bitcoin stash than if you'd buy $500 worth of Bitcoin once a month.

It takes away the stress, as you no longer time the market, but buy as often as possible at all prices. That's the beauty of DCA. Smiley If you try to time the market, history shows that your performance will be worse on average. Are you sure that you will buy every month, using your strategy? Or will you wait because tomorrow, the dip will be even bigger (potentially)?

I understand your theory, but I doubt that your psychology will not interfere with it.

And what if you buy 500$ at the beginning of the month and the day after bitcoin is at 30% discount... Won't you pull your hair, because you could have waited just one more day?

Doing DCA completely takes out all stress for me. Price dips: My stash gets less valuable, but I buy bitcoin at cheaper prices all the time. Price moons: My stash gets more valuable, but my buys get less frequent due to them becoming more expensive.

I literally cannot lose with this strategy. Since I'm doing DCA, I notice how disconnected I can be from all the volatility and go on live my life in peace.

But that's an individual decision, the need differs between people. I absolutely love it!

Cheers! Smiley

It's so nice to see and doing DCA helps you at the same time to take away your stress, I hope everyone who does DCA is like you, anyway, is what you're saying bot really tested? I hope you showed at least a screenshot so that those who see what you are saying will be familiar.

Then @hugeblack is right why only kraken? it might that kraken isn't accepted by all countries, or it could be that country will be restricted there? Though there is a video tutorial, I will watch it to be familiarize with those guidelines as well.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
June 06, 2023, 08:16:52 AM
#14
Is there a way I will maneuver or stop the bot DCA process and then manually buy with my remaining let's say $450.
Just place a manual order, after that, the bot will be out of funds and can't buy more.
sr. member
Activity: 630
Merit: 277
June 06, 2023, 05:53:54 AM
#13
But why? What's the point of making 204 small buys instead of just buying $500 worth of Bitcoin at once?

And what if you buy 500$ at the beginning of the month and the day after bitcoin is at 30% discount... Won't you pull your hair, because you could have waited just one more day?

What if the bot bought 0.0001btc for me today and by tomorrow I discover that bitcoin is in 40% discount. Is there a way I will maneuver or stop the bot DCA process and then manually buy with my remaining let's say $450. By the next circle I can re-start with the bot.

In other words, the bot should be able to increase the buy amount with respect to percentage discount offered by bitcoin at every given period of time.
newbie
Activity: 15
Merit: 28
June 05, 2023, 10:15:24 AM
#12
Catch-All-Errors Update:
- Bot should no longer stop upon networking issues or Kraken API being down.
- Added support for AUD currency.

How to update:
https://github.com/raphaellueckl/kraken-dca#updates

Don't forget to join the discord! Smiley https://discord.gg/TARdDh4hN8
newbie
Activity: 15
Merit: 28
April 05, 2023, 06:09:47 AM
#11
I don't think that most people will trust kraken cause it has bad reputation and it's not working good. So I I'll say that You should make This DCA bot for Kucoin or Bitget and as people like these an there are a lot of funds that are on Bitget.
And also these two exchanges have their own Bots and they ate working fine so I think if really someone wants to run Bit than they can go to the Kucoin Bot.

Not trusting kraken but trusting kucoin instead? That's exactly my humor. :'D

If you don't trust kraken, the only thing left for you are DEX, as there isn't an exchange with a security as prooven as kraken to this day. Not a single hack. Unlike binance, unlike kucoin, unlike [name any exchange older than 3 years].
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
April 05, 2023, 03:36:13 AM
#10
I don't think that most people will trust kraken cause it has bad reputation and it's not working good.
Kraken works fine and I have no reason not to trust them. Your claim needs more convincing evidence than just stating it as if it's a fact.
Pages:
Jump to: